Hi all,
I'm a bit new to electronics and I'm trying to control a motor with an ESP8266-01 and a transistor. My circuit is as follows:
Everything seems to be working except the right-most part of the schematic, where the motor is controlled by the NPN transistor. If I disconnect the GPIO2 from the NPN transistor (i.e., leave GPIO2 floating), the ESP8266-01 boots up correctly and sends me the information I want over the TX/RX lines for debugging. As soon as I connect the GPIO2 to the NPN transistor, everything goes haywire and I just get gibberish over the TX/RX lines. For the heck of it, I tried disconnecting the GPIO2 from the NPN transistor (i.e., leave GPIO2 floating), and used a wire to just directly connect the base of the NPN transistor to the Vcc line to see if the motor would run, and the motor did -not- run and it caused the ESP8266 to go haywire again (send back gibberish over the TX/RX lines). Can anyone shed light on what I'm doing wrong? The motor is just a small DC motor for an RC car.
I'm a bit new to electronics and I'm trying to control a motor with an ESP8266-01 and a transistor. My circuit is as follows:
Everything seems to be working except the right-most part of the schematic, where the motor is controlled by the NPN transistor. If I disconnect the GPIO2 from the NPN transistor (i.e., leave GPIO2 floating), the ESP8266-01 boots up correctly and sends me the information I want over the TX/RX lines for debugging. As soon as I connect the GPIO2 to the NPN transistor, everything goes haywire and I just get gibberish over the TX/RX lines. For the heck of it, I tried disconnecting the GPIO2 from the NPN transistor (i.e., leave GPIO2 floating), and used a wire to just directly connect the base of the NPN transistor to the Vcc line to see if the motor would run, and the motor did -not- run and it caused the ESP8266 to go haywire again (send back gibberish over the TX/RX lines). Can anyone shed light on what I'm doing wrong? The motor is just a small DC motor for an RC car.




