Bipolar stepper motor control with PIC16F877A | Simulation

Electronics Developer
Electronics Developer
1.2 هزار بار بازدید - 3 سال پیش - -------------------------📌Introduction-------------------------Most of cd-rom or dvd-rom
-------------------------
📌Introduction
-------------------------
Most of cd-rom or dvd-rom drives has a bipolar stepper motor, this motor has two windings and each winding has 2 inputs which means that this type of motor has 4 wires.This topic shows circuit schematic and C code for controlling the bipolar stepper motor speed and direction using PIC16F877A microcontroller.

-------------------------
📌 Designing and Working
-------------------------

The stepper motor can be controlled in full step mode or half step mode. The full step mode is a little bit easier than the half step control mode. In this topic the full step control mode is used.
To control the bipolar stepper motor we need two H-bridge circuits and for that L293D motor driver chip is used, this cheap chip can work as a dual H-bridge drivers.

-------------------------
📌 Tags
-------------------------
#pic16f877a #stepper_motor #electronics

-------------------------
📌 The Code
-------------------------
A pot connected to AN0 is used to control the speed of the stepper motor. The microcontroller reads the analog data from AN0 and uses the digital value to change the delay between motor driving phases and when the delay increases the motor speed decreases and vise versa.
The two pushbuttons which are connected to RB0 and RB1 are used to choose motor rotation direction and when RB0 button pressed the driving sequence follows the first table above and when RB1 button is pressed the driving sequence follows the second table.
8-bit ADC resolution is used. Source code Given In Comment Section


📌 Tune With us so you never miss any update
-------------------------------------------------------------------------------------------------------------------------------------------------------------
🏷️Telegram  : https://t.me/electronicsdeveloper
🏷️Facebook : Facebook: electronicsdeveloper
🏷️Instagram : Instagram: electronics_developer
🏷️Tweeter : https://twitter.com/Electronics_Dev?s=09
🏷️LinkedIn : LinkedIn: electronics-with-shreyash
🏷️Pinterest : Pinterest: electronics_developer

Copyright Disclaimer under Section 107 of the copyright act 1976
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Copyright Disclaimer under Section 107 of the copyright act 1976, allowance is made for fair use for purposes such as criticism, comment, news reporting, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favour of fair use.

----------------------------------------------------------------------------------------------------------------------------------------------------------
About Electronics Developer : YouTube certified creative essentials and asset monetization
----------------------------------------------------------------------------------------------------------------------------------------------------------
3 سال پیش در تاریخ 1400/08/29 منتشر شده است.
1,289 بـار بازدید شده
... بیشتر