Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By bram
#26051 Hey,

I am trying to control a vibration motor with the esp8266-01 but if I connect it and power up the esp it doesn't work and spits out garbage :( . I directly connected the motor to the esp but also tried a transistor and it had the same effect. Directly connecting to the esp8266-03 did work :) put not to my esp8266-01 :( . Does anyone have suggestions?

Bram
User avatar
By Barnabybear
#26053
bram wrote:Hey,

I am trying to control a vibration motor with the esp8266-01 but if I connect it and power up the esp it doesn't work and spits out garbage :( . I directly connected the motor to the esp but also tried a transistor and it had the same effect. Directly connecting to the esp8266-03 did work :) put not to my esp8266-01 :( . Does anyone have suggestions?


Hi, the GPIOs of the ESP8266-01 set the "boot mode" at power up see wiki above.
If you are connecting the motor between a GPIO & GND, this will pull the GPIO low on power up & affect the boot.
If you connect the motor between 3.3V & a GPIO you will get better results. Setting the GPIO high will switch off the motor & setting low will switch on. I would recomend using GPIO 2 if you want to be able to flash the ESP whilst the motor is connected.