2n2222 with 12v 8mA

by Dragouf   Last Updated October 09, 2019 20:25 PM - source

I have a circuit running on 12v 8mA and I want to get a signal to a GPIO of an esp8266 when current is running. So for that I tried to use a 2N2222 transistor with vcc of the circuit going to the base and vcc and gpio of the esp connected to collector and emitter. Unfortunately it seems current is not high enough to trigger the transistor. How I can proceed to make it work ?

Related Questions

NPN-switching 4V with a 3.3V signal

Updated February 11, 2018 12:25 PM

ESP-01 boots with GPIOs HIGH

Updated November 06, 2018 08:25 AM

GPIO of ESP8266 without base resistance

Updated January 03, 2019 00:25 AM