Microcontrollers and a Stepper Motor

by sister mariaM in Circuits > Microcontrollers

3789 Views, 1 Favorites, 0 Comments

Microcontrollers and a Stepper Motor

Dazzling Jarv-Albar.png

Microcontrollers are small computers on a chip . They execute programs for controlling other devices .

Stepper motors are motors which move in discrete steps .They are used in printers ,clocks and other devices .

This circuit will use a microcontroller to control a stepper motor.

The List of Electronic Components

Dazzling Jarv-Albar.png

This circuit will require ;

An Arduino Uno

AT Tiny (85 or 45)

stepper motor

breadboard

9 volt battery

leads

the AT Tiny

Dazzling Jarv-Albar.png

The AT Tiny (45 or 85) will be used in the circuit .

The voltage is applied to pin 8 which has a red lead there .

The ground is at pin 4 which has a black lead there .

Pin 5 and Pin 6 are PWM( pulse width modulated outputs ) which means pulses are generated at a frequency .

These pulses will be applied to the stepper motor to drive it .

Connecting the Stepper Motor

Dazzling Jarv-Albar.png

The orange lead goes from pin 5 of AT Tiny to Channel A of the stepper motor .

The purple lead goes to pin 6 of the AT Tiny to Channel B of the stepper motor.

The red and black leads of the motor go to the 9 volt battery.

The voltage sensor of the motor goes to 5 volts on the breadboard .(it is a red lead).

The ground from the motor goes to ground on the board .

The Arduino Uno 3 and Final Summary

Dazzling Jarv-Albar.png

The Arduino Uno has 5 volts supply which is connected to the board(red lead)

The ground from the Arduino is connected to the ground of the board(black lead.)

Now the circuit is complete .

The ATTiny has pulse width modulation outputs which will drive the stepper motor with the 9 volt battery source. .

The Arduino Uno supplies the power (5 volts ) to the AT Tiny .The motor is set at 437 rpm .It is running at

307 rpms .

This project I designed on Tinkercad. It was tested on Tinkercad and works .

I hope this projects help you understand microcontrollers and stepper motors better .