Inductive load issue (?) makes MCU go hard fault

dacair

Sep 4, 2024
13
Joined
Sep 4, 2024
Messages
13
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 :D
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.
 

dacair

Sep 4, 2024
13
Joined
Sep 4, 2024
Messages
13
I'm getting back here just to say thanks to all that helped me. My controller is woking fine since.
A friend saw it so I had to make another one and give it to him. Had to make even a short tutorial ;)

A short video with the controller at work.

Thanks,
 
Top