Go to Post FRC is a big tent. There's room for everybody. - Ether [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 05-03-2011, 03:02
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
LEDs on Operator Console?

We are using the Cypress IO board included in the 2010 KOP to connect physical switches to our driver station. We are using the enhanced IO, with the 3.3V setting.

We are wanted to add four LEDs to our operator console to assist the drivers. Has anybody has any success with this?

On the pinout diagrams for the Cypress, it indicates that most of the DIO pins can only source/sink 4/8 mA. That seems extremely low... and it seems that wouldn't power a standard LED. There are two "high current" pins that say they can do 20mA. Do we have to use those for the LEDs and only use two of them? Has anybody tried this with a sucessful outcome?

Also, with 3.3V, we can just use a resistor with about 200 ohms, correct?

Note that we got these LEDs from radio shack, and have literally no documentation (we got a variety pack, so even the size was listed as "varoius"). However, they seem like pretty standard 5mm LEDs.
  #2   Spotlight this post!  
Unread 05-03-2011, 08:40
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: LEDs on Operator Console?

An assortment pack from Radio Shack is your garden variety of 20ma LEDs. Try one and see if it bright enough. The reds are likely to be the brightest in your assortment. At 3.3 volts, 200 ohms sounds ok for a series resistor. Be sure to make measurements so you are not drawing more than the recommended maximum current.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #3   Spotlight this post!  
Unread 05-03-2011, 09:42
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: LEDs on Operator Console?

If you look at the pinout there are actually 4 high current outputs but 2 (P2_3 P2_5) are not used in the default code for the Cypress. If you are comfortable reprogramming the Cypress you could probably get them working. If you don't want to reprogram and you have a few extra NPN BJTs you could drive the base of the transistor with any digital output.

I think we used the 25mA high current outputs for a couple LEDS last year so it can work (provided you wire it correctly as a current sink). The 200 ohm resistor sounds a bit high if you went them bright. If your LEDs are like this Radioshack one the voltage drop is around 2.25v (you could test it with a good multimeter). Assuming you want 20mA I get 52.5 ohms, so use a 56 ohms or higher resistor (higher is always safer).
Math:
3.3 V - 2.25V = 1.05V (to drop across resistor)
V/I = R
1.05 V / .020 A = 52.5 ohms
__________________
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"
  #4   Spotlight this post!  
Unread 05-03-2011, 15:12
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: LEDs on Operator Console?

Oh I see. So I can take my LEDs that want 20mA and give them a resistor so they'll only draw 5mA and it will work fine on any pin, right?

And since the sink current is higher than the source current, the cathode goes to 3.3V and the anode should go to the pin, and they turn on by turning the pin off. Is that correct?
  #5   Spotlight this post!  
Unread 06-03-2011, 08:54
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 756
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: LEDs on Operator Console?

We use a variety of panel mount LEDs from allelectronics.com. 220 ohm resistors make for bright LEDs ESP blue. Fast shipping too. We use regular outputs for led and high current for buzzer. Wiring common annode ( with switcing to ground) means the LEDs all light up on boot. Good test to verify operation of cypress.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
  #6   Spotlight this post!  
Unread 06-03-2011, 12:32
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: LEDs on Operator Console?

Quote:
Originally Posted by WizenedEE View Post
Oh I see. So I can take my LEDs that want 20mA and give them a resistor so they'll only draw 5mA and it will work fine on any pin, right?

And since the sink current is higher than the source current, the cathode goes to 3.3V and the anode should go to the pin, and they turn on by turning the pin off. Is that correct?
You can certainly use a resistor to restrict the current flow to 5mA, however that may not result in a particularly visible LED. I would recommend using BJTs to switch the LEDs, power them off the VCC pin of the Cypress (or an external battery pack, a couple AAs should do fine for a good deal of time, just be sure to switch them!) and use the regular I/O pins. If you need help with this let me know, I can post a more detailed explanation for you.

Matt
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
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 18:53.

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