View Full Version : Reading battery power on Driver station.
Digmaster
26-01-2009, 22:07
Anyone mind telling me how to change the v00.00 to the actual battery voltage?
Do you have the Analog Breakout hooked up on slot 1? The battery voltage is measured on channel 8.
Digmaster
26-01-2009, 22:20
Is that the object in the cRIO that says analog in?
If so, please give us exactly what to do. We're a new team, and everyone is gone but the programmers. I'm the only electrical left, and I feel like doing something to show others tomorrow.
Digmaster
26-01-2009, 22:36
I placed a jumper on the thing that says Analog In in slot 8 and restarted. The driver station now says no code. The programmers are too busy changing the code's comments and stuff so it looks like a drunk guy wrote it, so should it say anything other then no code?
The first slot on the cRIO should have an NI 9201 Analog Input module plugged in. The Kit of Parts includes two Analog Breakouts, as described in section 3.4 of the FRC Control System Component Data Sheets (http://www.usfirst.org/uploadedFiles/3-FRC%20Control%20System-Component-Datasheets-Rev-0-5a.pdf). That section should contain all of the information you need to install the Analog Breakout and get things working.
Make sure to note this detail:
How do I measure the battery voltage using the Analog Breakout?
• Use a shunt (jumper) to connect the outer two pins of the “AI8 Select” connector
• Battery voltage is reduced to ~40% of its actual value by a 680/1k voltage divider and
filtered by a 0.1uF capacitor.
Edit:
No Code seems to indicate that there is no user program running on the cRIO. There's probably nothing deployed, so your program isn't running on startup. In WindRiver you can deploy your program using the FIRST->Deploy menu, but I'm not sure how to do this in LabView.
If you run/debug your program in RAM, you should see the battery voltage on the Driver Station, provided everything is set up correctly.
Al Skierkiewicz
27-01-2009, 07:53
Dig,
The Crio and drivers station must have compatible code running. If you (or the software team) updated the Crio and did not update the DS you will have problems. Please be aware there is a specific method for updating code especially on the DS. Do not interupt the operation when flashing the DS See p6 of the control system manual. This operation will also change your team ID so that will need to be reset after each software upgrade.
BrandonD-1528
31-01-2009, 13:20
The jumper goes on channel 8 but which two prongs. Sig and + or + and - ?
Alan Anderson
31-01-2009, 19:59
The jumper goes on channel 8 but which two prongs. Sig and + or + and - ?
A National Instruments 9201 module must be installed in slot 1 of the cRIO Mobile Device Controller. An analog breakout must be connected to this module. A jumper must be installed on the “Battery Voltage” and “Power” pins on the analog breakout. The analog breakout must be powered from the Power Distribution Panel. Please refer to Section 3.4 of the “FRC Control System Component Data Sheets” for information on these connections.
Chapter 3 Control System Data Sheets can be found at http://www.usfirst.org/frccontrolsystem, under the Control System Manual heading.
EricVanWyk
31-01-2009, 20:09
The jumper goes on channel 8 but which two prongs. Sig and + or + and - ?
Please read the manual. You are at risk of damaging components.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.