8051 stepper motor interfacing with programming in proteus

8051 stepper motor interfacing with programming in proteus

8051 stepper motor interfacing with programming, proteus simulation
8051 stepper motor interfacing with programming circuit diagram

8051 stepper motor interfacing with programming in proteus

In this article we will learn how to Interfacing 8051 stepper motor with programming in proteus.

In the last post we will learn how to interfacing 8051 interfacing with external Ram and ROM in Proteus. You can visit our website,
I hope you appreciate my work, let’s discuss about today’s project.

 

 

Components:

  1. IC (8051)
  2. IC (ULN2003)
  3. Servo motor (12V)
  4. Resistors (10k, 1k, )
  5. Diod (4148)
  6. Capacitor (30pF, 22uF)
  7. Crystal (1.2MHz)
  8. Push button
  9. Jumper wires

Construction…

  • Connect pin 18 of 8051 with one side of capacitor 33p through the one side of crystal
  • Connect 2nd side of capacitor with one side of 2nd capacitor and then connect them with GND
  • Connect the pin 19 of 8051 with 2nd side of crystal through the 2nd side of 2nd capacitor
  • Connect pin 9 of 8051 with +ve side of capacitor 22uF through one side of Resistor 1k
  • Connect –ve side of capacitor 22uf with +ve
  • Connect 2nd side of resistor 1k with GND
  • Connect pin 31 of 8051 with +ve
  • Connect pin 9 of ULN with +12V
  • Connect Terminal A of Servo motor with pin 16 of ULN(2003)
  • Connect Terminal B of Servo motor with pin 15 of ULN(2003)
  • Connect Terminal C of Servo motor with pin 14 of ULN(2003)
  • Connect Terminal D of Servo motor with pin 13 of ULN(2003)
  • Connect signal terminals with +12V
  • Connect one terminal of Forward button and +ve side of 1st Diod with GND
  • Connect 2nd terminal of Forward button and –ve side of 1st Diod with one side of Resistor 10k
  • Connect 2nd side of resistor 10k with +ve
  • Connect one terminal of Reverse button and +ve side of 2nd Diod with GND
  • Connect 2nd terminal of Reverse button and –ve side of 2nd Diod with one side of Resistor 10k
  • Connect 2nd side of resistor 10k with +ve
8051 stepper motor interfacing with programming, proteus simulation
8051 stepper motor interfacing with programming circuit diagram

Working…

Interfacing an 8051 microcontroller with a stepper motor involves controlling the stepper motor to make it move in a precise and controlled manner. Stepper motors are commonly used in applications that require accurate position and speed control.

Applications…

  1. Robotics
  2. Automated Manufacturing
  3. Telescope and Camera Mounts
  4. 3D Printing
  5. Textile Machinery

Advantages…

  1. Precise Control
  2. Low Cost
  3. Simple Interface
  4. Reliability
  5. Low Power Consumption

Project Code…

[dt_code]

#include “ioAT89C51.h”

// Definition for output port and input pins
#define out_port (P2)
#define key_for (P0_bit.P0_0)
#define key_rev (P0_bit.P0_1)

// Define new types
typedef unsigned char uchar;
typedef unsigned int uint;

void delayms(uint);

// Array of Stepping Sequences
uchar const sequence[8] = {0x02,0x06,0x04,0x0c,0x08,0x09,0x01,0x03};

void main(void)
{ uchar i;
out_port = 0x03;
while(1)
{ // Has the forward key been pressed ?
if (!key_for)
{ i = i<8 ? i+1 : 0;
out_port = sequence[i];
delayms(50);
}
// Has the reverse key been pressed ?
else if (!key_rev)
{ i = i>0 ? i-1 : 7;
out_port = sequence[i];
delayms(50);
}
}
}

void delayms(uint j)
{ uchar i;
for(; j>0; j–)
{ i = 120;
while (i–);
}
}

[/dt_code]