Go to Post The moral of this story: A healthy respect for the customer, dedication to your job, and a positive outlook can make even the most trivial and monotonous job into a wonderful experience. - Molten [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #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
  #2   Spotlight this post!  
Unread 08-01-2009, 00:36
emmell's Avatar
emmell emmell is offline
Murphy was an Optimist!
AKA: Mannie Lowe
no team (Radbotics, RoboKnights, CircuitRunners, Oscar, and more...)
Team Role: Coach
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Marietta, GA
Posts: 178
emmell is just really niceemmell is just really niceemmell is just really niceemmell is just really niceemmell is just really nice
Re: [FTC]: Reading the 12V Battery voltage in LabVIEW

What a great VI and program for all to use Phil. Thank you!
__________________
Mannie Lowe
FIRST Program Manager - Center for Mathematics and Science Education - University of Mississippi
Mississippi FIRST Tech Challenge Affiliate Partner


Reply With Quote
  #3   Spotlight this post!  
Unread 12-01-2009, 09:00
jbbjjbt jbbjjbt is offline
VRC Coach
AKA: Jon T
VRC #0177 (Twisted Botz)
Team Role: Coach
 
Join Date: Feb 2006
Rookie Year: 2004
Location: Gloucester, VA
Posts: 110
jbbjjbt is an unknown quantity at this point
Re: [FTC]: Reading the 12V Battery voltage in LabVIEW

We tried this over the weekend. This is great. How in the world did you ever figure this out?
__________________
Jon Thompson
Coach
VRC 177 Twisted Botz
Sponsored by FRC 122
NASA Knights
Reply With Quote
  #4   Spotlight this post!  
Unread 12-01-2009, 10:50
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
Re: [FTC]: Reading the 12V Battery voltage in LabVIEW

Quote:
Originally Posted by jbbjjbt View Post
We tried this over the weekend. This is great. How in the world did you ever figure this out?
I emailed Hitechnic and asked (begged) for the register spec for the Motor Controller.

They are planning on releasing this spec. soon, but they let me see the preliminary issue. It probably helped that I'm a FRC Beta Tester, and had already been working with folks from NI and FIRST.

To be fair, I felt that everyone should benefit from what I learned.
So I created the VI and sample program.

Before you ask for a copy of the spec, I was asked not to distribute it, since it was preliminary.

Phil.
__________________
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
  #5   Spotlight this post!  
Unread 12-01-2009, 11:13
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: [FTC]: Reading the 12V Battery voltage in LabVIEW

Quote:
Originally Posted by jbbjjbt View Post
We tried this over the weekend. This is great. How in the world did you ever figure this out?
The FRC community has grown accustomed to accepting that Phil does things that others can not. I believe the FTC community will soon follow.
Reply With Quote
  #6   Spotlight this post!  
Unread 12-01-2009, 11:13
emmell's Avatar
emmell emmell is offline
Murphy was an Optimist!
AKA: Mannie Lowe
no team (Radbotics, RoboKnights, CircuitRunners, Oscar, and more...)
Team Role: Coach
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Marietta, GA
Posts: 178
emmell is just really niceemmell is just really niceemmell is just really niceemmell is just really niceemmell is just really nice
Re: [FTC]: Reading the 12V Battery voltage in LabVIEW

Phil:

Can you turn this VI into a NXT-G block for those that are programming in that language.

Thanks,
__________________
Mannie Lowe
FIRST Program Manager - Center for Mathematics and Science Education - University of Mississippi
Mississippi FIRST Tech Challenge Affiliate Partner


Reply With Quote
  #7   Spotlight this post!  
Unread 12-01-2009, 11:20
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
Re: [FTC]: Reading the 12V Battery voltage in LabVIEW

Quote:
Originally Posted by emmell View Post
Phil:

Can you turn this VI into a NXT-G block for those that are programming in that language.

Thanks,
Oh Boy.... now you're really challenging me. I've never done a NXT-G block before (certainly not one that accesses the ports directly). Is it possible to look inside the existing FTC ones to see how they work?
__________________
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
  #8   Spotlight this post!  
Unread 12-01-2009, 21:13
emmell's Avatar
emmell emmell is offline
Murphy was an Optimist!
AKA: Mannie Lowe
no team (Radbotics, RoboKnights, CircuitRunners, Oscar, and more...)
Team Role: Coach
 
Join Date: Dec 2005
Rookie Year: 2005
Location: Marietta, GA
Posts: 178
emmell is just really niceemmell is just really niceemmell is just really niceemmell is just really niceemmell is just really nice
Re: [FTC]: Reading the 12V Battery voltage in LabVIEW

Actually it might be easier than you think. Having never done LabView, I don't know what it takes, but NI was nice enough to give us manuals with the FTC install of their software. Look in their subfolder trees under the Manuals folder. There should be a PDF file called "NXT_Creating_MINDSTORMS_Blocks". It looks like it walks your through the entire process.

Thanks,
__________________
Mannie Lowe
FIRST Program Manager - Center for Mathematics and Science Education - University of Mississippi
Mississippi FIRST Tech Challenge Affiliate Partner


Reply With Quote
Reply


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
The 8.2 (or 8.3) Battery Voltage Bug eugenebrooks Programming 167 21-02-2008 20:05
Reading battery voltage in software RbtGal1351 Programming 17 21-10-2007 13:07
12V Battery Maintenance cbolin Electrical 16 27-12-2004 17:29
Jump Start RC w/o Exide 12v battery Mark McLeod Control System 3 12-01-2004 12:42
Jump Start RC w/o Exide 12v battery Mark McLeod Programming 0 12-01-2004 09:15


All times are GMT -5. The time now is 12:30.

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