Discussion in "Project Help" started by    Narayani    Feb 21, 2018.
Wed Feb 21 2018, 09:47 am
#1
Hello,
Your tutorial really helped me understand stepper motor better. But I'm confused as to how you took the values 0x0c etc for stepper variable in the C code. how to derive these values?
Since I'm trying to use another microcontroller understanding and making a c code would help me a long way.
Please let me know.
Thanks!
Thu Feb 22 2018, 02:37 am
#2
The code you refer to is to drive the circuit
shown in the accompanying diagram.

http://www.8051projects.net/wiki/Stepper_Motor_Tutorial
"Bipolar Stepper Motor connection"

Applying this bit pattern,to the L293D will turn the motor.

c 1100 ;shifting pattern
6 0110
3 0011
9 1001

The code will work on any micro,
just change it to drive 4 pins in the same order.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

ChrisLub
Tue Apr 23 2024, 05:21 pm
Davidbab
Tue Apr 23 2024, 10:41 am
Richardrit
Tue Apr 23 2024, 09:54 am
HenryLaf
Mon Apr 22 2024, 03:50 pm
bleradrar
Mon Apr 22 2024, 06:38 am
ppu-pro_ka
Sun Apr 21 2024, 07:39 pm
Infewow
Sun Apr 21 2024, 06:30 pm
HumanTak
Sun Apr 21 2024, 12:26 pm