how would i calculate resistance using Vcc, input impedance and logic-high threshold? | on ElectriciansForums

Discuss how would i calculate resistance using Vcc, input impedance and logic-high threshold? in the UK Electrical Forum area at ElectriciansForums.net

Joined
Mar 26, 2020
Messages
13
Reaction score
2
Location
leicester
[ElectriciansForums.net] how would i calculate resistance using Vcc, input impedance and logic-high threshold?
 
Generally, unless you are really wringing every last microwatt out of something, it's very non critical.
Draw yourself a resistor (call it R2) alongside S1 and imagine the input is "infinite" impedance. You've then got a simple voltage divider which you can solve given that you know 3 of the 4 variables : you know the voltage you need at D1, you know R2 value (controller input impedance), and you know the voltage at the top of the divider.
So lets say that R2 is 1k, minimum voltage for logic high is 2V. So 2V across 1K means 1mA through R2. If Vcc is 5V then you have 2mA through R1 needing to drop 3V, so 1.5k.
Or you can do it as R1/R2 = (Vcc-Vin)/Vin, or R1/1k = 3V/2V, or R1=1k * 3/2
In practice you'd never work it so close as that, it would be prone to noise etc - especially when you start talking high impedance inputs and calculate R1 to be in megs rather than k.
 
Generally, unless you are really wringing every last microwatt out of something, it's very non critical.
Draw yourself a resistor (call it R2) alongside S1 and imagine the input is "infinite" impedance. You've then got a simple voltage divider which you can solve given that you know 3 of the 4 variables : you know the voltage you need at D1, you know R2 value (controller input impedance), and you know the voltage at the top of the divider.
So lets say that R2 is 1k, minimum voltage for logic high is 2V. So 2V across 1K means 1mA through R2. If Vcc is 5V then you have 2mA through R1 needing to drop 3V, so 1.5k.
Or you can do it as R1/R2 = (Vcc-Vin)/Vin, or R1/1k = 3V/2V, or R1=1k * 3/2
In practice you'd never work it so close as that, it would be prone to noise etc - especially when you start talking high impedance inputs and calculate R1 to be in megs rather than k.
sorry i dont understand how you got 1mA as wouldn't you get 2mA (2v/1k) i.e. ohms law?
 

Reply to how would i calculate resistance using Vcc, input impedance and logic-high threshold? in the UK Electrical Forum area at ElectriciansForums.net

News and Offers from Sponsors

  • Article
Join us at electronica 2024 in Munich! Since 1964, electronica has been the premier event for technology enthusiasts and industry professionals...
    • Like
Replies
0
Views
307
  • Sticky
  • Article
Good to know thanks, one can never have enough places to source parts from!
Replies
4
Views
828
  • Article
OFFICIAL SPONSORS These Official Forum Sponsors May Provide Discounts to Regular Forum Members - If you would like to sponsor us then...
Replies
0
Views
929

Similar threads

Good one . Thanks. I was finding Fluke etc ÂŁÂŁÂŁ!
Replies
5
Views
2K

OFFICIAL SPONSORS

Electrical Goods - Electrical Tools - Brand Names Electrician Courses Green Electrical Goods PCB Way Electrical Goods - Electrical Tools - Brand Names Pushfit Wire Connectors Electric Underfloor Heating Electrician Courses
These Official Forum Sponsors May Provide Discounts to Regular Forum Members - If you would like to sponsor us then CLICK HERE and post a thread with who you are, and we'll send you some stats etc

YOUR Unread Posts

This website was designed, optimised and is hosted by untold.media Operating under the name Untold Media since 2001.
Back
Top