DIY Lithium Battery Balancer and monitoring (BMS)

Just a small tip for v3 boards.
If your board takes programming just fine, but goes ‘green’ when plugged in and doesn’t provision, make sure the opto-isolator is completely soldered down.

65535 is often a sign of a comms issue.

Some Help Please

after watching Adam Welch’s video diyBMS issue - Voltage Divider Maths - YouTube
awhile back, I decided when I make my v2.1 units I would change
R4 to 20K (R3 been 68K) but i’m lost with what I need to change in the code,

the default code is this

float Vin=3.3; // [V]
float Rt=10000; // Resistor t [ohm]
float R0=20000; // value of rct in T0 [ohm]
float T1=273.15; // [K] in datasheet 0º C
float T2=373.15; // [K] in datasheet 100° C
float RT1=35563; // [ohms] resistence in T1
float RT2=549.4; // [ohms] resistence in T2
float beta=0.0; // initial parameters [K]
float Rinf=0.0; // initial parameters [ohm]
float T0=298.15; // use T0 in Kelvin [K]
float Vout=0.0; // Vout in A0
float Rout=0.0; // Rout in A0
float TempK=0.0; // variable output
float TempC=0.0; // variable output

so what do I need to change, and to what value ?

any help would be most appreciated

Nigel

3 posts were merged into an existing topic: DIYBMS v4