It may be preferable to use a latching relay - there are various configurations, with the simplest having two coils; pulse one coil to turn on, pulse the other to turn off. Also reduces power consumption, which could be useful in a battery backed system.Don't forget that the relay would need to stay energised while the Pi is on, so the controller going back to sleep during that period might not be a good idea.
Statistics: Posted by stevend — Fri May 24, 2024 9:41 pm