1

I have a BYJ48 stepper motor and an ULN2003A motor driver shield shield.

In many tutorials I read:

do not to draw current from the 5V on the Arduino rail, but use an external power source, since the motor can draw quite some current

Which of these options to they mean by this?

Connect an external power adapter to the Arduino and connect the ULN2003A board to the Vin pin and GND on the Arduino

or

Connect the motor shield itself to an external power adapter and connect it to the + and - pin on the motor shield

or perhaps both are valid solutions?

The board I use is this one.

enter image description here

Glorfindel
5781 gold badge7 silver badges18 bronze badges
asked Feb 20, 2018 at 17:55
7
  • Link to the product you refer to? Commented Feb 20, 2018 at 18:05
  • ebay.nl/itm/… I added it to the my question as well Commented Feb 20, 2018 at 19:17
  • 1
    You are missing a connection from the green wire to the Arduino GND. Commented Feb 20, 2018 at 19:35
  • I don't see the schematic for the motor driver. Commented Feb 20, 2018 at 21:29
  • 1
    @alcor bought it from arduino-tutorials.net/r/ZsECKh I also made a tutorial about this motor with the power from an external power supply arduino-tutorials.net/tutorial/… Commented Mar 8, 2020 at 11:26

1 Answer 1

0

There are two things you need to do:

  1. Prevent the motor drawing its power from the micro-controller board.
  2. Make sure that all the grounds are connected but avoiding motor current return through the micro-controller board.

schematic

simulate this circuit – Schematic created using CircuitLab

Figure 1. A good wiring configuration. The heavy wires carry the motor current.

Note that there is one ground connection between the micro-controller and the motor system. The return current for the 12 V supply does not pass through the micro-controller board.

answered Feb 20, 2018 at 18:18
6
  • Ok, what I have now is that the Arduino powered via the USB connection. The motor shield is complete independent powered with a 5V adapter. As shown on the eBay picture, there is a + and - pin on the driver board. This is where I connected the external power supply to. I did not connect the ground of the Arduino with the - pin in any way as shown in the picture. Commented Feb 20, 2018 at 19:24
  • And? Does it work or not? You need to connect the GND/- as I have shown for correct operation, otherwise there is no return path from the micro outputs 0 to 4. Commented Feb 20, 2018 at 19:27
  • Yeah it does work, but I still have my question. Since another option is to connect the external power supply directly in my Arduino and connect the motordriver + and - pin to the Vin and GND on the Arduino Commented Feb 20, 2018 at 19:30
  • Read my answer again. I explained why not to do that twice. Commented Feb 20, 2018 at 19:31
  • Perhaps I misunderstood "Prevent the motor drawing its power from the micro-controller board." I thought you referred to the USB provided 5V. For 12V I understand, but my motor is powered by 5V which the Arduino should be able to handle. This made me think I could power the Arduino as well as the motor on the external power supply. Commented Feb 20, 2018 at 19:37

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.