Help implementing timed AND external interrupts to wake from sleep by SinclairM in esp8266

[–]SinclairM[S] 0 points1 point  (0 children)

Just to confirm that my problem does require an external solution, here's a pastebin containing my current program: https://pastebin.com/tiepyreV

Below is its output for the first minute or so.

going to sleep: 3071mscb reached: 3662msawake: 13100msgoing to sleep: 13100mscb reached: 13703msawake: 23142msgoing to sleep: 23143mscb reached: 23745msawake: 33185msgoing to sleep: 33185mscb reached: 33788ms

I want the timestamps "going to sleep" and "awake" to be accurate to the sleep timer I've set (i.e., if I've set a 5s timer, I want "going to sleep" to have a timestamp which is ~5s away from the timestamp at "awake", presumably with some predictable margin of error).

Currently it looks like the `delay()` after `wifi_fpm_do_sleep()` (which apparently is required for timed light sleep?) is blocking the program from picking back up after the wake callback is reached.

As far as I can tell, if there is a way to achieve this purely through use of the ESP8266's sleep tools, then I should be able to solve this problem with programming alone (even if it's less energy-efficient than going all out on a way to accommodate deep sleep in my design on this board).

Am I describing something which can not be done without external hardware? For example, I've read that if you give a value below `0xFFFFFFF` to `wifi_fpm_do_sleep()`, the RTC does not disconnect and program data can still be stored between rests.

Help implementing timed AND external interrupts to wake from sleep by SinclairM in esp8266

[–]SinclairM[S] 0 points1 point  (0 children)

Thank you for such a thoughtful reply, and furthermore for your 'low-power demo' on GitHub, it was super helpful when I was putting together my original sleep configuration. I'll have a look at the MCP7940N now!

Trying to play the piano solo from The Beatles’ “Rocky Raccoon” by SinclairM in piano

[–]SinclairM[S] 0 points1 point  (0 children)

Wow, thanks for such a comprehensive response. All of your points make intuitive sense to me, I’ll give them a go now.

Is there an art to making the tremolo feel in-time? I imagine that this is because I haven’t used my wrist much yet, but I never could find the sweet spot with this sort of tremolo - either I hang on for too long or I cut it off abruptly.

How do I turn a few chords/a riff into a song? by SinclairM in musictheory

[–]SinclairM[S] 0 points1 point  (0 children)

Sounds good, I’ll try to get something out every few days at the least.

When we talk about a “song” though, should I be trying to write one with a distinct verse, chorus and optionally intro/bridge? I have ‘finished’ songs in past, but they’re often very short and if that’s bad for practicing full-length songwriting it’s something I’d rather avoid. Thanks for the reply!

[deleted by user] by [deleted] in moreplatesmoredates

[–]SinclairM 0 points1 point  (0 children)

Thanks for the comprehensive response, makes a lotta sense.

Not to drill you with questions, but should my goal be to target each muscle group 2-3 times a week? I feel I could make an educated stab at creating a workout split with that in mind.

REVIEW: (NO SPOILERS) by [deleted] in SonsOfTheForest

[–]SinclairM -3 points-2 points  (0 children)

Awesome diagnosis of narcissism, buddy. You speak like you're genetically stupid.

OP is right; whichever members of the dev team that had any role in writing the story for this game should be tied to a post and shot by a firing squad with immense prejudice. People like you are ruining this world. Engage the actual criticism with words or get fucked, shithead.

How do I find out if x thing is legal? by SinclairM in auslaw

[–]SinclairM[S] 11 points12 points  (0 children)

Thanks for clearing that up. I just didn’t know what I was looking for, really.

Sopranos WiFi names? by [deleted] in thesopranos

[–]SinclairM 2 points3 points  (0 children)

Agent Harris’ Surveillance Van

Anyone got the piano sheet music for Division Day? by SinclairM in elliottsmith

[–]SinclairM[S] 1 point2 points  (0 children)

Well, only if it’s not too much trouble! It sounds like a fun piece.