Go to Post Sometimes when complaining poverty, we don't recognize the riches we have. - GaryVoshol [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-02-2013, 01:35
daniel_dsouza daniel_dsouza is offline
does what needs to be done.
FRC #2449 (Out of Orbit Robotics)
Team Role: Alumni
 
Join Date: May 2011
Rookie Year: 2011
Location: Chandler, AZ
Posts: 231
daniel_dsouza has a spectacular aura aboutdaniel_dsouza has a spectacular aura about
Spikes with alternate control systems

Hello CD,

Since this build season is over, it is now time to start working on other projects (not before a HALO 1 LAN party!).

One project we are working on is resurrecting our 2012 bot with one of the old IFI systems. I've gotten the victors programmed and running fine, but now I just need to figure out how to program the spikes. Do any veteran members remember how this was done?

I would think that it would as simple as plugging in the spike to the relay bank of the Robot Controller, and mapping buttons in code, but whenever I do that (and toggle the relay1_fwd or relay1_rev on or off) nothing happens. I can tell because the indicator light on the spike does not change from solid orange even when the button reads a change in input.

Are there different types of spike (green, blue, yellow, etc)? Is there something missing?

Thanks in advance CD! Our first demonstration is in 2 days to our city board, and I would really love to show them what our robot can do!
  #2   Spotlight this post!  
Unread 20-02-2013, 01:46
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Spikes with alternate control systems

Looking back to our 2007 code, it seems that we set relays using
relay_fwd=1;
relay_rev=0;

Mind you, it has been 5 years since I have even attempted to code C++, and I may be completely wrong, but I believe it is actually looking for the boolean 1 or 0 instead of on or off.
__________________
I'm right 90% of the time, so why worry about the other 3%?
  #3   Spotlight this post!  
Unread 20-02-2013, 13:06
daniel_dsouza daniel_dsouza is offline
does what needs to be done.
FRC #2449 (Out of Orbit Robotics)
Team Role: Alumni
 
Join Date: May 2011
Rookie Year: 2011
Location: Chandler, AZ
Posts: 231
daniel_dsouza has a spectacular aura aboutdaniel_dsouza has a spectacular aura about
Re: Spikes with alternate control systems

UPDATE:

When I take a multimeter to the relay pins on the IFI Robot Controller, the Pins show a change in voltage (0-3V for either forward or reverse) based on the button. So it looks like the RC and code is ok.

So the new questions are should the output be 0-5V for either relay? Or are spikes from the new cRIO control system different?

Thanks
  #4   Spotlight this post!  
Unread 09-03-2013, 23:21
Toa Circuit's Avatar
Toa Circuit Toa Circuit is offline
Thaddeus Maximus
AKA: Thad Hughes
FRC #4213 (MetalCow Robotics)
Team Role: Leadership
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Shirley, IL
Posts: 131
Toa Circuit is an unknown quantity at this point
Re: Spikes with alternate control systems

The new Vex spikes use 5V current for the signal wires. Whether or not 3 will work, I do not know
Look up the data sheet.
__________________

2012 Head of Programming and Electrical
2013-14 Overall Team Captain and Programming Head
2012-14 Mentor of FLL Team Power Surge
2014 Dean's List Finalist
2014 CIR Xerox Creativity Award
Webpage
Closed Thread


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:21.

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