Some update on my progress ... again first thanks a lot for the useful info ... alone I would have need a month to get to this point.
I'm in running tests since 3h with no fails. We may succeed to resolve the issues
What I've done is:
- I farther shortened all power supply wires 220Vac to less than ~30mm - I moved swithing power supply closer to where cables comes in the box.
- I connected the BMP180 to the second I2C (i2c2) on MCU and setup the speed at 50000. I soldered both i2c the BMP180 and the OLED directly on MCU board and removed all dupont connetors on i2c.
- I changed the SW code so that if i2c is lost on either device it will switch off the pump, hold for 30 sec then apply a sw reset to the MCU. Save the event in the flash and if repeats 3 times it will reset this counter and go into infinite loop in an error handler. The LED would flicker faster if i2c fails at least once. So even it succesfuly reset I still know it failed. This can be improve.
Will keep the device under tests all day today - while used in normal condition we need the device to run for up to 36h until resine in the laminates that are in the vacuum bag is fully cured.
I'm in running tests since 3h with no fails. We may succeed to resolve the issues
What I've done is:
- I farther shortened all power supply wires 220Vac to less than ~30mm - I moved swithing power supply closer to where cables comes in the box.
- I connected the BMP180 to the second I2C (i2c2) on MCU and setup the speed at 50000. I soldered both i2c the BMP180 and the OLED directly on MCU board and removed all dupont connetors on i2c.
- I changed the SW code so that if i2c is lost on either device it will switch off the pump, hold for 30 sec then apply a sw reset to the MCU. Save the event in the flash and if repeats 3 times it will reset this counter and go into infinite loop in an error handler. The LED would flicker faster if i2c fails at least once. So even it succesfuly reset I still know it failed. This can be improve.
Will keep the device under tests all day today - while used in normal condition we need the device to run for up to 36h until resine in the laminates that are in the vacuum bag is fully cured.