Atmel Solar Panel Battery Charger
Atmel Solar Panel Battery Charger


  Atmel Solar Panel Battery Charger

Batwatch is a simple monitor for a solar panel battery charger, using an Atmel ATtiny13V. It periodically measures the charge current and battery voltage, and shows them by blinking two LEDs. I built this circuit into the plug of a VW solar charger panel that is used to prevent a discharge of the battery when a car is not used for some time. A modern car contains a large amount of electronics, and a quiescent current of 40-50mA (about 1Ah per day!) is considered "normal".


Atmel Solar Panel Battery Charger

Every couple of seconds, the software samples the two analog inputs, calculates the charge current and battery voltage, and shows the voltage on the red LED and the charge current on the green LED. The voltage is shown in units of 0.1V using three decimal digits, and the current is shown in units of 10mA using two decimal digits. Each digit is represented by a number of short flashes corresponding to the value of the digit. A zero is represented by a single longer flash. When the charge current is below 10mA (after rounding) or negative, the green LED is not turned on at all. I use 4 times oversampling to get an 11-bit result, following the technique described in the Atmel application note AVR121. I'm not sure if there is enough noise on the inputs to actually increase the resolution, but it will not hurt either. The raw A/D reading is converted to a voltage using a separate pair of offset/gain constants for each input. These constants are derived from the calibration data stored in the EEPROM. To save power, all delays are implemented by executing one or more sleep instructions which cause the CPU to idle until the next timer interrupt. The interrupt frequency is 100 Hz, so each sleep pauses up to 10 mS.


Atmel Solar Panel Battery Charger


Atmel Solar Panel Battery Charger


Atmel Solar Panel Battery Charger


Downloads

Project documentation

HEX Program
 Atmel Solar Panel Battery Charger - Link


 

Build your own LC Meter and start making your own coils and inductors. This LC Meter allows to measure incredibly small inductances making it perfect tool for making all types of RF coils. LC Meter can measure inductances starting from 10nH - 1000nH, 1uH - 1000uH, 1mH - 100mH and capacitances from 0.1pF up to 900nF. The circuit includes an auto ranging and "Zero Out" function to make sure the readings are as accurate as possible ... [more]


Electronics-DIY.com © 2002-2010. All Rights Reserved.