I built a simple
power relay controller and then wired some buttons in it to turn on different extension cords. The buttons hit input GPIO pins to set and then the relay is controlled with GPIO pins set up for output. The simplistic thing to do is roll and poll, but the Internet is smart and says, "Use interrupts!" So I did.
(
Code )
Comments 5
Reply
I took it to the school [where we are doing the show], and when I turn it on everything is fine and quiet. Once I hit a button, then I get spurious lights and noises on that button's circuit. Hit all the buttons and the spurious starts move all over. There can be anywhere between 0-10ish seconds between spurious starts.
I'm going to mull it over and see if I can come up with something by lunchtime. Maybe I just need to put it in a metal box.
Reply
Reply
Reply
Reply
Leave a comment