Replies: 3 comments
-
Have you ever found a solution? |
Beta Was this translation helpful? Give feedback.
-
Don't understand the problem. A lot of phototransistors are NPN. If you use such a phototransistor as common emitter with a resistor between collector and Vcc, voltage across phototransistor will go down, when it gets light. |
Beta Was this translation helpful? Give feedback.
-
I think that using touch to wake up isn't a good way. It may be better to use an external circuit that triggers clear levels (High 3.3v or Low 0v) to an ESP32 port and make the ESP32 wake up based on a pin level. The external circuit can use some potentiometer to adjust the lighting level for triggering a transistor that would set the ESP32 pin level. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
To save energy I put the ESP32 in Light sleep mode after some minutes. Then I have a photoresistor that detects when a light is turned on and it should wake up the ESP32.
I've tried the above code, but found out that the
touchAttachInterrupt
wakes up when theREAD_VALUE
is belowTHRESHOLD
, but I want to wake up whenREAD_VALUE
is above theTHRESHOLD
.Beta Was this translation helpful? Give feedback.
All reactions