-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lipo Singe Cell Monitor - write down formula for divider and don't use custom values in example #39
Comments
hi, resistors firstly are calculated against 1m output resistance. this mean for example 4,2 v (1s) on 1000ohm series and 3300ohm to gnd result in 3.220785 Volt. this is in the theory. all default 13 bit software dividers not calculated in theory. they are calculated with an existing resistor network (my 6s network). i use the resistors which are shown in wiki table. i use simple metal film resistors with 5% tolerance from e24 series. this mean as shown for 1S the calculation is not made to reach 3.3V. it is made to reach a near by value as high as possible with the use of e24 series resistors. and for sure i now this problem, i also was thinking about an simple calibration procedure. currently this was moved because i was working on other things to help release our first stable version 1.6. this is the reason why no concrete infos about calibration are written in wiki. also people who are able to build there own network and do the solder job may also advanced enough to find out how the code behind work and also can perform an manual calibration/software divider calculation. |
you may find this excel calculation and explanation useful , |
BUG it seams there is an important bug on the cell voltage calculation. |
if you disconnect the balancer plug the teensy adcs inputs are not zero. they values randomly change in this case. because for secure reason the gnd line from resistor network is only connected to balancer plug gnd and not to teensy. that mean if you disconnect the balancer plug the adc inputs are simply open. see schematic here https://github.com/Clooney82/MavLink_FrSkySPort/wiki/2.1.-Lipo-Singe-Cell-Monitor . !!! please do not change this and loop the resistor network gnd to teensy gnd. this can damage the whole electronics because current can flow through gnd if your lipo-main-plug (+) is connected while lipo-main-plug (-) is disconnected but the balancer plug is already connected to resistor network !!! /g |
That is not on my case . The problem is that the logic is not clearing the previous values . It It is easy to simulate . Gus
|
ok,understand. at least the cell detection can be removed. it makes no sense at all and users simply define "maxcells" more or less as "cells". so the detection makes no sense and without detection values less than _analogread_threshold (default 100) will measured. |
Hi!
Great project!
I was irritated by the posted values in the wiki for the divider. As for people who don't wnat to take a closer look into the code this is just a black box, the equation leading to the divider should be written down somewhere. After figuring out ADCref ist 3,3V and 8191/3,3 * Rgnd / (Rseries + Rgnd) it still does not match the values - as the values in the wiki are given for 0,001% accuracy (really!?) this is misleading.
BR
Robert
The text was updated successfully, but these errors were encountered: