Go to Post I think this says it all... It's Fantasy FIRST on Chief Delphi. - Zach O [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 07-06-2006, 22:22
kiettyyyy's Avatar
kiettyyyy kiettyyyy is offline
Registered User
FRC #1538 (The Holy Cows)
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2005
Location: San Diego, CA
Posts: 181
kiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond repute
Send a message via AIM to kiettyyyy
Wiring Solinoid to Digital I/O

Hey All,

My i'm trying to wire up a spike relay to a digital in and out, but it happens to only go in one direction (remember digital is only a 1 or a 0), im thinking i should split a PWM cable and set the black as a shared ground between two digital i/o, and the red going to one digital i/o and the white going to another digital i/o. Is this right?

Whats your opinion? Or if i'm totally wrong, whats the correct method to wiring a spike relay to a digital i/o?

Thanks!
__________________
-Kiet Chau

2004-2008 - Software Developer/Driver on Team #968
2008-2011 - Software Developer/Coach/Mentor/"Engineer" on Team #968
2011-Present - Mentor & Engineer on Team #1538
www.team1538.com
  #2   Spotlight this post!  
Unread 07-06-2006, 22:28
Tristan Lall's Avatar
Tristan Lall Tristan Lall is offline
Registered User
FRC #0188 (Woburn Robotics)
 
Join Date: Aug 2001
Rookie Year: 1999
Location: Toronto, ON
Posts: 2,484
Tristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond reputeTristan Lall has a reputation beyond repute
Re: Wiring Solinoid to Digital I/O

That's not necessary. Here's the Spike manual; it's got the correct method using the relay outputs.

Or do you have a reason to want to connect two separate digital I/Os, instead of the relay outputs?

A fuller description might also allow us to suggest some other options.

Last edited by Tristan Lall : 07-06-2006 at 22:30.
  #3   Spotlight this post!  
Unread 07-06-2006, 22:35
kiettyyyy's Avatar
kiettyyyy kiettyyyy is offline
Registered User
FRC #1538 (The Holy Cows)
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2005
Location: San Diego, CA
Posts: 181
kiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond repute
Send a message via AIM to kiettyyyy
Re: Wiring Solinoid to Digital I/O

But thats for using relay outputs.. I need a digital output because i'm using an EDU-RC board.
__________________
-Kiet Chau

2004-2008 - Software Developer/Driver on Team #968
2008-2011 - Software Developer/Coach/Mentor/"Engineer" on Team #968
2011-Present - Mentor & Engineer on Team #1538
www.team1538.com
  #4   Spotlight this post!  
Unread 07-06-2006, 22:51
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,717
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Wiring Solinoid to Digital I/O

The Spikes aren't PWMs, they just use a PWM cable. You can figure it out looking at the program aliases. At any rate, on the relay's PWM cable, black is black/ground, red is reverse, white is forward. So you'd connect the red cable to the white pin of a second digital IO.

Here's IFI's info on it:
Spike FAQ
Spike Manual

EDIT:
As it says, you need to get 12V of power to the spike, so no using 7.2V batteries.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #5   Spotlight this post!  
Unread 07-06-2006, 23:23
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Wiring Solinoid to Digital I/O

There's a solenoid out port on the EDU board. Use that.
  #6   Spotlight this post!  
Unread 07-06-2006, 23:53
BrianBSL BrianBSL is offline
Registered User
FRC #0190
 
Join Date: Sep 2004
Rookie Year: 2000
Location: Worcester, MA
Posts: 251
BrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud of
Re: Wiring Solinoid to Digital I/O

Quote:
Originally Posted by kiettyyyy
Hey All,

My i'm trying to wire up a spike relay to a digital in and out, but it happens to only go in one direction (remember digital is only a 1 or a 0), im thinking i should split a PWM cable and set the black as a shared ground between two digital i/o, and the red going to one digital i/o and the white going to another digital i/o. Is this right?

Whats your opinion? Or if i'm totally wrong, whats the correct method to wiring a spike relay to a digital i/o?

Thanks!
Your assumption is correct on how to wire it, but might not necessarily work. I have had problems with vex controllers driving spikes before (but only certain spikes - the old style blue's IIRC), where the digital IO wasn't able to source enough current, so you might need to try the solenoid outputs if it doesn't work. Double check that the output of the Darlington pair on the solenoid outputs is 5V though, and not 7.2.

Edit: after thinking about it, if you can get it to go one direction, then you likely won't have the probelm I was having, and wireing it the way you said should work. Too much time at work and then in the robot lab tonight for me.
__________________
My posts represent my personal views only, and do not represent the views of either my team, Team 190, nor its primary sponsor, Worcester Polytechnic Institute.
  #7   Spotlight this post!  
Unread 08-06-2006, 00:31
kiettyyyy's Avatar
kiettyyyy kiettyyyy is offline
Registered User
FRC #1538 (The Holy Cows)
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2005
Location: San Diego, CA
Posts: 181
kiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond repute
Send a message via AIM to kiettyyyy
Re: Wiring Solinoid to Digital I/O

Dont worry about that 7.2v part, i have a breaker panel wired up to a 12 volt battery. The EDU-RC will be powered using the 7.2 battery.

I think splitting the PWM into two parts would work.. About that shared ground.. Should i just stick a wire in to the pwm connector (on the black female pin) and solder it, then do the same to the 2nd pwm connect? I'm afraid i might short something :-/
__________________
-Kiet Chau

2004-2008 - Software Developer/Driver on Team #968
2008-2011 - Software Developer/Coach/Mentor/"Engineer" on Team #968
2011-Present - Mentor & Engineer on Team #1538
www.team1538.com
  #8   Spotlight this post!  
Unread 08-06-2006, 08:44
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,717
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Wiring Solinoid to Digital I/O

Ground is ground is ground is ground. All those little black pins go to the exact same place and have the (nearly) exact same potential, barring odd very small resistance and capacitive effects, I suppose. So you shuldn't really have to worry about splitting the ground and sending it somewhere else.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #9   Spotlight this post!  
Unread 08-06-2006, 20:59
kiettyyyy's Avatar
kiettyyyy kiettyyyy is offline
Registered User
FRC #1538 (The Holy Cows)
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2005
Location: San Diego, CA
Posts: 181
kiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond repute
Send a message via AIM to kiettyyyy
Re: Wiring Solinoid to Digital I/O

Okay i finally soldered the wires and stuff.. it doesnt work.. my code is just.. rc_dig_out02 = 1; rc_dig_out03 = 0;

Why wont it move the solenoid??

I have black wired to black
white wired to white, and red pin moved to white pin
__________________
-Kiet Chau

2004-2008 - Software Developer/Driver on Team #968
2008-2011 - Software Developer/Coach/Mentor/"Engineer" on Team #968
2011-Present - Mentor & Engineer on Team #1538
www.team1538.com
  #10   Spotlight this post!  
Unread 08-06-2006, 21:18
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,717
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Wiring Solinoid to Digital I/O

Hmm. Do you know if it's the red wire that's not working or is it the white wire that's not working? That is, make the white wire IO = 1, and the other = 0 and see if it still works in that direction. If it doesn't then your wiring might be faulty somewhere. If it works in that direction but not the other, then your wiring of the red wire might be bad.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
  #11   Spotlight this post!  
Unread 13-06-2006, 02:40
kiettyyyy's Avatar
kiettyyyy kiettyyyy is offline
Registered User
FRC #1538 (The Holy Cows)
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2005
Location: San Diego, CA
Posts: 181
kiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond reputekiettyyyy has a reputation beyond repute
Send a message via AIM to kiettyyyy
Re: Wiring Solinoid to Digital I/O

Quote:
Originally Posted by Kevin Sevcik
Hmm. Do you know if it's the red wire that's not working or is it the white wire that's not working? That is, make the white wire IO = 1, and the other = 0 and see if it still works in that direction. If it doesn't then your wiring might be faulty somewhere. If it works in that direction but not the other, then your wiring of the red wire might be bad.

OOPPS! I forgot in the EDU.. you have to specify the port to become an input or output.. that IO stuff.. not that rc_dig_out...

It works fine now!!

Thank you for all your help!
__________________
-Kiet Chau

2004-2008 - Software Developer/Driver on Team #968
2008-2011 - Software Developer/Coach/Mentor/"Engineer" on Team #968
2011-Present - Mentor & Engineer on Team #1538
www.team1538.com
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital Caliper as a Digital Readout on Small Mill sanddrag Technical Discussion 9 13-10-2005 22:51
Digital Cameras Jeff Waegelin Chit-Chat 10 05-06-2003 11:45
Digital videos archiver 2001 1 24-06-2002 03:57
digital camera archiver 1999 4 23-06-2002 23:17
Digital Filters? archiver 2000 2 23-06-2002 22:55


All times are GMT -5. The time now is 04:36.

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