ULN2003 + BYJ48 + Leonardo Micro = how to set it all up

2017-03-20 23:23:24

I got really annoying question for todays morning.

I got a stepper motor BYJ48 connected to ULN2003 picture.

Moreover I got a Leonardo Micro Pro

Micro PRO

and pontenciometer. Nothing except Stepper and ULN2003 is connected.

My question is: how to connect it all (which pin to which, how about battery, and the potenciometer?)

I got a picture of everyhing and I really appreaciate your help. I need a code also.

The Arduino has a stepper library: Arduino Stepper Reference

Start with this great tutorial: Adafruit Stepper Tutorial

you probably want to check the schematic first. but it seems to be a simple two winding, 5/6 wire motor. so the simplest is to set up individual IN1..4 pins high and see it spinning.

you can test by connecting IN1..4 to Vcc via a resistor.

Once you have done that, write your code to drive it in whole steps, or via micro stepping.

  • The Arduino has a stepper library: Arduino Stepper Reference

    Start with this great tutorial: Adafruit Stepper Tutorial

    2017-03-21 00:11:52
  • you probably want to check the schematic first. but it seems to be a simple two winding, 5/6 wire motor. so the simplest is to set up individual IN1..4 pins high and see it spinning.

    you can test by connecting IN1..4 to Vcc via a resistor.

    Once you have done that, write your code to drive it in whole steps, or via micro stepping.

    2017-03-21 00:56:07