Go to Post Any FIRST pit is my favorite because that means I'm enjoying a FIRST competition so I'm just plain happy anyways. - Koko Ed [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, 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?


  #2   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
  #3   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.
  #4   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.
  #5   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.
  #6   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.
  #7   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.
  #8   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.


  #9   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.
  #10   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
  #11   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.
  #12   Spotlight this post!  
Unread 08-07-2012, 04:37
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Turning LEDs on/off

Quote:
Originally Posted by rsisk View Post
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.
Your application is really light load and low voltage, so most FETs will work fine. Here are the general things you look for:

Type: Your options are "N" or "P" channel. Either can be made to work, but Ether drew the schematic with an N channel. N is generally preferred because they have better electron mobility.

Vds: Maximum voltage from Drain to Source, or how much voltage you can block. You need at least 5V, but I've never seen a normal discrete FET with a Vds rating less than 5V.

Vgs: Maximum voltage from Gate to Source, or how much signal voltage you can apply. Again, most FETs can handle 5V just fine.

Vgs_thresh: Minimum voltage from Gate to Source to guarantee turning on the FET. Most FETs will be in the 1 to 3 V range, so you'll be fine.

Rds: Resistance from Drain to Source while on. Subtract this from the 82 ohm series resistor you calculated. It'll be relatively small, you can likely ignore it.

Ids: Maximum current from Drain to Source while on. It needs to be more than 20mA. Just about any FET that is big enough to be in its own package can handle this.
  #13   Spotlight this post!  
Unread 08-07-2012, 13:55
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

OK, just got back from Radio Shack trying to get the right components. The transistors were hard to match up, so I got a couple.

One is a MOSFET N-channel transistor and the other is a bag of NPN-Type transistors. I've included pictures below. My guess is the MOSFET is the closest match and where I am starting to build the circuit.

Am I correct in assuming the following:

Source - The +5V/82ohm/LED side of Ether's diagram
Drain - The ground side of the diagram
Gate - The DIO Signal/100Kohm side of the diagram

Here are the components I purchased, 100K-ohm resistors, MOSFET transistor, and NPN transistors



And the back of the MOSFET transistor and NPN transistor bag

__________________
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 08-07-2012, 15:26
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 DonRotolo View Post
The DSC Digital I/O does not appear to be able to sink 20 mA
source (in this case)


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