Go to Post Just like a mentor used to call a deburring tool, the whirlygig....it just sticks. Also, whirlygig....what a sweet name for a tool. - Stephen Kowski [more]
Home
Go Back   Chief Delphi > Technical > Control System
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 15-03-2008, 16:00
de_ de_ is offline
Registered User
AKA: Dave Edwards
FRC #1310 (Runnymede Robotics)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Toronto, Ontario
Posts: 256
de_ is a jewel in the roughde_ is a jewel in the roughde_ is a jewel in the roughde_ is a jewel in the rough
Can Relay Outputs Directly Drive LEDS ? (for testing)

All 8 relay ports are in use this year (that's a lot of Spikes & PWM cables !). We like to test our software out first on a table test board as much as possible. We would prefer to not have to dedicate 8 more spikes and pwms just to have visual confirmation of the state of the relay outputs.

If I read Kevin Watsons CPU to RC I/O mapping chart and the CPU spec also posted by KW, it appears each pin might be able to provide 25ma, enough to power a led (with an appropriate dropping resistor). We would probably limit it to 10-15ma (just enough to see reliably).

Anyone one know for certain this is doable or more importantly if its a bad idea ? I would hate to blow our test RC. (We asked Innovation First but did not hear back.)
  #2   Spotlight this post!  
Unread 15-03-2008, 16:15
kevin.li.rit's Avatar
kevin.li.rit kevin.li.rit is offline
Imaginary Friend
AKA: Kevin Li
FRC #0596 (SciClones)
Team Role: Student
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Hopkinton, Massachusetts
Posts: 936
kevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond repute
Send a message via Yahoo to kevin.li.rit
Re: Can Relay Outputs Directly Drive LEDS ? (for testing)

I don't understand why you don't want to read the state of the spike with the LED already on there. I'm not sure if the signal from the relays goes to a negative voltage, if that's the case then you wouldn't want to wire a LED to the relay output.

You can always write a printf() to print out whenever a relay is forward or reverse.

if(relay1_fwd == 1)
printf("relay 1 foward");
__________________
Kevin Li

596 - Sciclones
1405 - Finney Falcons
2262 - Holliston Panthers
  #3   Spotlight this post!  
Unread 15-03-2008, 18:31
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Can Relay Outputs Directly Drive LEDS ? (for testing)

You can also use the Digital I/O as an output, hence the O in I/O... Set it as an ouput and say digital01_out, or whatever the command is (its just like the in one but it says out) and set it equal to 1 for one, or 0 for off, just like relay ports! You can also use Relay ports, but I don't remember if there is a rule that you can only plug up Spikes to the Relay Outputs or not...
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364
  #4   Spotlight this post!  
Unread 15-03-2008, 20:36
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Can Relay Outputs Directly Drive LEDS ? (for testing)

Quote:
Originally Posted by de_ View Post
All 8 relay ports are in use this year (that's a lot of Spikes & PWM cables !). We like to test our software out first on a table test board as much as possible. We would prefer to not have to dedicate 8 more spikes and pwms just to have visual confirmation of the state of the relay outputs.

If I read Kevin Watsons CPU to RC I/O mapping chart and the CPU spec also posted by KW, it appears each pin might be able to provide 25ma, enough to power a led (with an appropriate dropping resistor). We would probably limit it to 10-15ma (just enough to see reliably).

Anyone one know for certain this is doable or more importantly if its a bad idea ? I would hate to blow our test RC. (We asked Innovation First but did not hear back.)
For the price of an RC I would research the spec myself; however if an LED draws 15 mA and the output can source 15 mA or more, then the answer is yes.

While you are looking at those specs, also see what the output can "sink" - that is, how much current can it allow to flow when it acts as a ground (and not a power 'source'). Most circuits can sink two or more times the current that they can source. If you want to do this, connect the anode of the LED to +5v, and the cathode (through a dropping resistor, maybe 82 to 120 Ohms) to the digital (relay) output pin.

Don

[EDIT]Digital pins can only source 7 mA. I'd test them by allowing them to sink the current instead, maybe ask IFI
__________________

I am N2IRZ - What's your callsign?

Last edited by DonRotolo : 16-03-2008 at 14:22. Reason: Thanks for the IFI link "The" Lucas
  #5   Spotlight this post!  
Unread 15-03-2008, 21:06
The Lucas's Avatar
The Lucas The Lucas is offline
CaMOElot, it is a silly place
AKA: My First Name is really "The" (or Brian)
FRC #0365 (The Miracle Workerz); FRC#1495 (AGR); FRC#4342 (Demon)
Team Role: Mentor
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Dela-Where?
Posts: 1,564
The Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond reputeThe Lucas has a reputation beyond repute
Send a message via AIM to The Lucas
Re: Can Relay Outputs Directly Drive LEDS ? (for testing)

Quote:
Originally Posted by Don Rotolo View Post
For the price of an RC I would research the spec myself; however if an LED draws 15 mA and the output can source 15 mA or more, then the answer is yes.

While you are looking at those specs, also see what the output can "sink" - that is, how much current can it allow to flow when it acts as a ground (and not a power 'source'). Most circuits can sink two or more times the current that they can source. If you want to do this, connect the anode of the LED to +5v, and the cathode (through a dropping resistor, maybe 82 to 120 Ohms) to the digital (relay) output pin.

Don
This IFI FAQ entry should be of interest.

One of the questions in the thread is:
Quote:
Originally Posted by IFI FAQ
Could we use the charge from a Digital I/O pin set on the RC to power a single solenoid, or do we have to go through the relay pins and a spike?


You must follow FIRST Rules. As for is it possible, you must check the current required for your solenoid, the Digital pins can only source about 7mA.
__________________
Electrical & Programming Mentor ---Team #365 "The Miracle Workerz"
Programming Mentor ---Team #4342 "Demon Robotics"
Founding Mentor --- Team #1495 Avon Grove High School
2007 CMP Chairman's Award - Thanks to all MOE members (and others) past and present who made it a reality.
Robot Inspector
"I don't think I'm ever more ''aware'' than I am right after I burn my thumb with a soldering iron"
  #6   Spotlight this post!  
Unread 15-03-2008, 22:36
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Can Relay Outputs Directly Drive LEDS ? (for testing)

Quote:
Originally Posted by de_ View Post
Anyone one know for certain this is doable or more importantly if its a bad idea ? I would hate to blow our test RC.
It's perfectly doable. On a testbed system, it might even be a good idea. The Spike input is opto-isolated, meaning it is essentially an LED. The specification calls for a 4mA control signal at at least 3V, so if you can manage to get enough light out of that, your test will be perfect.

I once put a three-terminal red/green LED on the relay output, with a resistor chosen to limit the current to about 10mA. It worked fine, and the LED matched exactly what one would see on the built-in LED of a Spike.
  #7   Spotlight this post!  
Unread 17-03-2008, 11:34
de_ de_ is offline
Registered User
AKA: Dave Edwards
FRC #1310 (Runnymede Robotics)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Toronto, Ontario
Posts: 256
de_ is a jewel in the roughde_ is a jewel in the roughde_ is a jewel in the roughde_ is a jewel in the rough
Re: Can Relay Outputs Directly Drive LEDS ? (for testing)

Thanks for the insights. Makes it a little less nerve racking!
  #8   Spotlight this post!  
Unread 11-04-2008, 15:13
de_ de_ is offline
Registered User
AKA: Dave Edwards
FRC #1310 (Runnymede Robotics)
Team Role: Mentor
 
Join Date: Apr 2005
Rookie Year: 2005
Location: Toronto, Ontario
Posts: 256
de_ is a jewel in the roughde_ is a jewel in the roughde_ is a jewel in the roughde_ is a jewel in the rough
Re: Can Relay Outputs Directly Drive LEDS ? (for testing)

Just so you know, the following was posted in IFI forum for the RC.
(Again, this was for just a table top test setup, not for the actual robot).

Yes, it is possible to drive LEDs directly from the Relay FWD / REV Outputs. Connect the anode of the LED to the FWD or REV Output. Connect the cathode of the LED to ground. The outputs can sink and source at least 8 mA. There is a 330 ohm series resistor between the VHCT logic outputs and each the FWD and REV header posts. Assuming the LEDs you are using can handle 15 mA of continuous current, direct connect them as described above.
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
Using Kevin's PWM outputs for a quieter drive system. PhilBot Control System 20 09-03-2008 16:10
Driving LEDs straight from Relay outputs skippy178 Electrical 4 16-02-2007 15:13
relay and pwm outputs nick_champ_2 Electrical 1 31-01-2003 13:08
Relay outputs on rc jdawson Electrical 4 26-01-2003 12:51
Relay Outputs OddOne Technical Discussion 3 01-02-2002 19:52


All times are GMT -5. The time now is 05:48.

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