Go to Post While money can create fancy-looking robots, it does not always create game-winning ideas. - Karibou [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 06-03-2004, 20:03
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Battery Voltages in Dashboard

With ever more questions about the Dashboard...

I managed to get the two bytes used for the battery voltages to be displayed. Those bytes are nice, they give me a relative idea of how much power I have, but that's not all that useful.

I remember last year IFI had a little formula that was in the PBASIC code or the Dashboard spec sheet, I think, but I can't find it. It gave you the battery voltage based off of the binary number the dashboard port outputs.

If anyone has that formula, or has devised their own that works, care to share? The only formula I've made is off by too much to be useful .
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #2   Spotlight this post!  
Unread 06-03-2004, 20:32
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Battery Voltages in Dashboard

No Idea, I would assume that either it's tenths of a volt (0 to 120) or it's scaled so that 12v = 255 (254? I'm never sure).
  #3   Spotlight this post!  
Unread 06-03-2004, 20:58
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Re: Battery Voltages in Dashboard

Quote:
Originally Posted by Astronouth7303
No Idea, I would assume that either it's tenths of a volt (0 to 120) or it's scaled so that 12v = 255 (254? I'm never sure).
It's not tenths of a volt as I'm recieving values too high for that, and why would they waste resolution? Doesn't make sense to use 7 bits in a byte, and leave the other standing alone. Also, look at the old PBASIC code, they have formulas in there which I tried to use, and they went to way above 120, and IFI probably used something similar to those formulas this year, I just can't find it.

Also, it can't be 12 volts is the same as 254, as that would create huge problems when teams charge their batteries up to 13.6 volts, as my team does every year.

Please, if you have no idea as to what I'm asking, don't answer with stupid assumptions that anyone who's dealt with the controllers for more than 5 seconds can shoot down. It wastes time and space, and the community doesn't benefit. I don't go and post answers in the CAD forums, cause I have no idea about CAD, and me posting anything there doesn't help anyone.

Anyways, back to the question at hand, does anyone know how IFI set up the battery voltage bytes on the dashboard stream, or have come up with their own way to correctly display voltage?
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #4   Spotlight this post!  
Unread 06-03-2004, 21:08
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Battery Voltages in Dashboard

I can't, this is my first year in FIRST. And I wouldn't call the answers 'stupid'; they were the end result of simple logic. I have not, however looked at the packets themselves.
Even brightest people do things that occasionally make no sense; considering such ideas, for even a short amount of time, can be benefical. I know: I did Odyssey of the Mind for 6 years before this. Thinking out of the box and considering 'stupid' ideas is never bad.
  #5   Spotlight this post!  
Unread 06-03-2004, 21:13
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Re: Battery Voltages in Dashboard

Quote:
Originally Posted by Astronouth7303
I can't, this is my first year in FIRST. And I wouldn't call the answers 'stupid'; they were the end result of simple logic. I have not, however looked at the packets themselves.
Even brightest people do things that occasionally make no sense; considering such ideas, for even a short amount of time, can be benefical. I know: I did Odyssey of the Mind for 6 years before this. Thinking out of the box and considering 'stupid' ideas is never bad.
When ideas can be shown to be incorrect with about 5 seconds worth of research (http://www.innovationfirst.com/firstrobotics) or by simply turning on the robot after fully charging the battery, they're not exactly considered beneficial at all. If you'd like to argue about "thinking outside of the box" you can email me or contact me through AIM (both are in my signature), but stop posting in this thread if that is all you have to say, as I'm trying to figure out how to get the correct battery voltages on the 2004 dashboard, not the benefits of thinking outside the box.
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #6   Spotlight this post!  
Unread 06-03-2004, 21:26
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Battery Voltages in Dashboard

I'm not seeing how the page referenced disproves the sugestion. And I do not have the software and the RC together. For our purposes so far, IFI's Dashboard has worked perfectly. I am currently more concerned with autonomous mode right now. If you know the voltage of the battery and the value recieved for 2 different levels, can't you just figure it out? You sound as though you actually have the RC sitting next to you. And personally, if I'm not sure about something like this, I make theories and check them. Those were starting points.

And I do not apreciate these personnal attacks. Good Night.
  #7   Spotlight this post!  
Unread 06-03-2004, 21:38
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Re: Battery Voltages in Dashboard

Quote:
Originally Posted by Astronouth7303
I'm not seeing how the page referenced disproves the sugestion. And I do not have the software and the RC together. For our purposes so far, IFI's Dashboard has worked perfectly. I am currently more concerned with autonomous mode right now. If you know the voltage of the battery and the value recieved for 2 different levels, can't you just figure it out? You sound as though you actually have the RC sitting next to you. And personally, if I'm not sure about something like this, I make theories and check them. Those were starting points.

And I do not apreciate these personnal attacks. Good Night.
I do have an RC sitting next to me, but I only have a 9 volt battery and a 7.2 volt backup battery, neither of which have helped me with reference points, hence the question on the forums as to if anyone else has figured it out. I have no urge to kill the only 9 volt battery I have in my house, just to figure out a formula.
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #8   Spotlight this post!  
Unread 07-03-2004, 06:57
Jay Lundy Jay Lundy is offline
Programmer/Driver 2001-2004
FRC #0254 (The Cheesy Poofs)
Team Role: Alumni
 
Join Date: Jun 2001
Rookie Year: 2001
Location: Berkeley, CA
Posts: 320
Jay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to allJay Lundy is a name known to all
Re: Battery Voltages in Dashboard

This is probably what you're looking for. Straight from ifi_aliases.h

/* Formula to calculate voltage in volts:
* current_voltage = battery_voltage * 0.038 + 0.05;
*/

#define battery_voltage rxdata.rc_main_batt*15.64/256
#define backup_voltage rxdata.rc_backup_batt*15.64/256
  #9   Spotlight this post!  
Unread 07-03-2004, 10:13
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Re: Battery Voltages in Dashboard

Quote:
Originally Posted by Jay Lundy
This is probably what you're looking for. Straight from ifi_aliases.h

/* Formula to calculate voltage in volts:
* current_voltage = battery_voltage * 0.038 + 0.05;
*/

#define battery_voltage rxdata.rc_main_batt*15.64/256
#define backup_voltage rxdata.rc_backup_batt*15.64/256
I thought that'd be it too, but it seems to be off by -0.5 volts on the main battery voltage, and off by at least 0.6 volts on the backup battery voltage. I might try to grab several values while powering up as many motors as I can, so I can grab a high voltage number and a low voltage number and hope they used a linear scale, but that'll most likely have to wait till SBPLI, which is just under two weeks away.
__________________
AIM --> Woloi
Email --> ian@woloschin.com
  #10   Spotlight this post!  
Unread 07-03-2004, 14:10
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Battery Voltages in Dashboard

The formula for previous years was Vin = ((4.7/14.7)* Battery voltage)-0.4
  #11   Spotlight this post!  
Unread 07-03-2004, 16:50
Ian W. Ian W. is offline
College? What?
no team (Gompei and the Herd)
Team Role: College Student
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Worcester, MA | Smithtown, NY
Posts: 1,464
Ian W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to allIan W. is a name known to all
Send a message via AIM to Ian W.
Re: Battery Voltages in Dashboard

Quote:
Originally Posted by Joe Ross
The formula for previous years was Vin = ((4.7/14.7)* Battery voltage)-0.4
Yeah, that gives me voltages about 5 times too high.

Err.

Heh, I think that might work, if I just divide that by 5. A moment of clarity .

I'll try that in a little bit, hopefully it works.
__________________
AIM --> Woloi
Email --> ian@woloschin.com
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
Why MUST the 7.2v battery be attached to operate servos on the RC? Mike Rush Control System 17 06-02-2004 18:57
Quick release battery connector and 120 amps n[ate]vw Electrical 6 18-01-2003 23:41
Off-topic battery stuff. FotoPlasma Electrical 4 06-01-2003 12:19
Voltage Range of Analog Inputs Ulibrium Electrical 21 15-02-2002 14:11
connecting to the battery ahecht Technical Discussion 1 25-01-2002 17:15


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

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