How does the output voltage in PBASIC work?
I know 0-255 in PBASIC means a voltage from 0 to +5V, but how does the motor go backwards then? That'd require negative voltage...
From what I've seen, I think
127 means 0V
> 127V means forward
< 127V means backward
Is that right? If that's right, what provides more power? 0 or 126V?
e.g.
hi neg power no power hi pos power
0------------------------------127------------------------------255
or
low neg pwr hi neg pwr no power low pos pwr hi pos power
0----------------------------------127------------------------------255
Hope this wasn't too confusing
Thanks,
Diego