Go to Post The ChiefDelphi forums are more than just a place for people to kill time and engage in some chit chat. - Karthik [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 27-02-2011, 22:36
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Suggested Resistor values for 3.3V resistor ladder?

Hi Gang,

I'm building an external controller for our driver station based on the EStop CCI. I want to use a couple of 6 position rotary switches for the analog inputs on the CCI and wire a resistor ladder for voltage dividing. Normally, for 5V I'd use something line multiple 20K ohm resistors that would give me roughly 1V per stage. At 3.3V, I think that the number should be roughly 13K ohms/stage. Am I doing that math right? My concern is that I don't want to exceed the 100ma max current on the CCI.

Maybe I've been working on software too long to remember my basic physics. But, I have to admit that I'm getting confused dealing with voltage drops across the resistor ladder given that I want to minimize the current to keep it well below the 100ma. A quick clarification of the math would be greatly appreciated.

TIA,

Mike
  #2   Spotlight this post!  
Unread 27-02-2011, 23:27
Bill_B Bill_B is offline
You cannot not make a difference
FRC #2170
 
Join Date: Jan 2010
Rookie Year: 2004
Location: Connecticut
Posts: 1,099
Bill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond reputeBill_B has a reputation beyond repute
Re: Suggested Resistor values for 3.3V resistor ladder?

Without knowing how much current will be drawn away from a bridge point, you can't compute the resulting voltage at that point. If you have data about the input impedance of the CCI port to which your bridge will be attached, you can factor that into your bridge calculation. The other option is to get the voltage divisions close, hitch up the interface and a voltmeter, and trim to get the proper division for each switch position. At least, voltmeters are designed with high input impedance, so when you take it away after trimming, the voltage will still be quite close to what you want.

P.S. I like the way you disguise the "math" in your post.
__________________
Nature's Fury FLL team 830 - F L eLements
FRC team 2170 - Titanium Tomahawks
  #3   Spotlight this post!  
Unread 27-02-2011, 23:35
Dad1279 Dad1279 is offline
Registered User
FRC #1279 (Cold Fusion)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: NJ
Posts: 511
Dad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud of
Re: Suggested Resistor values for 3.3V resistor ladder?

Nevermind, answered in another thread by Joe/eStop: http://www.chiefdelphi.com/forums/sh...7&postcount=18

Last edited by Dad1279 : 27-02-2011 at 23:50.
  #4   Spotlight this post!  
Unread 27-02-2011, 23:44
Doc Wu's Avatar
Doc Wu Doc Wu is offline
Registered User
AKA: Al Gritzmacher
FRC #1507 (Warlocks)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Lockport NY
Posts: 206
Doc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant futureDoc Wu has a brilliant future
Re: Suggested Resistor values for 3.3V resistor ladder?

If I follow what you want to do correctly, it's much simpler than you think.

All you are doing is making a voltage divider. If you use equal values of resistors, the voltage will be equally divided. Four resistors would give you voltages of 1/4, 1/2, 3/4 and the full source voltage. The actual value of the resistors is immaterial as long as they are equal.

Where it does matter is the total resistance determines the amount of current your voltages divider uses to create the division. You don't want to use excessive current, but you want to use enough that the voltages are stiff enough to not be affected by the inputs they are connected to.

In other words, if you close a switch connected to a point that is 1.0v, you don't want the act of closing the switch to change the current paths and end up with 0.8v In most cases, the inputs you are feeding are high impedance enough and draw so little current themselves, that it's not a consideration.

Use what you have on hand. I'd grab a bunch of 100 ohm resistors and see what happens. At 3.3v, you're not going to draw much current.
__________________
-= Mentor Lockport Warlocks -=- Team 1507 =-
Amateur Radio Callsign: AE2T

2015 Robot Inspector - Pittsburgh, Champs. Judge Observer - Champs
2014 Robot Inspector - Tech Valley, Fingerlakes, Buckeye, Championship
2013 Robot Inspector - Fingerlakes, Buckeye, Championship
2012 Robot Inspector - Fingerlakes, Buckeye, Championship
2012 Website Evaluator - Fingerlakes, Buckeye, Championship
2011 Robot Inspector - Fingerlakes 2011 Safety Advisor - Fingerlakes

  #5   Spotlight this post!  
Unread 28-02-2011, 00:09
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 5,937
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Suggested Resistor values for 3.3V resistor ladder?

we used 6 digital inputs to connect the rotary switch on our operator console....I think....
  #6   Spotlight this post!  
Unread 28-02-2011, 00:45
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 666
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: Suggested Resistor values for 3.3V resistor ladder?

Assumptions:
  • Vcc is the total voltage, whether its 5V or 3.3V.
  • Imax is the maximum current you can draw.
  • N is the total number of stages you want.
  • The input impedance of the analog channel is high enough that makes the current flowing through the analog input insignificant.
Rtotal = Vcc/Imax
R = Rtotal/(N - 1)
Round R up to the next one or more standard resistor value for good margin.
__________________
  #7   Spotlight this post!  
Unread 28-02-2011, 00:59
taichichuan's Avatar
taichichuan taichichuan is offline
Software Mentor
AKA: Mike Anderson
FRC #0116 (Epsilon Delta)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Herndon, VA
Posts: 328
taichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud oftaichichuan has much to be proud of
Send a message via AIM to taichichuan
Re: Suggested Resistor values for 3.3V resistor ladder?

Quote:
Originally Posted by mikets View Post
Assumptions:
  • Vcc is the total voltage, whether its 5V or 3.3V.
  • Imax is the maximum current you can draw.
  • N is the total number of stages you want.
  • The input impedance of the analog channel is high enough that makes the current flowing through the analog input insignificant.
Rtotal = Vcc/Imax
R = Rtotal/(N - 1)
Round R up to the next one or more standard resistor value for good margin.
Thanks! I'll give this a whirl.

Mike
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


All times are GMT -5. The time now is 08:44.

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