Go to Post Success is realizing that anything is possible, persistence is the key. - SlamminSammy [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 23-02-2004, 18:24
ZZII 527's Avatar
ZZII 527 ZZII 527 is offline
"Scale Electric Vehicle"
AKA: Shane Colton
FRC #0097
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Cambridge, MA
Posts: 366
ZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond repute
Send a message via AIM to ZZII 527
LEDs in switch box.

We are trying to wire LED indicators into our control box that will light only when a switch is closed. We have two DPDT switches (I think that's what they are; they have six prongs) and one with just two prongs (don't know the name of that). We tried wiring the LEDs in parallel right over the switch, but (of course) that shorted the switch completely...not good. In series, they would light with the switch closed but the 5V signal never goes through (another duh! moment). I can't figure it out and I am throwing it out to the more experienced "sparkies" out there. There is probably a simple answer, but I don't know it. Thanks.


GND-------------/ SWITCH -----------------SIGNAL PIN

Where does the LED go? Is it different on the DPDT switches than the other two-prong switch? Thanks in advance.
__________________
MIT Mechanical Engineering
>> College Mentor, Team 97: Cambridge Rindge and Latin School with The Edgerton Center, MIT Mechanical Engineering, Bluefin Robotics, and Draper Laboratory
>> Alumnus, Team 527: Plainedge HS
  #2   Spotlight this post!  
Unread 23-02-2004, 19:43
KenWittlief KenWittlief is offline
.
no team
Team Role: Engineer
 
Join Date: Mar 2003
Location: Rochester, NY
Posts: 4,213
KenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond reputeKenWittlief has a reputation beyond repute
Re: LEDs in switch box.

You are not allowed to draw power from the OI except from the LED output pins

you could wire LEDs to the double pole double throw switches you have using a 9 volt battery, keeping the OI signals on one side of the switch, and using the other side for the leds

something like this:

(only problem with this little circuit is, if you put both LEDS in one will always be on unless you unplug the battery.)

BTW - it is possible to send LED commands to the OI and use the LED output pins on the connectors to drive them in your switch box - only difference is, instead of indicating your switch positions, your SW will be telling the LEDs when to ignite - so you would have to program your code to map the LEDs to the switch inputs you want them to respond to.
Attached Thumbnails
Click image for larger version

Name:	LED SWITCH.jpg
Views:	117
Size:	31.5 KB
ID:	1899  

Last edited by KenWittlief : 23-02-2004 at 19:46.
  #3   Spotlight this post!  
Unread 23-02-2004, 19:47
ZZII 527's Avatar
ZZII 527 ZZII 527 is offline
"Scale Electric Vehicle"
AKA: Shane Colton
FRC #0097
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Cambridge, MA
Posts: 366
ZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond repute
Send a message via AIM to ZZII 527
Re: LEDs in switch box.

Meh I was afraid of that. Sorry for the electronic stupidity. Thanks. And thanks for going through the trouble to create that diagram...not many other people would do that.
__________________
MIT Mechanical Engineering
>> College Mentor, Team 97: Cambridge Rindge and Latin School with The Edgerton Center, MIT Mechanical Engineering, Bluefin Robotics, and Draper Laboratory
>> Alumnus, Team 527: Plainedge HS

Last edited by ZZII 527 : 23-02-2004 at 19:57.
  #4   Spotlight this post!  
Unread 26-02-2004, 19:20
ZZII 527's Avatar
ZZII 527 ZZII 527 is offline
"Scale Electric Vehicle"
AKA: Shane Colton
FRC #0097
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Cambridge, MA
Posts: 366
ZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond repute
Send a message via AIM to ZZII 527
Re: LEDs in switch box.

New setup:

DPDT Knife Switch wired just like in your diagram, but with 20mA LEDs (really bright) and 330-ohm resistors. Works very well and looks amazing. Thanks.
__________________
MIT Mechanical Engineering
>> College Mentor, Team 97: Cambridge Rindge and Latin School with The Edgerton Center, MIT Mechanical Engineering, Bluefin Robotics, and Draper Laboratory
>> Alumnus, Team 527: Plainedge HS
  #5   Spotlight this post!  
Unread 05-03-2004, 22:49
ZZII 527's Avatar
ZZII 527 ZZII 527 is offline
"Scale Electric Vehicle"
AKA: Shane Colton
FRC #0097
Team Role: College Student
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Cambridge, MA
Posts: 366
ZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond reputeZZII 527 has a reputation beyond repute
Send a message via AIM to ZZII 527
Re: LEDs in switch box.

Here's the pic:
Attached Thumbnails
Click image for larger version

Name:	PANA0409.JPG
Views:	76
Size:	61.2 KB
ID:	1946  
__________________
MIT Mechanical Engineering
>> College Mentor, Team 97: Cambridge Rindge and Latin School with The Edgerton Center, MIT Mechanical Engineering, Bluefin Robotics, and Draper Laboratory
>> Alumnus, Team 527: Plainedge HS
  #6   Spotlight this post!  
Unread 06-03-2004, 19:39
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Re: LEDs in switch box.

You can have the switch pull the appropriate pin to ground (as the manual shows) and then have the PROGRAM turn the appropriate LED on to match the switch (Pwm1_red, for example).

This is what we do.

You can even use the program to have the lights give more information than just "on" or "off" for instance you may want to indicate an error condition by flashing the LED.

The code is not that hard to write and you don't need to have auxilary power supplies on your OI.

Just a suggestion.

Joe J.
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
Digital Inputs interfering with each other Bongle Programming 8 23-02-2004 11:18
LED's, resistors, computers... ohm my! DanL Electrical 3 01-07-2003 09:37
box grabbing matt111 3D Animation and Competition 3 27-01-2003 23:08
Need help with 255 Variable Joseph F Programming 18 26-02-2002 14:49
Gray box limitations Tim Skloss Technical Discussion 1 23-01-2002 07:38


All times are GMT -5. The time now is 05:46.

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