You are on page 1of 9

sign up

Questions

Electrical Engineering Stack Exchange is a


question and answer site for electronics
and electrical engineering professionals,
students, and enthusiasts. It's 100% free.
Sign up

log in

Tags

tour

Users

help

Badges

Search Q&A

Unanswered

Ask Question

Here's how it works:

Anybody can ask


a question

Anybody can
answer

The best answers are voted


up and rise to the top

How to calculate series resistor to provide a certain voltage to a pin?

I (theoretical physicist, all the basic theory, no further electrical engineering background)
am just diving into Arduino and I have a very basic question:

asked

I am playing with a Zilog ePIR motion detector


(https://www.sparkfun.com/products/9587) in hardware mode. I would like to use a
fixed resistor to supply a voltage of, say 0.2V to Pin 3 (DLY), to set a delay for the
motion detection switch-off (the whole thing runs on 3.3V). From Kirchhoff's voltage
law I would think that I need the internal resistance of the module to calculate a ratio
with the series resistor. I am getting R = R_Module*(3.3V-0.2V)/0.2V. However: I don't
know any internal resistance, nor can I measure any between GND and DLY. How do I
calculate the needed resistor? Am I thinking totally wrong?

active

I am using the circuit from http://macherzin.net/article17-Arduino-Sensoren-InfrarotePIR Bonus question: How did the author know that he needs an 80 Ohm resistor if he
connects the module to 5V?

3 years ago

viewed 813 times


1 year ago

Get the weekly newsletter! In it, you'll get:


The week's top questions and answers
Important community announcements
Questions that need answers
Sign up for the newsletter

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Sign up for the newsletter


voltage

resistors

share improve this question

see an example newsletter

asked Aug 6 '12 at 19:22

Related
mcandril
140

Voltage dividers and resistors

Thanks to all, high impedance is indeed something that is not common in Physics courses, so I
really missed that. Well learned something today :) mcandril Aug 6 '12 at 20:40

add a comment

Resistor values calculation: how to arrive at


these values? (Make: Electronics example 10)

3 Answers

active

oldest

votes

If you read the section regarding DLY in the datasheet for your sensor you'll see that it
suggests using a simple resistive divider to set the delay. Normally, you want to drive
your ADC with a low output impedance compared to your ADC's input impedance. Your
resistive dividers output impedance would be R1 || R2 (assuming your voltage source is
perfect with no output impedance) - so approximately 580 for the circuit below - this
should be OK.
But let's suppose you want to set the delay to 15 min - which corresponds to 1.8V from
the datasheet. To drop 1.8 V with the divider, R2 would have to be around 5.6 k. The
output impedance would then be 3.5 k. This might cause problems if your ADC's input
impedance is just 10 k.
But since the datasheet suggests a resistive divider is OK and also states that the input
impedance is high, I think you'll be OK with the following (don't quote me on this,
though!)

open in browser PRO version

How to calculate current and voltage draw of a


single resistor circuit?

Are you a developer? Try out the HTML to PDF API

How do I reduce voltage from 5V to 1V using a


resistor?
3

Calculate expected voltage around a resistor


-7 Voltage/resistors/series/impedance/meter
5

how to reduce DC voltage using resistors?

-2

How do I calculate the voltage of a resistor


after the fuse has been blown?
1

Heavy duty voltage resistor to decrease


voltage from 120V to 100V
0

BQ2002F TS pin resistor value

pdfcrowd.com

Hot Network Questions


tabularx with dynamic columns and much text
ends up in under- and overfull boxes
Approximate ((e^x)/(x^x))dx
Do all Squibs have an affinity with cats?
Inverse function
What are the benefits of using Krueger Flaps?
Is there any partial sums of harmonic series that
is integer?
Why was Darth Vader so careless?
Can I drive from the Netherlands to Copenhagen
without taking a ferry?
Command Prompt TicTacToe in C#
A player was bucking my style and I lost my
temper. What can I do from here?

This means something like this:


R2 will drop a voltage of 0.2 V across it. Rest of the voltage (3.3 - 0.2) will be dropped
on R1. If your input voltage is 5V instead of 3.3, R2 will have to be around 400 Ohms.
If you do have issues due to the output impedance you can buffer the output of the
voltage divider with a unity gain buffer. A unity gain buffer has a very low output
impedance and should drive your ADC very well.
share improve this answer

answered Aug 6 '12 at 19:59

Is there a negative word for an overt display of


emotion?
Encrypted content in games
How do the Falcon 9 engines re-ignite?
Is a land-based aircraft carrier possible?
Find the largest and the smallest number in an
array
Why is this part of the engine not painted?
Cosa significa "consistere" in questa frase?

Saad
2,300

27

55

Thanks! Another small question: Do I want to connect DLY to GND if I want to achive 0V?
(Probably using a pulldown resistor then?) mcandril Aug 6 '12 at 20:50
@mcandril yes, I believe so. Saad Aug 6 '12 at 21:04
@mcandril You can connect it directly. I don't think you will need a pulldown. Saad Aug 6 '12 at
21:11

Apply Kirchhoff's law


The meaning and the underlying expressions of
"But the war isnt being sold on these grounds."
Draw an animated gif of trigonometry function
Why does human racial diversity exist in Star
Trek?
Did I just get hacked?
"They are Australian" vs "They are Australians"

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

"They are Australian" vs "They are Australians"

add a comment

Did the Soviets excel in one area of weaponry


during World War II?

As you correctly figured out, using a single series resistor to drop voltage requires
knowing the resistance of the input it will be driving. Not only that, it requires that
resistance to be fairly constant. You generally don't know or can't rely on either of those
things.
Somewhere there should be a spec for input resistance of the pin you are trying to
drive. Sometimes that is defined in terms of maximum leakage current instead of a
resistance. In either case, that is usually only a minimum resistance (or maximum
leakage current).
You need to add a second resistor to ground to form a voltage divider, with the output
impedance of the divider being significantly less than the minimum resistance of the input
so that the input resistance doesn't matter. For example, let's say you have a 0-5 V
digital output. If you put 1 k in series with that followed by 2 k to ground, the output
will be 0-3.33 V unloaded. Converting this to a Thevenin equivalent voltage source, you
have a 3.33 V source with a impedance of 1k//2k = 667 . As long as the effective
resistance of whatever this divider is driving is significantly more (like 10 k) than the
667 , the voltage will be predictable and about 0 to 3.3 V.
share improve this answer

answered Aug 6 '12 at 19:46

Olin Lathrop
168k

17

177

419

add a comment

If you look at the datasheet for the module you can see that the pin 3 of the device is
considered high impedence:

This means that you can assume that very little current will enter this pin (ie, a high
resistance in the pin).

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

To achieve the voltage you desire of 0.2 V on the pin, just create a simple voltage
divider circuit with resistors:

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Again, since the datasheet says the pin is high impedance, you can assume no

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Again, since the datasheet says the pin is high impedance, you can assume no
appreciable amount of current will flow into it. Using the mighty Kirchhoff you can now
get some approximate resistance values to achieve the voltage division you need.
Vo= Vin*R2/(R1+R2)
Choose a value of R1 or R2 that you have on hand, and see if you have another resistor
for the remaining one that will closely give the desired voltage.
share improve this answer

edited May 28 '14 at 21:53

answered Aug 6 '12 at 19:56

justing
1,442

20

Vo = Vin*R2/R1+R2 EM Fields May 26 '14 at 19:36


@EMFields Fixed, Thanks. justing May 28 '14 at 21:53
add a comment

Your Answer

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Sign up or log in

Post as a guest

Sign up using Google

Name

Sign up using Facebook

Email
required, but never shown

Sign up using Email and Password

Post Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged

voltage

resistors

or ask your own

question.
question feed

about us

tour

help

blog

chat

data

TECHNOLOGY
Stack Overflow

Programmers

Server Fault

Unix & Linux

Super User
Web Applications
Ask Ubuntu
Webmasters

Ask Different (Apple)


WordPress
Development
Geographic Information
Systems

open in browser PRO version

Database
Administrators

legal

privacy policy

work here

advertising info

mobile

contact us

LIFE / ARTS

CULTURE / RECREATION

SCIENCE

OTHER

Photography

English Language &


Usage

Mathematics

Stack Apps

Cross Validated (stats)

Meta Stack Exchange


Area 51

Drupal Answers

Science Fiction &


Fantasy

SharePoint

Graphic Design

Mi Yodeya (Judaism)

Theoretical Computer
Science

User Experience

Movies & TV

Travel

Physics

Mathematica

Seasoned Advice
(cooking)

Christianity

MathOverflow

Arqade (gaming)

Chemistry

Salesforce

feedback

Are you a developer? Try out the HTML to PDF API

Skeptics

Stack Overflow Careers

pdfcrowd.com

Salesforce

Game Development

Electrical Engineering

TeX - LaTeX

Android Enthusiasts

ExpressionEngine
Answers

Information Security

more (13)

Home Improvement

Arqade (gaming)

Chemistry

Bicycles

Biology

Personal Finance &


Money

Role-playing Games

more (5)

Academia

more (21)

more (9)

site design / logo 2016 Stack Exchange Inc; user contributions licensed under cc by-sa 3.0 w ith attribution required
rev 2016.2.5.3240

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

You might also like