Search found 97 matches

by kwiley
Mon May 25, 2020 5:58 am
Forum: ESP8266 boards
Topic: time.sleep() vs machine.lightsleep()
Replies: 0
Views: 29

time.sleep() vs machine.lightsleep()

Is time.sleep() (or utime.sleep()) the same thing as machine.lightsleep()? They take slightly different arguments (float seconds vs. int milliseconds), but functionally are they doing the same thing? Is there a recommendation between the two? Are the functions under the machine module meant to suppl...
by kwiley
Sun May 24, 2020 7:21 am
Forum: ESP8266 boards
Topic: D1 Clones
Replies: 13
Views: 466

Re: D1 Clones

All right, so yours is working. Thanks. I have two completely different D1 minis (both clones, I admit) and both suffer a fairly widely experienced problem in this regard. Waking with an alarm just doesn't work. Hard resetting works, and resetting from the "zombie" state of an erroneous alarm wakeup...
by kwiley
Fri May 22, 2020 8:15 pm
Forum: General Discussion and Questions
Topic: How to use a low-signaling sensor to trigger wake interrupt
Replies: 11
Views: 400

Re: How to use a low-signaling sensor to trigger wake interrupt

Yes, sorry. I see your point. I did write that. I was referring to the only "logic" connection, pushing aside the issue of actually powering the sensor, and furthermore that ground should be "common" amongst components. But you are right that such details need to be clarified.

Thanks!
by kwiley
Fri May 22, 2020 8:09 pm
Forum: ESP8266 boards
Topic: Who can confirm deep sleep alarm wake on D1 mini boards
Replies: 4
Views: 129

Re: Who can confirm deep sleep alarm wake on D1 mini boards

It isn't immediately and necessarily clear that one should need to connect GPIO16 to RESET to enable wakeup on the reasoning that people might want to use the pin for another purpose. We are at least two levels of abstraction removed from the chip. Sure, on the ESP8266, you have to connect them dire...
by kwiley
Fri May 22, 2020 7:37 am
Forum: General Discussion and Questions
Topic: How to use a low-signaling sensor to trigger wake interrupt
Replies: 11
Views: 400

Re: How to use a low-signaling sensor to trigger wake interrupt

What do you mean "without ground". The sensor has a VCC and a GND line. Those are connected to the ESP board's VIN and GND lines. Then I connected the sensor's signal line to the RESET line. I'm sorry, but I'm not understanding what you're trying to explain about my setup.
by kwiley
Thu May 21, 2020 11:57 pm
Forum: General Discussion and Questions
Topic: How to use a low-signaling sensor to trigger wake interrupt
Replies: 11
Views: 400

Re: How to use a low-signaling sensor to trigger wake interrupt

Well, I'm powering the sensor from the board's own lines if that's what you mean. The IR sensor has three pins: VCC, GND, and signal. I'm feeding the sensor's power and ground from the ESP-01S's VIN and GND pins. Is that what you were asking?
by kwiley
Thu May 21, 2020 6:48 am
Forum: General Discussion and Questions
Topic: How to use a low-signaling sensor to trigger wake interrupt
Replies: 11
Views: 400

Re: How to use a low-signaling sensor to trigger wake interrupt

I solved some of the mystery. I had directly tied GPIO16 to RESET to enable RTC wakeup. Apparently, doing this renders the sensor inoperable. By connecting the sensor's output directly to RESET with RESET connected to GPIO16, the sensor no longer triggers a reset. In fact the sensor no longer works ...
by kwiley
Wed May 20, 2020 9:12 pm
Forum: ESP8266 boards
Topic: D1 Clones
Replies: 13
Views: 466

Re: D1 Clones

When you get your own issues sorted out, I would be very interested to know if you can confirm whether or not your D1 boards successfully wake from deep sleep with the RTC alarm. It is widely acknowledged on a number of forums, github issues, etc. that various ESP8266 systems, including bare ESP-12 ...
by kwiley
Wed May 20, 2020 2:30 pm
Forum: General Discussion and Questions
Topic: How to use a low-signaling sensor to trigger wake interrupt
Replies: 11
Views: 400

Re: How to use a low-signaling sensor to trigger wake interrupt

Thanks for confirming my hunch that I probably just need the opposing transistor type. I suppose I could string two together as you suggested, although I admit that seems unnecessarily convoluted. Thanks again.
by kwiley
Wed May 20, 2020 2:28 pm
Forum: General Discussion and Questions
Topic: How to use a low-signaling sensor to trigger wake interrupt
Replies: 11
Views: 400

Re: How to use a low-signaling sensor to trigger wake interrupt

I agree, and I'm aware of the behavior in which the board would not fully reset until after the sensor returns to its initial state. For some reason I'm not getting any reset behavior by sending the signal straight into reset regardless of whether the sensor settles down a moment later. I don't get ...