Go Down

Topic: Wemos D1 Mini Pro usb? (Read 151 times) previous topic - next topic

jarrejo

Apr 17, 2019, 11:13 am Last Edit: Apr 17, 2019, 11:13 am by jarrejo
Hi,
Ive built a circuit which is designed to open/close a Chicken door using the following:
12V motor
L298N bridge
Wemos D1 mini pro
2 reed switches


See the attached Schematic...
Although it shows a 9V battery in fact its a 12V 2Amp supply from the mains.

The issue I have is the following:
1) If I have the USB cable plugged in to the Wemos and the other end into the Laptop.. everything works as it should.
2) But if I take the USB cable out it doesnt. Seems that the motor turns a couple of turns and then just stops!
3) I tried putting the USB cable from the Wemos into the main (like a phone charger) and the same thing happens as in (2)

Any ideas for whats causing this?

Ideas for improving?


6v6gt

The Serial.begin() statement should be at the beginning of setup() and certainly before the first Serial.print() command.

jarrejo

The Serial.begin() statement should be at the beginning of setup() and certainly before the first Serial.print() command.
Thanks :)

Go Up