View Single Post
  #4   Spotlight this post!  
Unread 24-06-2002, 01:02
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Re: Joy2 Wheel use as switch

Posted by Gui Cavalcanti at 02/21/2001 5:00 PM EST


Student on team #422, Mech Tech, from Governor's School (GSGIS) and Verizon.


In Reply to: Re: Joy2 Wheel use as switch
Posted by Joe on 2/18/2001 8:32 PM EST:



While the previous two suggestions are OK, I'm thinking that for a switch you don't need a massive deadzone. Try this, it's also very streamlined. Remember that the potentiometer wheel's middle is 127!
This is just a lot easier than any of the previous suggestions and divides the wheel equally right down the middle. Psst... it's easier to use a 3-state toggle switch, by the way

if (p2_wheel > 127) then relay_3_forward
relay3_fwd = 0
relay3_rev = 1
goto SkipForward:

relay_3_forward:
relay3_fwd = 1
relay3_rev = 0

SkipForward:
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.