Go to Post ... as teammates we often get too into the craze of competition and forget that this wouldn't happen without so many dedicated people. - miketwalker [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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-07-2012, 18:31
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,749
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Turning LEDs on/off

I have an LED wired to the digital side car power and ground pins. I want to be able to turn it on/off programatically, but it always stays on. I am using Labview to open a digital output sand setting it to false, but the LED is always staying on.

I have the jumper on the DSC's port.

What am I ding wrong? Should the LED be wired to the ground and signal pins?
__________________
Quote:
The views expressed are mine and should not be construed to represent the views of anyone else.
  #2   Spotlight this post!  
Unread 07-07-2012, 18:36
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 601
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
Re: Turning LEDs on/off

Wiring to the signal pin sounds like it would work.
__________________
Team 973 (2016-???)
Team 5499 (2015-2016)
Team 254 (2014-2015)

Team 1538 (2011-2014)
2014 Driver (25W 17L 1T)
日本語でOK
  #3   Spotlight this post!  
Unread 07-07-2012, 19:09
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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: Turning LEDs on/off

Quote:
Originally Posted by rsisk View Post
I have an LED wired to the digital side car power and ground pins. I want to be able to turn it on/off programatically, but it always stays on. I am using Labview to open a digital output sand setting it to false, but the LED is always staying on.

I have the jumper on the DSC's port.

What am I ding wrong? Should the LED be wired to the ground and signal pins?
The power stays on. Only the signal turns on/off. Whether or not the LED will illuminate when you connect it between signal and ground depends on how much current the LED requires to illuminate, and how much current the signal can source. What's the part number of the LED?


  #4   Spotlight this post!  
Unread 07-07-2012, 21:07
theawesome1730's Avatar
theawesome1730 theawesome1730 is offline
Registered User
FRC #1730 (Team Driven)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Lee's Summit, MO
Posts: 316
theawesome1730 will become famous soon enough
Re: Turning LEDs on/off

I think you are right when you say that you should wire to signal and ground, just don't mix up positive and negative on the LED, they make a nice pop sometimes, you can also run LEDs on spike relays if they are 12 volt

Edit: Also the signal may not carry enough current to power LEDs in which case you should use a spike
__________________



2015 GKC Engineering Inspiration
2015 Colorado Winners
  #5   Spotlight this post!  
Unread 07-07-2012, 21:35
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,749
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Turning LEDs on/off

LEDs from SuperBrightLED

Qty | Product / Options | Price/ea |
================================================== ==========
12 | RL5-G7532: 5mm Green LED | $ 0.54 |
RL5-G7532: Green LED
----------------------------------------------------------

Resistors from www.MOUSER.com

299-82-RC
299-82-RC
82ohms

Assuming the flat side of the LED is the negative side.

Going to try the ground/signal setup now.... thanks
__________________
Quote:
The views expressed are mine and should not be construed to represent the views of anyone else.
  #6   Spotlight this post!  
Unread 07-07-2012, 21:57
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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: Turning LEDs on/off

Quote:
Originally Posted by rsisk View Post
Resistors from www.MOUSER.com
Why did you select 82 ohm?



Last edited by Ether : 07-07-2012 at 22:13.
  #7   Spotlight this post!  
Unread 07-07-2012, 23:26
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,749
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Turning LEDs on/off

Quote:
Originally Posted by Ether View Post
Why did you select 82 ohm?


I used the calculator linked below to determine the resistor. Forward current was 20mA, source voltage was 5v and the forward voltage was taken from the LED specs.

http://led.linear1.org/1led.wiz

When I switched to the signal tonight, there was no light when I set the DIO to true or false. When the LED is on power and ground, it comes on
__________________
Quote:
The views expressed are mine and should not be construed to represent the views of anyone else.

Last edited by rsisk : 07-07-2012 at 23:28.
  #8   Spotlight this post!  
Unread 08-07-2012, 00:40
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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: Turning LEDs on/off

Quote:
Originally Posted by rsisk View Post
When I switched to the signal tonight, there was no light when I set the DIO to true or false. When the LED is on power and ground, it comes on
Sounds to me like the output impedance of the DIO signal line is too high to provide enough current to light the LED (as mentioned in my earlier post).

Disconnect your LED circuit and put a voltmeter (a cheap $10 one will do) between signal and ground at the DIO output. Flip the DIO true/false and confirm that you are getting 5 volts and zero volts.

Now connect your LED circuit (leaving the voltmeter connected between signal and ground). My guess is that you will no longer see 5 volts. The load from the LED acting on the impedance of the signal source will drop the voltage below that necessary to provide the current to light the LED.



Last edited by Ether : 08-07-2012 at 00:43.
  #9   Spotlight this post!  
Unread 08-07-2012, 00:48
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,749
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Turning LEDs on/off

Quote:
Originally Posted by Ether View Post
Sounds to me like the output impedance of the DIO signal line is too high to provide enough current to light the LED (as mentioned in my earlier post).

Disconnect your LED circuit and put a voltmeter (a cheap $10 one will do) between signal and ground at the DIO output. Flip the DIO true/false and confirm that you are getting 5 volts and zero volts.

Now connect your LED circuit (leaving the voltmeter connected between signal and ground). My guess is that you will no longer see 5 volts. The impedance of the signal source will drop the voltage below that necessary to provide the current to light the LED.


I'll check as soon as the show is over (the robot is part of the play Something's Afoot). If that is the case, what is the solution?

If I use a spike to control it, I assume I will need a different resistor to handle a 12v input? Or I run 5v throught the spike?
__________________
Quote:
The views expressed are mine and should not be construed to represent the views of anyone else.
  #10   Spotlight this post!  
Unread 08-07-2012, 01:00
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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: Turning LEDs on/off

Quote:
Originally Posted by rsisk View Post
I'll check as soon as the show is over (the robot is part of the play Something's Afoot). If that is the case, what is the solution?
Instead of using the signal as a power source to drive the LED, you could use the signal to control a transistor which switches the DIO power line.

I'll draw a sketch and post it here in a few minutes.


  #11   Spotlight this post!  
Unread 08-07-2012, 01:08
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,749
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Turning LEDs on/off

Quote:
Originally Posted by Ether View Post
Instead of using the signal as a power source to drive the LED, you could use the signal to control a transistor which switches the DIO power line.

I'll draw a sketch and post it here in a few minutes.


Very cool thanks Ether.
__________________
Quote:
The views expressed are mine and should not be construed to represent the views of anyone else.
  #12   Spotlight this post!  
Unread 08-07-2012, 01:19
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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: Turning LEDs on/off

Quote:
Originally Posted by Ether View Post
I'll draw a sketch and post it here in a few minutes.
Something like this.

edit: corrected resistor value


Attached Thumbnails
Click image for larger version

Name:	LED.jpg
Views:	65
Size:	142.7 KB
ID:	12867  

Last edited by Ether : 08-07-2012 at 03:25. Reason: corrected resistor value
  #13   Spotlight this post!  
Unread 08-07-2012, 03:46
rsisk's Avatar
rsisk rsisk is offline
The GURU Channel
AKA: Richard Sisk
FRC #2493 (Robokong)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Riverside, CA
Posts: 2,749
rsisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond reputersisk has a reputation beyond repute
Send a message via MSN to rsisk
Re: Turning LEDs on/off

When I buy the FET, is there anything specific I need to look for? Probably going to Radio Shack to find one tomorrow. If not available then will probably go to mouser.
__________________
Quote:
The views expressed are mine and should not be construed to represent the views of anyone else.
  #14   Spotlight this post!  
Unread 08-07-2012, 15:20
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: Turning LEDs on/off

The DSC Digital I/O does not appear to be able to sink 20 mA.
Ether's transistor switch should work fine. A FET (especially an IFF510) may be overkill, a plain NPN switching transistor will be fine.
All these parts (resistors, 2n2222 or 2n3906 transistors) are available at Radio Shack.
__________________

I am N2IRZ - What's your callsign?

Last edited by DonRotolo : 08-07-2012 at 15:22.
  #15   Spotlight this post!  
Unread 07-07-2012, 22:04
flameout flameout is offline
AKA Ryan Van Why
FRC #0957 (SWARM)
Team Role: Alumni
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Oregon
Posts: 168
flameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to allflameout is a name known to all
Re: Turning LEDs on/off

Quote:
Originally Posted by theawesome1730 View Post
don't mix up positive and negative on the LED, they make a nice pop sometimes
For anyone who reads this thread in the future:

Reversing polarity on a LED will not damage the LED (or the Digital Sidecar, for that matter) -- it will simply not night. LEDs are diodes. Feeding them too much power, however, can make them pop.
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 04:32.

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