Go to Post Well... as ready as we can be 30 days before build season... We definitely do not have a robot yet though... :) - pandamonium [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 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.
  #2   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)


  #3   Spotlight this post!  
Unread 08-07-2012, 15:35
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
A FET (especially an IFF510) may be overkill, a plain NPN switching transistor will be fine.
But you know, as soon as he gets that little 0.1 watt LED working, he's gonna want to swap it out for an auto headlight and run it straight off the battery.


  #4   Spotlight this post!  
Unread 08-07-2012, 17:12
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
But you know, as soon as he gets that little 0.1 watt LED working, he's gonna want to swap it out for an auto headlight and run it straight off the battery.


Mind reader!

So, I have too admit I am feeling pretty foolish, and I want to get this in the thread for accuracy, as I was working on the wiring for the circuit, I pulled up the specs on the DSC and figured out I had the LED plugged into the PWM instead of the DIO. Moving the LED to the DIO power/ground and turning in on/off via the Digital Output works just fine.

Sorry for the diversion and thanks for the info n making the switch. Now I want to try out the switch to see if I can mAke it work.

Question: why was a 100K ohm resistor used on the gate?
__________________
Quote:
The views expressed are mine and should not be construed to represent the views of anyone else.
  #5   Spotlight this post!  
Unread 08-07-2012, 17:31
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
Question: why was a 100K ohm resistor used on the gate?
Credit for the following answer goes to Eric VanWyk:

The purpose of the 100K resistor is to dampen electrical oscillations. The gate of the FET has some capacitance. The wiring leading to the gate pin may have some inductance. Under certain circumstances, together these may form an LC oscillator. The resistance is there to prevent those oscillations. The 100K is not critical. It can probably range over an entire order of magnitude. The higher the resistance, the better the damping, but the slower the FET's response to a step input signal (because of the gate capacitance). The lower the resistance, the faster the FET responds to a step input signal, but you increase the chances of oscillations.


  #6   Spotlight this post!  
Unread 09-07-2012, 15:44
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


While we're on the subject of series resistors for the signal line, attached is a sketch of the circuit using one of those NPN transistors you got in the package you bought (2N3904).

Can someone please check my calculation for the base resistor?

I tried to size it to saturate the transistor with a 5V signal.


Attached Thumbnails
Click image for larger version

Name:	LED_NPN2.jpg
Views:	18
Size:	144.3 KB
ID:	12874  
  #7   Spotlight this post!  
Unread 09-07-2012, 14:53
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

Question: why was a 100K ohm resistor used on the gate?
100K is extremely conservative. I generally put as large an R in series as I can get away with for a given switching speed, others will put as small an R in as necessary to damp gate ringing. For reference, I'm putting ~5 ohms in gate series for a 400kHz switcher for a hobby project.

So, the PM Ether quoted explains why a resistor is necessary. The reason it is so much larger than you might expect is just to over-protect the gate. It costs the same and lets you rest a bit easier.
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