Hey all you lovely people!
I am working on a quite interesting project. I own a portable wand shop that travels to conventions and parties. It's inspired by Harry Potter. I made my shop "interactive" meaning that when customers come into the shop, they "test" out several wands until the right wand chooses them. To achieve this, I've created a control box with an MP3 module that creates the illusion of magical effects.
The control box has a 18 channel Pololu maestro, a Robertsonics MP3 module, 4 buttons, and 10 leads to control servos and other hardware.
Here's what each of the 4 buttons is intended to perform.
1. Plays an MP3 of the wand "failing" to fire.
2. Plays an MP3 of thunder and lightning, activates strobe lights, then turns off after 8 seconds.
3. Plays an MP3 of wand firing, richocheting and causing havoc, activates 4 servos which move, shakes, and "breaks" props. Props "repair" after 16 seconds.
4. Plays an MP3 of the wand "choosing" customer, servo lifts sign reading "Chosen One" then goes back down.
What I am seeking assistance is on how to turn on a plug connected to a strobe light (Button 2). I essentially need to build a powercord/light switch that can be controlled by my Pololu maestro. I've read that it can be done with a relay switch. Is there a compatible relay provided by Pololu that can achieve this? I've been looking at the 5v relay, but I'm concerned that it would not be able to handle power coming from a wall plug.
Here's a tutorial I found on Sparkfun that explains what I am trying to achieve.
Another similar tutorial.
ALSO, very importantly, what would be the code to activate and de-activate the relay?