Go to Post your bot brings all the boys to the yard. - looneylin [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 22-01-2002, 21:45
Ulibrium Ulibrium is offline
Registered User
#0920 (Lancers)
 
Join Date: Jan 2002
Location: Philadelphia, PA
Posts: 29
Ulibrium is an unknown quantity at this point
Send a message via AIM to Ulibrium
Question Voltage Range of Analog Inputs

Hi All,

What is the voltage range of analog inputs? In other words, a byte of 255 translates into how many volts?

Oh, and can anyone give the schematics for the current monitoring circuit?

-Thanks
__________________
Three mathematicians slave over a board full of tensor calculus. One looks to the other and asks... "do you remember what we sent out to prove?"
  #2   Spotlight this post!  
Unread 22-01-2002, 22:53
Tom Schindler's Avatar
Tom Schindler Tom Schindler is offline
Now an AIR Striker....
FRC #0078
 
Join Date: May 2001
Rookie Year: 1997
Location: Middletown, RI
Posts: 462
Tom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond reputeTom Schindler has a reputation beyond repute
Send a message via AIM to Tom Schindler
i *think* the voltage range is 0-5V, but don't quote me on this, i am only going from memory... anyone have an affirmative answer?
  #3   Spotlight this post!  
Unread 23-01-2002, 00:57
Unsung FIRST Hero
Nate Smith Nate Smith is offline
FRC Key Volunteer Trainer
AKA: CrazyNate
no team
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Old Town, Maine
Posts: 1,029
Nate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to beholdNate Smith is a splendid one to behold
Send a message via AIM to Nate Smith Send a message via Yahoo to Nate Smith
Yep....+0Vdc to +5Vdc...hence the +5Vdc on some of the analog port pins....
__________________
Nate Smith
nsmith@smythsoft.com
12 seasons, 4 teams, and more time logged behind the scorekeeper's table than I care to remember...
returning for 2011? only time will tell...
  #4   Spotlight this post!  
Unread 23-01-2002, 09:50
Eugene Eugene is offline
Registered User
#0321 (Lancers)
 
Join Date: Jan 2002
Location: Philadelphia
Posts: 55
Eugene is on a distinguished road
Send a message via AIM to Eugene
Question

Does anybody know what is the maximum current that can go through the controller without burning it up? We are trying to figure out how to put a current monitoring circuit together, if anyone could give us hand we would greatly apreciate it. It is pretty hard to come up with one without any experience or engineers.

Eugene
  #5   Spotlight this post!  
Unread 23-01-2002, 11:33
bigqueue bigqueue is offline
Registered User
#0811 (A.R.C.)
 
Join Date: Dec 2001
Location: Nashua, NH
Posts: 231
bigqueue will become famous soon enough
Send a message via AIM to bigqueue Send a message via Yahoo to bigqueue
Quote:
Originally posted by Eugene
Does anybody know what is the maximum current that can go through the controller without burning it up? We are trying to figure out how to put a current monitoring circuit together, if anyone could give us hand we would greatly apreciate it. It is pretty hard to come up with one without any experience or engineers.

Eugene
I am wondering how you were thinking of doing this......it sounds like you want to somehow run something through the controller.

I would love to help, but I might need a little more information on what your thought are.

Actually, FIRST sent out a couple of good hints in the third update. (I think)

-Quentin
__________________
Team 4987: Megarams
  #6   Spotlight this post!  
Unread 23-01-2002, 13:42
Eugene Eugene is offline
Registered User
#0321 (Lancers)
 
Join Date: Jan 2002
Location: Philadelphia
Posts: 55
Eugene is on a distinguished road
Send a message via AIM to Eugene
To Quentin

Forgive me if I'm blind, but the only reference to the electronics in the 3rd update that I saw was about the fuses, please correct me if I'm wrong.

The reason I'm asking this is because I wanted to build a custom circuit board that would monitor the current, and using the analog inputs on the controller input the data.

Problems with this idea:
1. Is it legal to have the circuit board connected in a serial circuit to the motors, or the main braker? The current has to be measured in a serial circuit, right?

2. Which transitors would have the correct rating to take the currents that might go as high as couple hundred AMPs?

3. What is the maximum current that can go through an analog input on the controller?

And here is a unrelated question, do i need to have a power source when i connect a potentiometer (it is just a resitor right)?

Thank you all for helping us out!!!
We don't have any proffesionals on outr team.

Eugene
  #7   Spotlight this post!  
Unread 23-01-2002, 13:42
Matt Reiland's Avatar
Matt Reiland Matt Reiland is offline
'The' drive behind the drive
None #0226 (TEC CReW Hammerheads)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1999
Location: Troy Michigan
Posts: 712
Matt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond reputeMatt Reiland has a reputation beyond repute
I think the analog connector can only source something in the range of 50mA to the pins when the resistor is at a dead short (0 ohms) so I would guess this is a safe max amount. (The max rating is listed in the Innovation First instruction manual

Matt
  #8   Spotlight this post!  
Unread 23-01-2002, 16:35
jeffreym jeffreym is offline
Registered User
#0802 (The Lost Bearings)
 
Join Date: Jan 2002
Location: Sudbury, MA
Posts: 19
jeffreym is on a distinguished road
To measure current from the battery (or to the motors for that matter), you should put a very low resistance shunt in series with the power lead. Technically it doesn't matter which one but we use the positive lead. You then have a low voltage (in the millivolt range) that can be measured across the shunt and amplified (with a simple op-amp circuit) to accomodate the 0-5v of the A/D converter on the controller. We (Team 802) are measuring total battery current and that's how we are doing it.
  #9   Spotlight this post!  
Unread 23-01-2002, 22:31
nwagers nwagers is offline
Registered User
#0240 (Mach Vee)
 
Join Date: Oct 2001
Location: Monroe, MI
Posts: 88
nwagers is an unknown quantity at this point
Send a message via AIM to nwagers Send a message via Yahoo to nwagers
series vs parallel

Correct me if I'm wrong. It's been a while since I've had electronics. I do believe that if you hook an amp meter in series, you will here a loud and distinct pop of a fuse (a breaker if it's a good one). I think you measure amperage in parallel and voltage in series. Don't forget the difference between the two, it's an important one....
  #10   Spotlight this post!  
Unread 24-01-2002, 01:20
Kris Verdeyen's Avatar
Kris Verdeyen Kris Verdeyen is offline
LSR Emcee/Alamo Game Announcer
FRC #0118 (Robonauts)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Houston, TX
Posts: 699
Kris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond repute
Here's a circuit I banged out that might be able to help you.

It has a small current sensing resistor in series with the battery and circuit breaker. The voltage across the resistor, which is proportional to the battery current, is determined and amplified by a difference amplifier circuit that has a gain of 25, which allows the 1 milliohm resistor to fill the available range on the A/D input. (200A through the circuit corresponds to 255 A/D counts). And the wheel on the bus goes round and round.

You might want to throw on an output filter to remove the PWM ripple, and perhaps another gain stage to fine tune the circuit's range, but it should work reasonably well now.

Please note that Digikey doesn't have any 1 milliohm resistors that can handle enough power to work here - so you have to 'make' your 1 milliohm resistor from five 5mOhm precision resistors, or ten 10mOhm precision resistors (in parallel). Five of these would be able to handle 24W continuously, which is short of the 40W required for the anticipated 200A spikes, but I think they would hold up in practice, because the average power dissapated would be well below 24W.

If you have any questions, let me know. I know that I didn't document the image too well, but it shouldn't be too hard to get the general idea.
Attached Thumbnails
Click image for larger version

Name:	current sensing circuit.jpg
Views:	160
Size:	121.0 KB
ID:	291  
__________________
...Only a few people are awake and they live in a state of constant total amazement. -JP Shanley, Joe vs. the Volcano

Last edited by Kris Verdeyen : 24-01-2002 at 01:25.
  #11   Spotlight this post!  
Unread 24-01-2002, 02:37
Jon Lawton Jon Lawton is offline
Bitter FIRST Cynic
no team
 
Join Date: Oct 2001
Location: San Jose, California
Posts: 209
Jon Lawton is an unknown quantity at this point
Send a message via ICQ to Jon Lawton Send a message via AIM to Jon Lawton
Re: series vs parallel

Quote:
Originally posted by nwagers
Correct me if I'm wrong. It's been a while since I've had electronics. I do believe that if you hook an amp meter in series, you will here a loud and distinct pop of a fuse (a breaker if it's a good one). I think you measure amperage in parallel and voltage in series. Don't forget the difference between the two, it's an important one....
Having just had General Electronnics I at the community college, I can say you've got your measurements reversed. Current is measured by breaking the circiut and placing a meter accross the break (series). Voltage can be measured at any point with respect to any other point (parallel).
Like you said, it's important to remember the difference between current and voltage...

CURRENT is a measurement of the number of electrons flowing past a certian point in a given time frame. I've always pictured it as: you break the circiut, forcing all of the electrons to go through the meter, "counting" them.

VOLTAGE on the other hand is a measurement of potential. "Pressure," if you will. When you measure voltage, you've to keep track of what point you are using as refrence. As such, you *could* wire a volt meter in series... but you'd read 0V. The difference in potential accross a perfect conductor is 0. (Try measuring the voltage drop accross a resistor, and then measure the voltage at a point with respect to ground...)

Of course, keep Mr. Ohm in mind! Voltage = Current * Resistance

Hope that helps!
  #12   Spotlight this post!  
Unread 24-01-2002, 10:25
Eugene Eugene is offline
Registered User
#0321 (Lancers)
 
Join Date: Jan 2002
Location: Philadelphia
Posts: 55
Eugene is on a distinguished road
Send a message via AIM to Eugene
Talking Thanks A lot guys!

Thanks, this was really helpful, without you guys I would have been lost.

Eugene
  #13   Spotlight this post!  
Unread 24-01-2002, 16:57
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
Inferring current MAY be easier...

This all sounds pretty tricky to an escapee from M.E. land...

For my money, I would rather infer current. You know battery voltage. Assuming you have consistant batteries (big assumption I know), your battery has an internal resistance that will give you some information about battery current.

AND...

you can refine your estimates by doing a test. It would be possible for example to stall a motor of know resistance for a very short time (say by moving an arm against the stop), when you first install your battery or upon first power up.

If you watched battery voltage during this test, you could calibate your sensor (i.e. the built in battery voltage sensor) to various current levels. It would be also possible to give the motor several different voltages in order to get several data points.

For my money, this seems the better path than putting resistors in your battery path.

Joe J.

P.S. Of course, there are other ways to infer current as well, but that is a message for another day -- perhaps for another year.
  #14   Spotlight this post!  
Unread 24-01-2002, 17:23
Kris Verdeyen's Avatar
Kris Verdeyen Kris Verdeyen is offline
LSR Emcee/Alamo Game Announcer
FRC #0118 (Robonauts)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Houston, TX
Posts: 699
Kris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond reputeKris Verdeyen has a reputation beyond repute
A lead-acid battery's internal resistance actually depends upon the state of the battery's charge, and the temperature. While you could use the drop in the battery's voltage to determine the current that it's sourcing, the calibration could vary greatly over the course of an event, and even over the course of a match.

Of course, now you're going to come back and tell me that that's what you do, and that it works fine, aren't you?

What we need to do is petition Innovation First to include a current monitoring output on their Victor speed controllers.
__________________
...Only a few people are awake and they live in a state of constant total amazement. -JP Shanley, Joe vs. the Volcano
  #15   Spotlight this post!  
Unread 25-01-2002, 00:08
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,811
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Many of the ideas presented here are good ones but there are some potential hazards.
1. (My personal favorite) Measuring battery current on a working robot is best done with a current meter like an AmpProbe or other similar device. These are clamp on meters that will not put your controller (or you) in the presence of the several hundred amps that may be periodically delivered by your battery.
2. I would frown on any resistance you add between the battery and controller. The controller resets at about 8 volts and a resistor will get you close under extreme loads. Feed the controller from the battery side of the resistance.
3. If you are not sure how to do it, don't connect circuitry to the robot controller inputs except as listed in the manual. A bad hit on the analog input is a fatal (i.e. permanent, non warranty) failure.
4. Opening the circuit and inserting a voltmeter would prevent anything from working and should read near the battery terminal voltages. (Open circuit voltage)
5. Much truth about the variable battery internal resistance, it also varies from unit to unit due to production variances. Ironically, it is the internal resistance that ends up dropping the available voltage to the robot during large current draws. When the voltage is so low that it drops below 8 volts (controller dropout) it is because four volts is being dropped across the internal resistance.
Good Luck All,
Al
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
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
How to access other Digital inputs on OI? DougHogg Electrical 2 12-03-2003 13:57
Robot Controller Digital Input crazycliffy Electrical 11 16-02-2003 04:28
Digital inputs, bandwith, errors? Micah Brodsky Programming 7 20-01-2003 16:08
Analog vs Digital inputs? f22flyboy Programming 8 08-11-2002 22:18
Serious Controller Ideas archiver 1999 28 23-06-2002 23:01


All times are GMT -5. The time now is 19:02.

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