Go to Post There is always more than one way to design something. - Dave Scheck [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 22-01-2009, 08:31
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,112
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: Wiring LED to Driverstation

Quote:
Originally Posted by sircedric4 View Post
So to repeat I go from red 5V from digital output through my LED and then to the signal pin on the digital output? Is this correct? And then my program can turn it off and on by cycling the digital output in code?
It will work that way, though the LED will be off for a "1" value and on for a "0". Since the DS's output can source current as well as sink it, I'd connect from the digital output through the indicator to ground instead. That way the LED will be off for "0" and on for "1".

The way you connect it should depend on whether you want the LED to be on or off when the system is reset, before the cRIO software has a chance to control it.
  #2   Spotlight this post!  
Unread 22-01-2009, 09:21
sircedric4's Avatar
sircedric4 sircedric4 is offline
Registered User
AKA: Darren
no team (The SS Prometheus)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2006
Location: Lousiana
Posts: 245
sircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond reputesircedric4 has a reputation beyond repute
Re: Wiring LED to Driverstation

Quote:
Originally Posted by Alan Anderson View Post
It will work that way, though the LED will be off for a "1" value and on for a "0". Since the DS's output can source current as well as sink it, I'd connect from the digital output through the indicator to ground instead. That way the LED will be off for "0" and on for "1".

The way you connect it should depend on whether you want the LED to be on or off when the system is reset, before the cRIO software has a chance to control it.
I originally tried it this way, from the center pin (indicator, signal) through to ground in the direction where the signal wire went into the positive side of the LED and it didn't do anything when I commanded it to. I thought I was just wiring it wrong. I may have to check to make sure the PWM cable was hooked to the correct pin. Couldn't FIRST have bothered to label their pins, its so easy to miscount!

Thanks everyone, I imagine with the info here I can get it to work. I'll let you know after I get a chance to try it tonight. I can't exactly bring the control system to work so have to wait till the evening to play with it.
  #3   Spotlight this post!  
Unread 22-01-2009, 10:05
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,792
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Wiring LED to Driverstation

Quote:
Originally Posted by sircedric4 View Post
I originally tried it this way, from the center pin (indicator, signal) through to ground in...
The top pin is signal.
The center pin is 5v.
The bottom pin is ground.

Wiring from the center pin to ground should leave the LED on constantly.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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
Writing to DriverStation cRio screen alexjplant NI LabVIEW 2 17-01-2009 10:59
Wiring an LED from the OI Windward Electrical 6 21-01-2007 13:54
Team LED Gamer930 Control System 1 18-02-2006 15:57
Led tyguy2021 Electrical 7 15-11-2005 21:30
LED Flashlights Justin Chit-Chat 3 06-08-2004 05:35


All times are GMT -5. The time now is 17:59.

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