Go to Post I personally think a large trophy and that warm, fuzzy feeling you get inside is a satisfactory prize for winning a competition. - Dan Petrovic [more]
Home
Go Back   Chief Delphi > Technical > Pneumatics
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
  #2   Spotlight this post!  
Unread 07-02-2012, 20:16
sand500 sand500 is offline
Registered User
FRC #3540 (Wildcat Robotics)
 
Join Date: Jan 2011
Rookie Year: 2011
Location: United States
Posts: 81
sand500 is an unknown quantity at this point
Re: Can't Get Compressor to Run

So when wiring the spike, what you need to do is Connect GND to black on PDB and 12v to red on PDB, make sure u use the smaller slots on the PDB. when you turn your bot on, your spike's led should be glowing orange-ish or red-ish.

(make sure your fuse isnt broken)
then what you need to do is connect the 3pin cable from the relay ports on the digital sidecar to the spike.
relay ports are the ones next to the phone jack and right under the DIO ports.

On the spike, it has a B which means the black of the PWM cable goes on it. or what ever color ur GND is.

now coding wise, we used the Relay class
our code looked like:

Code:
if(forward == true)
{
spike.set(Relay.Value.kOn);
spike.set(Relay.Value.kForward);
}
else if (reverse == true)
{
spike.set(Relay.Value.kOn);
spike.set(Relay.Value.kReverse);
}
if(!forward && !reverse)
{
spike.set(Relay.Value.kOff);
}
now when you set forward, your LED on the spike should switch from orange to green and when you set reverse, the LED should switch from orange to red.

If that is working, then wire the compressor to the spike, Red to M+ and black to M- and get rid of the code that lets the relay go reverse. And then when you turn on the bot, the relay should start.

Let me know if this helps
 


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


All times are GMT -5. The time now is 11:29.

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