View Single Post
  #6   Spotlight this post!  
Unread 23-03-2004, 23:20
KevinB's Avatar
KevinB KevinB is offline
Registered User
AKA: Alum
no team
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2001
Location: AL
Posts: 188
KevinB will become famous soon enoughKevinB will become famous soon enough
Send a message via ICQ to KevinB
Re: not quite sure...speed controller...spike.

Quote:
Originally Posted by tophq
is it necassary to use a speed controller on ALL motors, or can i (legally) use a spike for the window motor?
You may use a Spike for the window motor.
Quote:
Originally Posted by tophq
2. if i have to use a speed controller, then what (for example) would i do to make a motor used to power a wench as far as coding goes? (ie, if i wanted to use the p2_sw_aux1 to retract the wench, would i say:
Code:
if(p2_sw_aux1 == 1)
     {
     pwm05 = 255
     }
else
     {
     pwm05 = 127
     }
This code looks valid, except you are missing semicolons at the end of the "pwm05 = XXX" statements. Also, I'm not sure if this applies to the new controller, but the old controller didn't like PWMs being set to 255 -- we were told to use 254 instead.


Quote:
Originally Posted by tophq
when we used a speed controller, for some odd reason, the motor would activate and start retracting the wench. when we swapped it out for a spike (and changed the code accordingly), it worked out beautifully..
I'd be willing to bet this was probably caused by some code error that you accidentally remedied when you changed to the Spike. If you posted the exact old and new code, we might be able to better help you.