sel-columbia / battery Goto Github PK
View Code? Open in Web Editor NEWBattery Discharge Meter
Battery Discharge Meter
this repo is for dry-cell battery testing of batteries in developing countries using simple microcontroller-based data acquisition. a 10-bit ADC on an atmel 328 is used with the arduino environment. ADC0 is connected directly to the battery output. ADC1 is connected to the high end of the shunt resistor to measure the battery current. Current source an opamp controlled constant current source is used to program output current. a voltage divider is used to set a bias voltage. opamp feedback adjusts the current source until the voltage across the shunt resistor equals the voltage on the divider. at 100 mA, the 1 ohm shunt resistor has a voltage of 0.1V. this means that the opamp must be able to tolerate a voltage close to the zero rail. i'm also experimenting with storing the data or results in a sqlite database LCD should update faster than sample output to file microcontroller: sippino was chosen for ease of breadboarding and access to AREF pin. shunt resistor: 1 ohm mosfet: 2N7000 opamp: LM358 voltage reference: 10K resistor and zener reg 2.5V nominal note: plugging in serial pin of open log affects current reading on the digital multimeter but not the LCD readout. (this could be because the change on the multimeter (3mA) is not within an LSB of the ADC.) however, this shows that you need to separate digital and analog ground since additional current is flowing through the battery circuit.
to improve calibration stability there needs to be a voltage reference for the AREF pin of the ATmega328. i'm looking at using a LM385 2.5V reference.
use an interactive serial calibration procedure rather than having to upload code again.
since the openlog uses serial, it would avoid problems to have the openlog on a different port than the dedicated serial port.
needs to include
voltage reference
new LCD connection
it could be useful to use a smaller shunt resistor with an amp for the voltage reading and current regulation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.