Git Product home page Git Product logo

battery's Introduction

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.

battery's People

Stargazers

 avatar Chris Jefferies avatar

Watchers

 avatar  avatar Michael Benedict avatar Jonathan Wohl avatar Justin Elszasz avatar  avatar ack ack avatar David Shi avatar Aarabi  avatar James Cloos avatar Anjishnu Kumar avatar  avatar  avatar  avatar  avatar

battery's Issues

add voltage reference

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 software serial

since the openlog uses serial, it would avoid problems to have the openlog on a different port than the dedicated serial port.

high side current sense amp

it could be useful to use a smaller shunt resistor with an amp for the voltage reading and current regulation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.