Description: Used for testing 12V batteries for electric vehicles. Batteries will maintain a 38 - 40 Amp current from fully charged (roughly 13V) to fully drained (10.5V). By switching linear loads into and out of the circuit this current will be maintianed.
Inputs monitored:
Current Sensor Analog input 0
Votlage Sensor Analog input 1
Outputs controlled:
Power Bank 1 Pin 2 Two 1 ohm resistors
Power Bank 2 Pin 3 One 1 ohm resistor
Power Bank 3 Pin 4 One 2 ohm resistor
Power Bank 4 Pin 5 One 3 Ohm resistor
Power Bank 5 Pin 6 One 10 Ohm resistor
Power Bank 6 Pin 7 One 10 Ohm resistor
Power Bank 7 Pin 8 One 10 Ohm resistor
Battery_Tester folder contains program for the computer
Current_Tester folder contains programs for the Arduino
The voltage will be monitored to every tenth of a volt at an interval of one second defined by SamplePeriod (described in milliseconds). There will be an additional half second delay to allow for current/voltage settling. From there, the resistors will be brought into and out of circuit to control the current. There should be a monitor for the current to prevent any drifting from affecting the experiment.
The data will be output the RX/TX ports to a computer that will log the information. The following protocol will be used:
TimeStamp, Voltage, Current, Resistor Banks active
On initial startup, the program will request that any button be pressed. Once a button is pushed on the computer, then the testing will begin.
Revisions:
V0.01 Initial release.
V0.02 Fixed SamplePeriod bug. Switched to variable instead of a define.
Added Over Current Shut down. This will shut the test down,
turn off all Resistor outputs and send "Battery Current High"
to computer