the12volt.com spacer
the12volt.com spacer
the12volt.com spacer
the12volt.com spacer
icon

basic l.e.d. wiring


Post ReplyPost New Topic
< Prev Topic Next Topic >
corrollaman 
Member - Posts: 38
Member spaceThis member has made a donation to the12volt.com. Click here for more info.spacespace
Joined: November 17, 2009
Location: Kansas, United States
Posted: September 06, 2012 at 4:52 PM / IP Logged  

I just realized that putting the two wires together coming off dividers is not going to do what i thought it would do.. what did you have in mind?

ajm
oldspark 
Gold - Posts: 4,913
Gold spacespace
Joined: November 03, 2008
Location: Australia
Posted: September 07, 2012 at 4:27 AM / IP Logged  
In principle: +12V - resistor#1 - input#1 - resistor#2 - input#2 - resistor#3 - PIC-input - resistor#4 - GND where input#1 & #2 each come thru their own "input" resistors.
In practice it can be [input#1 thru resistor} and [input#2 thru resistor] to PIC-input AND a resistor to +12V or +5V and a resistor to GND. Maybe a reverse-biased diode from PIC-input to its +5V rail to prevent the PIC-input voltage exceeding +5V (or 9.7V etc). (And can add similar to GND in case of -ve voltage spikes.)
Resistor size depends on input voltages and combinations (off, 1, 2, 1&2) and desired output (eg, 0V, 1V, 2V, 3V) though you usually set the programmed PIC input value/range to cover whatever voltages you end you with.
Maybe just use 2 separate inputs for now. You can change it later...   
Page of 5

Sorry, you can NOT post a reply.
This topic is closed.

  Printable version Printable version Post ReplyPost New Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

  •  
Search the12volt.com
Follow the12volt.com Follow the12volt.com on Facebook
Thursday, May 16, 2024 • Copyright © 1999-2024 the12volt.com, All Rights Reserved Privacy Policy & Use of Cookies
Disclaimer: *All information on this site ( the12volt.com ) is provided "as is" without any warranty of any kind, either expressed or implied, including but not limited to fitness for a particular use. Any user assumes the entire risk as to the accuracy and use of this information. Please verify all wire colors and diagrams before applying any information.

Secured by Sectigo
the12volt.com spacer
the12volt.com spacer
the12volt.com spacer
Support the12volt.com
Top
the12volt.com spacer
the12volt.com spacer