Go to Post I think this says it all... It's Fantasy FIRST on Chief Delphi. - Zach O [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Obscure PBASIC for RoboEmu rbayer Programming 1 28-03-2003 23:57
Current Monitoring system questions PyroPhin Technical Discussion 44 17-02-2003 15:34
PBasic 2.5 vs. 2.0 Anthony Kesich Programming 6 09-02-2003 22:06
PBASIC access to 1 pin only diego25 Programming 13 21-01-2002 10:55
Simplifying PBasic IDiggles General Forum 16 06-11-2001 01:36


All times are GMT -5. The time now is 12:18.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi