First want to say a big thanks to Bigpie and the others working on this. Has came a long way in a short time:) So I'm spending a few days watching batteries charge and I'm planning to use this system for charging in the Blue Yacht so thought I'd have a go.
1)Uploaded the firmware on the 328p. Seeing data coming out over serial terminal. all good here.
2)Got my head around platformio and uploaded webinterface to a d1mini. again all good here.
3)When all connected together no parameters as Leo has observed so did some digging.
Using an ftdi cable I could see no data arriving from the 328p at the pins of the D1. Removing resistors R86 and R96 and shorting them out showed data at the D1 and indeed blue text started apearing on the web interface log area but still no paramaters. verified the word "params" getting to the rx pin on the 328p but no response.
Board I'm using is an old rev auris and the d1 load was pulling the 5v rail down to 4.4v so powered the d1 from an external source. Bit better but the 328p still hangs up after a minute or so. Decided to decouple the whole thing from the logic board and loaded the code on an arduino due and connected the d1. Now the 328p does not hang but obviously throws errors in the serial data as no current sensors or can etc. Anyway, can now see the 328p respond to the "params" request but the parameters are not populating on the web interface.
Here is a serial capture :
Code: Select all
{DEBUG} Calibrating current sensor zero offsets...
{ERROR} Not accepting current calibration values: 258, 252 (out of range)
{DEBUG} Calibrating current sensor zero offsets...
{ERROR} Not accepting current calibration values: 259, 255 (out of range)
{DEBUG} Calibrating current sensor zero offsets...
{ERROR} Not accepting current calibration values: 257, 259 (out of range)
{DEBUG} Waiting for EVSE CP PWM (set force_ac_input_amps if you don't have EVSE)
{STARTCOMMAND}
{
"min_input_voltage_V": { "type": "number", "value":300},
"battery_charge_voltage_V": { "type": "number", "value":300},
"precharge_voltage_V": { "type": "number", "value":550},
"precharge_boost_enabled": { "type": "bool", "value":1},
"canbus_enabled": { "type": "bool", "value":1},
"mg1_current_amp_per_bit": { "type": "number", "value":1.00},
"dc1_volt_per_bit": { "type": "number", "value":0.56},
"dc1_volt_offset": { "type": "number", "value":74},
"dc2_volt_per_bit": { "type": "number", "value":1.23},
"dc2_volt_offset": { "type": "number", "value":0}}
{ENDCOMMAND}
{DEBUG} Calibrating current sensor zero offsets...
{ERROR} Not accepting current calibration values: 265, 259 (out of range)
{DEBUG} Calibrating current sensor zero offsets...
{ERROR} Not accepting current calibration values: 260, 254 (out of range)
{DEBUG} Calibrating current sensor zero offsets...
{ERROR} Not accepting current calibration values: 273, 266 (out of range)
{DEBUG} Calibrating current sensor zero offsets...
{ERROR} Not accepting current calibration values: 285, 278 (out of range)
{DEBUG} Calibrating current sensor zero offsets...
{ERROR} Not accepting current calibration values: 287, 282 (out of range)
{DEBUG} Waiting for EVSE CP PWM (set force_ac_input_amps if you don't have EVSE)
{DEBUG} Calibrating current sensor zero offsets...
So some hardware debugging needed from me but still not sure why the parameters are not populating assuming the response above is correct.