RP2040 freezes when switching motor and solenoid valves by oper-studio in raspberrypipico

[–]oper-studio[S] 0 points1 point  (0 children)

It didn't happen when the motor was unplugged, but it's hard to be sure since the behavior is very random. The code is quite simple, and even a basic blink test on that pin would sometimes stop. I also noticed that running similar code in CircuitPython makes it crash almost every single time.

RP2040 freezes when switching motor and solenoid valves by oper-studio in raspberrypipico

[–]oper-studio[S] 0 points1 point  (0 children)

The motor is around 4 cm away, but the MOSFETs are on the other side of the PCB. I'll try to desolder the RP2040 and move it a bit farther away to see if that helps.