Go to Post if you need a hammer you use a hammer and not an oscilloscope. - Andrew Schreiber [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 02-07-2011, 21:08
docdavies's Avatar
docdavies docdavies is offline
Doc Davies
FRC #0346 (RoboHawks)
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 1998
Location: Richmond, VA
Posts: 70
docdavies is an unknown quantity at this point
Use of Arduino to control a Spike Relay

We are trying to resurrect our 2010 Breakaway robot using an Arduino Mega. I've gotten the motor control in hand (solenoid PWM), and have worked out how to run the 12 V Festo values. Our Jag's and Victors are behaving themselves (although I haven't gotten everything running at once so don't know if I'm going to over load the Arduino outputs). Was playing around today with Spike Relays, they hold a lot of potential. I wrote the code to run the compressor and read the pneumatic switch and was about to run it when that little voice in my head said, "You'd better look into the amount of current that will be sourced into the PWM control port from an Arduino pin". Could not find anything on line about how much it takes to activate the Spike. Anyone know? Also, hooked the Spike power input to 12 V battery, got nice orange light, hooked white line to 5V power supply, green for go, 5V to red line red for reverse. Wonderful. So put meter in circuit and got 65 mA flowing. Way to much for Arduino. But thought I'd measure resistance and do Ohms law to check. Measure resistance from white to black...infinite???? Obviously I'm missing something. Can anyone help. Basically my question is, can the Arduino directly control the Spike using a DIO line. Thanks....
  #2   Spotlight this post!  
Unread 02-07-2011, 21:41
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Use of Arduino to control a Spike Relay

Quote:
Originally Posted by docdavies View Post
"You'd better look into the amount of current that will be sourced into the PWM control port from an Arduino pin".
Just to be clear: The Spike's input is not PWM.

Quote:
Basically my question is, can the Arduino directly control the Spike using a DIO line. Thanks....
I don't know about Arduino specifically, but these two links might be of help:

http://www.ifirobotics.com/forum/vie...bb0ac07 5720b

http://www.chiefdelphi.com/forums/sh...ad.php?t=47835


  #3   Spotlight this post!  
Unread 02-07-2011, 23:19
docdavies's Avatar
docdavies docdavies is offline
Doc Davies
FRC #0346 (RoboHawks)
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 1998
Location: Richmond, VA
Posts: 70
docdavies is an unknown quantity at this point
Re: Use of Arduino to control a Spike Relay

I do understand that the Spike is not powered by a PWM signal...we just use a PWM cable and so generically refer to it as the "PWM input to the Spike"..... I realize that the black is ground, white is 5V (TTL) for forward and the red is 5V (TTL) for reverse.

I checked the references you included. My impression is that it should work, but there was one mention that the 5V source might not be able to source enough power. I'm not familiar with the 2004 EDU RC. Can you tell me how much the TTL output lines could source?
  #4   Spotlight this post!  
Unread 03-07-2011, 17:19
gcschmit's Avatar
gcschmit gcschmit is offline
Registered User
AKA: Geoff Schmit
FRC #3061 (Huskie Robotics)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Naperville, IL
Posts: 12
gcschmit is an unknown quantity at this point
Re: Use of Arduino to control a Spike Relay

Quote:
Originally Posted by docdavies View Post
Basically my question is, can the Arduino directly control the Spike using a DIO line. Thanks....
I've controlled a Spike relay with an Arduino and it worked fine. I didn't switch the relay a lot since it was only used as a cut-down mechanism for a near-space balloon.
  #5   Spotlight this post!  
Unread 03-07-2011, 17:50
docdavies's Avatar
docdavies docdavies is offline
Doc Davies
FRC #0346 (RoboHawks)
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 1998
Location: Richmond, VA
Posts: 70
docdavies is an unknown quantity at this point
Re: Use of Arduino to control a Spike Relay

Geoff,

So I'm assuming you did not use a limiting resistor. You just connected the Arduino pin and set it high?

Doc
  #6   Spotlight this post!  
Unread 03-07-2011, 21:26
gcschmit's Avatar
gcschmit gcschmit is offline
Registered User
AKA: Geoff Schmit
FRC #3061 (Huskie Robotics)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2009
Location: Naperville, IL
Posts: 12
gcschmit is an unknown quantity at this point
Re: Use of Arduino to control a Spike Relay

I just connected the Arduino digital line and ground line and set the digital line high. (I was only interested in switching the relay in one direction.)
  #7   Spotlight this post!  
Unread 03-07-2011, 22:28
Jetweb Jetweb is offline
is good at making robots find walls
AKA: Jonathan
FRC #0179 (Children of the Swamp!!!)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Jupiter, FL
Posts: 213
Jetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to all
Re: Use of Arduino to control a Spike Relay

The control input on the spike relay is optoisolated.

Google CNY17F for the optoisolator data sheet, your 65ma reading is correct. (I checked a spike i had on my desk and got the same thing) I would use a transistor just to be safe.

Last edited by Jetweb : 03-07-2011 at 22:58. Reason: incorrect information
  #8   Spotlight this post!  
Unread 04-07-2011, 08:22
docdavies's Avatar
docdavies docdavies is offline
Doc Davies
FRC #0346 (RoboHawks)
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 1998
Location: Richmond, VA
Posts: 70
docdavies is an unknown quantity at this point
Re: Use of Arduino to control a Spike Relay

Jet,

Yeah, that's the conclusion I've come to as well. I had hoped for a minimum of additional components and such, but I need transistors to drive the Festo's as well, so guess I'll go that route. My ideal solution is to develop an Arduino shield that I can plug the cRIO end of DB37 from the digital side car directly into, to minimize the fuss of conversion. I take heart that the new 4 slot cRIOs are cheaper...but they still toooooo expensive for a couple of old robots or playing around, and here of course I mean "serious experimentation".
On the positive side, I'm having a great time with my Arduino and have found one of it's cousins, the Netduino, equally intriguing. I see a lot of home automation, hobby robotics, quadcopters and robotic arms in my future. Now if I can just get my son to work out the wireless aspects of the connection from drive station to Arduino / Netduino.....
Y'all will probably see posts on that some time soon!
Doc
  #9   Spotlight this post!  
Unread 04-07-2011, 09:01
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Use of Arduino to control a Spike Relay



I don't know if this is authoritative, but it purports to be from the IFI Tech Support Site Administrator.

The same author claimed that the EDURC IO could drive the Spike directly.



Attached Thumbnails
Click image for larger version

Name:	EDUma.PNG
Views:	92
Size:	27.3 KB
ID:	10809  Click image for larger version

Name:	EDU&spike.png
Views:	82
Size:	31.6 KB
ID:	10810  

Last edited by Ether : 04-07-2011 at 10:18. Reason: fixed links
  #10   Spotlight this post!  
Unread 04-07-2011, 16:27
docdavies's Avatar
docdavies docdavies is offline
Doc Davies
FRC #0346 (RoboHawks)
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 1998
Location: Richmond, VA
Posts: 70
docdavies is an unknown quantity at this point
Re: Use of Arduino to control a Spike Relay

Ether,

Thanks for your input. I have to admit I'm in a quandary. I've also seen info that says even the cRIO-DSC DIO output is no more than 2 mA. But I can't get anything that gives me that rock solid feeling. An Arduino can be had for $35-60 but I'm hesitant to just give it a shot.

I'm going to get a hold of a NI tech support guy I used to interface with when I was in industry. I'll put the burden of getting the info on him.

I do hope you're right since it makes the whole replacement thing much simpler.

If anyone else picks any info, I'd love to hear it!!!!!

Doc
  #11   Spotlight this post!  
Unread 05-07-2011, 07:23
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Use of Arduino to control a Spike Relay

Quote:
Originally Posted by docdavies View Post
Ether,

Thanks for your input. I have to admit I'm in a quandary. I've also seen info that says even the cRIO-DSC DIO output is no more than 2 mA. But I can't get anything that gives me that rock solid feeling.
Doc
Doc,
The cRio does not drive the relays direct. That is what the digital sidecar is for. The drive circuitry and current is part of that interface.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #12   Spotlight this post!  
Unread 05-07-2011, 08:24
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,370
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: Use of Arduino to control a Spike Relay

There are several low side or high side switch chips on the market. Check ST Micro or Infineon. You can get up to 8 outputs in a package. This is what they are designed to do. I do not know of any company making a break out or shield for them unfortunately. Note that some Arduino's are 3.3 volt devices and not all driver chips can operate at lower voltages.
  #13   Spotlight this post!  
Unread 05-07-2011, 10:48
docdavies's Avatar
docdavies docdavies is offline
Doc Davies
FRC #0346 (RoboHawks)
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 1998
Location: Richmond, VA
Posts: 70
docdavies is an unknown quantity at this point
Re: Use of Arduino to control a Spike Relay

Al,

Can you tell me then how much the relay lines from the digital side car can source? My searches have led to mentions of from 2-100 mA. And that would be from the DSC side not the cRIO.

G,

I'll look into those components....but I am but a poor biochemist, with little electronics training... Looking at those specs and little symbols gives me a tremendous head ache.....

I never thought such a simple question could be so complicated!
  #14   Spotlight this post!  
Unread 05-07-2011, 11:06
Jetweb Jetweb is offline
is good at making robots find walls
AKA: Jonathan
FRC #0179 (Children of the Swamp!!!)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Jupiter, FL
Posts: 213
Jetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to all
Re: Use of Arduino to control a Spike Relay

Quote:
Originally Posted by docdavies View Post
Al,

Can you tell me then how much the relay lines from the digital side car can source? My searches have led to mentions of from 2-100 mA. And that would be from the DSC side not the cRIO.

G,

I'll look into those components....but I am but a poor biochemist, with little electronics training... Looking at those specs and little symbols gives me a tremendous head ache.....

I never thought such a simple question could be so complicated!
According to this from the first website the relay outputs from the DSC can source 7.5mA each.

To add to that in the past I have ran a spike connected directly to 2 DIO lines on a microchip part which could only source 20mA per line and it worked fine (back when i just assumed an optoisolator would not pull 65mA)

Theres seems to be something simple were missing here that hopefully someone can explain
  #15   Spotlight this post!  
Unread 05-07-2011, 16:19
docdavies's Avatar
docdavies docdavies is offline
Doc Davies
FRC #0346 (RoboHawks)
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 1998
Location: Richmond, VA
Posts: 70
docdavies is an unknown quantity at this point
Re: Use of Arduino to control a Spike Relay

Ok, I'm almost crazy enough to laugh and cry at the same time. In the following reference:

http://www.vexrobotics.com/217-0220.html

They say, "It (the spike relay) can not be connected to an R/C hobby type receiver".

Then lower in the specs they say, ---- "Control Signal:Hi: 3V min @ 4mA; Lo: open or ground."

Surely we have one electronics expert in the forums that can wade through this mass of info and render an expert opinion??
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 18:57.

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