PDA

View Full Version : Angular value of a stepper motor



debutpic
- 31st July 2007, 17:05
Hello all

Currently I play with the stepper motor
and now I will want to read the angular position on a LCD

I must increment a variable between each step
(engine works in half step-->400 steps per turn-->0,9°)
unfortunately not floating point in PBP
Do you have a solution?

while portc.0=1
PORTB=%00001000
'what solution
pause 3

PORTB=%00001100
'what solution
pause 3
...........
...........
...........

wend