Trying to run a tiny dc motor from esp8266. (runs on 3v pin)
Does this make sense to anyone?
I connected DC motor with a driver from my esp8266 and it runs with control pins both set low. the LED blinks for below code, but motor nothing
oid setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
pinMode(D2, OUTPUT);
pinMode(D3, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(D2, LOW);
digitalWrite(D3, LOW);
delay(3000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
digitalWrite(D2, LOW);
digitalWrite(D3, LOW);
delay(3000); // wait for a second
}
So I removed the driver and plugged the motor negative to a pin and positive to a pin and try doing it that way and it still didn't work
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
pinMode(D2, OUTPUT);
pinMode(D3, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(D2, HIGH);
digitalWrite(D3, LOW);
delay(3000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
digitalWrite(D2, LOW);
digitalWrite(D3, HIGH);
delay(3000); // wait for a second
}
Then I plug negative in the grounds and positive into a pin and still no luck
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
pinMode(D3, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
digitalWrite(D3, LOW);
delay(3000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
digitalWrite(D3, HIGH);
delay(3000); // wait for a second
}
lastly I plugged the negative in the ground and the positive into the 3 volt source and it runs.
I also tried it on my Arduino Uno with the same results.
I know you can run it from the pins because I double checked on YouTube
Any advice?








