I have an appliance that has a blinking LED when turned on. I want to detect this blinking LED using an ESP microcontroller.
The digital input of the ESP should be HIGH (or LOW) when the LED is blinking.
The appliance is running on 4.5V while the ESP is running on 3.3V. The LED is receiving 4.5V (measured between LED and GND) while turned off, when blinking I measure values between 2V and 4V (it's quickly changing within a few milliseconds, it goes like 2.9V, 2.4V, 2.1V, and up again).
I've tried to detect the blinking using a transistor switch, but it doesn't seem to work. I've attached (what I thought) the right resistors to the transistor but of what I can measure only 0.5V when off and 0.1V when on are going into the ESP.
Is using the transistor switch a good choice or is there another, easier option without having to alter the original appliance too much?
Thanks