I looked in digikey.com, for "power line filter module". There is a parametric search, with filter type = single phase; voltage range 110, 250V AC (and the similiar 120, 125) for current 5, 6A I get 82 proposal, the first few for prices between 10 and 25€. These are small modules which you could build between the mains line and the power plugs where the pico are located.
If you ask your local electrician, perhaps there are such modules available. Eventually a 100nF, mains rated cap close to the lamp could help. Do not just buy anything, ask your electrician for EMI filter caps which withstand high voltags spikes.
Working with mains: you need to be cautious, observe all safety rules, when in doubt ask a local electrician for help.
You could also add a bidirectional TVS suppressor diode rated according the max sine value of your mains.
As it is not clear whether overvoltage or undervoltage causes the reset of your pico: in addition to this, add a quite large electrolytic cap of 470uF to perhaps 1000uF to the 5V supply of the pico, add 0.1uF ceramic in parallel and a supressor diode with a bit more than 5V.
Do not run the low voltage feed for the pico in parallel to mains line. Keep wires short. If you have sensor lines, gpio lines from pico then use short wires, use twisted wires, keep away from mains.
This all could - hopefully - resolve the problems.
There is - last not least - the possibility that a bad lamp switch for any reason interrupts the feed for the power plugs of pico. Loose contact or so. So perhaps not primary the EMI, but some short disruptions... Which happens when lamp is switched only. Who knows.
If you ask your local electrician, perhaps there are such modules available. Eventually a 100nF, mains rated cap close to the lamp could help. Do not just buy anything, ask your electrician for EMI filter caps which withstand high voltags spikes.
Working with mains: you need to be cautious, observe all safety rules, when in doubt ask a local electrician for help.
You could also add a bidirectional TVS suppressor diode rated according the max sine value of your mains.
As it is not clear whether overvoltage or undervoltage causes the reset of your pico: in addition to this, add a quite large electrolytic cap of 470uF to perhaps 1000uF to the 5V supply of the pico, add 0.1uF ceramic in parallel and a supressor diode with a bit more than 5V.
Do not run the low voltage feed for the pico in parallel to mains line. Keep wires short. If you have sensor lines, gpio lines from pico then use short wires, use twisted wires, keep away from mains.
This all could - hopefully - resolve the problems.
There is - last not least - the possibility that a bad lamp switch for any reason interrupts the feed for the power plugs of pico. Loose contact or so. So perhaps not primary the EMI, but some short disruptions... Which happens when lamp is switched only. Who knows.
Statistics: Posted by ghp — Sat Dec 16, 2023 9:19 pm