davidbuckley.net
home > RoboNova > Robot Voltage Circuit 12 August 2008

Robot Voltage Circuit

Fully charged the battery is voltage is 6.4V. The battery is nominal 6V 1000mAh.
The reason the resistors are not included on the C3024 board is the circuit doesn't work!
By the time the voltage drops to 5.8v the regulator has run out of headroom and the processor voltage starts to drop so the test only just works, sometimes!
robot_voltage:			' [ 10 x Value / 256 = Voltage]
'Fully charged the battery is @ 6.4V
'The battery is nominal 6V 1000mAh
'Using the specified 47k to Vbat + 47k to Gnd.
'By the time the voltage drops to 5.8v the regulator 
'has run out of headroom and the processor voltage 
'starts to drop so the test only just works sometimes!
	Ain = AD(6)				'next to Remocon
	IF Ain < 148 THEN 		' 148=5.8v	5=150=5.86  7=175=6.83
'	rvi =rvi +1
'	IF rvi=10 THEN
	  MUSIC "HBL"
'	  rvi =0
	 ENDIF 
	RETURN

The commented lines were to stop continous beeping!