View Single Post
  #1   Spotlight this post!  
Unread 07-01-2009, 21:02
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
[FTC]: Reading the 12V Battery voltage in LabVIEW

Hi

I got sick of forgetting to turn on our 12V battery (for FTC) and since we can't add any sort of power indicator there's no "easy" way to allert the driver before the match starts.

Well, it turns out that the HiTechnic Motor Controller does actually measure the battery voltage and makes it available as a register.

I wrote a LabVIEW VI to read this register and convert it to milli-volts.

The cool thing is that if the battery voltage is actually OFF, then the VI returns an error. So you can detect low voltage and no-voltage.

I've written a White Paper and attached the VI along with a sample beeper program.

It's here: http://www.chiefdelphi.com/media/papers/2189

If you use it in your "disable"loop it will allert you of a problem while setting up on the field.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote