본문 바로가기

카테고리 없음

Arduino Stepper Motor Serial Control Module

  1. Arduino Projects Stepper Motor
  2. Arduino Stepper Motor Examples

Hi Guys, In this post, I will demonstrate how you can run or control 6 wired unipolar stepper motor with Arduino using L298N driver module. The unipolar stepper motor has six wired but L298N driver module has two connectors either side to connect only four wire, I will show you how you can connect and run unipolar stepper motor with L298N driver.

What is L298N driver moduleArduino is running on 5 volts and it’s current output only 500mAmp, so run any dc motor direct with Arduino, not a good idea. Here is the motor driver comes, L298N driver module works on 6 volts to 35 volts and maximum current output is 2Amp.

Arduino Projects Stepper Motor

You can run either one stepper motor or two dc motors with this driver module.Step by step video guide for stepper motor, L298N driver and Arduino.

Arduino Stepper Motor Examples

Module

​This is a simple tutorial on how to control speed and direction of stepper motor using arduino uno and bluetooth module hc-06 through an android phone app. The motor which i am using is Uni directional stepper motor. Their are two types of stepper motors unidirectional and bidirectional. Uni directional has four phases and bidirectional has 6 phases. Phases must be controlled properly other wise desired output can not be obtained.

Control

Before going further i assume that you are aware of the steeper motor phases and know how to control them effectively in order to get the maximum output. Circuit diagram of the project is given below. The stepper motor which i am using works on 12 v DC. Stepper motor coils consumes about 80 mA to 250 mA, so we an not drive the steeper motor directly from arduino pins. We need some driver for this purpose and ULN2003 a darling-ton array ic is a good fit-in. ULN2003 is capable of sourcing 500 mA of current at 50 v, it can easily source 25 0mA current at 12 v.​Stepper coils are controlled through arduino digital pins 2,3,4 and 5. The pins are directly connected to inputs of uln2003.

The corresponding outputs of the uln2003 is supplying power to motor coils. Arduino is powered through external 12v adopter and uln2003 is powered through the same adopter. Hc06 is powered through the 3.3v supply output of arduino.Note: The ground of the arduino must be grounded with ULN2003 ground. Both the ic's must be at same potential to become functional. If not grounded properly the circuit floats and the output is unpredictable.

Arduino talks with hc06 bluetooth module on serial communication protocol. The baud rate for serial communication can be changed.

I am working on default baud rate which is 9600 bps. Bluetooth module hc06 works on 3.3 v and can be powered from the 3.3 v source output of arduino uno. Since the hc06 bluetooth works on 3.3 v it outputs the data in the form of TTL signal rated at 3.3 v. Where as arduino uno operates on 5 v and its pins output data in the form of TTL signal rated at 5 volt.

To balance the TTL level voltage. Voltage level sifters are inserted between the pins. Arduino TX is transmitting a 5 v signal which is shifted to 3.3 v by just a simple voltage divider circuit.

The hc06 TX is transmitting a 3.3 v signal which is level shifted to 5 v.