Quantcast
Viewing all articles
Browse latest Browse all 35901

HOW TO CHARGE THE BATTERY USING SMART CHARGER

I am working on an embedded Linux project with the i.mx5. I am using version 2.6.31.14 of the Kernel. I2C works fine and I can see various sensors from the board on bus #1. I can remove the power cord and the battery keeps the board running. The issue is i am not able to charge the battery as a smart battery.

I am using BQ24735 Charger & BQ40z50 Fuel gauge, the battery is charging when it is connected to motherboard running with Linux. (switch ON case). I am following below steps to charge after booting up linux.

1) Writing charge current (1024mA) and charge voltage (16000mv) to charger. (I2C Address - 0x12)

2) Monitoring the Battery using Fuel gauge (I2C Address - 0x16)

3) Updating the Charging voltage and current manually for each 2 seconds.

4) Getting and Displaying Percentage.

Image may be NSFW.
Clik here to view.

Problems :

1) Wrong percentage Showing.

2) When it comes to < 30%, Whole System getting Switch OFF. After that when i switched ON means, again Percentage starting from 30%.

3) Charging percentage is going up to 103 or 104%.

4) If i want to charge the battery in OFF condition, means its not charging.  After Enabling BCAST Bit also, there is no change in Charging Voltage and Charging current, It is not updating so its not charging. 

5) If i enabled CPE Bit with BCAST bit means, the Voltage alone changing to 10469mv and Charge Current is 0A.

6) After complete charge of  battery, If  i put idle (OFF) without working also, charge is fully leaking from the battery. Each Battery Voltage is reaches upto 1.8V (Max Cell Voltage is 4.2V)

7) Is there any chance to enable the SBS Configuration register from Code, (Register Address) Instead of using windows application. ?

So please Suggest me, how to solve this above problems, how can i make charger to smart charger. and How to charge the Battery in OFF condition using Fuel gauge (Update Charge Current and Charge Voltage)


Viewing all articles
Browse latest Browse all 35901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>