This is a library to control BQ40Z50 battery manager. A wide variety of battery pack metrics can be reported including current state of charge, individual cell voltages, time to empty, average current ...
This is an easy tutorial showing how you can control the brightness of an LED or adjust the speed of a DC fan using Arduino Board, a small BC547 transistor and a potentiometer. In my example the whole ...