Hi to everyone,
I’ve got a project where I linked a Arduino and a Raspberry PI.
Arduino and Raspeberry are connected to the same “multiple socket” 220V: RPI with its own power supply and Arduino with a 12V power supply trough the Vin / GND ports (power supplier not showed in image).
Code of Arduino wait for a HIGH value to the 10th PIN to bring the 4th PIN HIGH too. A pull-down resistor is present at the 10th PIN.
GNDs are connected together between the 2 boards.
Everything works great but…
When having current spike on the “same flat” (turning light on, turning on a drill or, sometimes, just attaching the drill to the electricity network), the Arduino seems to recognise a high signal along the pin that connect the Raspberry and the relay is being activated.
I cannot debug it properly because it’s extremely random, not always happen.
Maybe the cable catch some kind of interference (?) or maybe the Arduino is just turning the 4th PIN HIGH on a sort of restart…
Does anyone have some idea? Where could the issue be? How could I fix it (or try to)?