View Single Post
  #1   Spotlight this post!  
Unread 31-01-2002, 15:24
diego25 diego25 is offline
Registered User
#0897
 
Join Date: Jan 2002
Location: Toronto, Ontario
Posts: 10
diego25 is an unknown quantity at this point
Output voltage in PBASIC

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