Interfacing stepper motor with PIC18F340
Pic18F34520 is a popular 8 bit microcontroller so we will use it to interface our stepper motor.
Components required :
- Pic18F3450
- 10 K ohm resistor
- Uln2003A motor Driver
- Stepper motor (28BYJ-48)
- 5v power supply
- MP LAB
- Proteus
Specificaton :
Pic18F34520 is a popular 8 bit microcontroller .It's has 40 pins out of which 36 are input output based pins. It can run in 3 modes i.e. run, sleep, idle. It consist of 10 bit ADC,watchdog timer with seperate RC Oscillator. it gives upto 10 MIPS performance at 3V.
Uln2003A: Is a Darlington pair array ,which is useful to drive this motor ,since Pic microcontroller couldn't provide enough current to drive .Also it is capable to drive 500 mA of load with 600 mA of peak current. It consist of 16 pins i.e. 7 input ,7 output.
Stepper motor : it is 5Vdc unipolar motor with 4 phases, It has frequency of 100Hz and noise <35dB.
MPlabX: Integrated Development Environment (IDE) is an expandable, highly configurable software program that incorporates powerful tools to help you discover, configure, develop, debug and qualify embedded designs for most of Microchip's microcontrollers and digital signal controllers
Block Diagram :
- Collect all required components.
- Build Interfacing diagram on proteus or multisim .
- Write a code in Mplabx software
- Create Hex file .
- Build your own circuit .
- Thus you have successfully interfaced stepper motor .
- The center tap on the stator winding allows the current in the coil to change direction when the winding are grounded.
- The magnetic property of the stator changes and it will selectively attract and repel the rotor, thereby resulting in a stepping motion for the motor.
- The micro-controller cannot provide enough current to run the motor, a driver like a ULN2003 is used to drive the motor.
- When two stator electromagnets are energized at a time, the motor will run at full torque.
- Thus we observe motor to be rotating and our conveyor system works fine .



Comments
Post a Comment