Step 8: The X10 Code

You can download my code below. The system runs like this:

1. The key switch turns on the red alert alarm, cyclon LED sequencer on top of box, the "police flashers" on the side of the box, and the Arduino itself. (I did it this way to save power and prevent the Arduino from being powered up all the time.) The flashers and cyclon are will continuously run while the key switch is on. The red alert alarm will continue to run until:

2. The Red guarded switch is turned to the On position.

3. Once the Red guarded switch is closed, Party Mode On is activated. This dims the overhead can lights in the bar and turns on all the cool stuff.

4. Red switch "Off" deactivates Party Mode, turning all the X10 devices off sequentially and returning the overhead can lights to normal. There is a bit of a delay that is do to the way the X10 system works. It really is old technology.

5. Key switch Off shuts the system down.

Simple enough?

Well, hope you enjoyed this tutorial and please message me if you have any questions. I'll try to answer them but be forewarned that I am not an Arduino guru by any stretch, so you might be better off going to the Arduino forum for anything more complicated!
Good luck with your build Carter! If I were going to mount it on a stick shift I'd probably machine an adapter with my lathe. If you don't have a large. Find someone who does. If you are in the ATL area pm me and I'll do it for yiu
<p>I actually have this exact same stick grip I plan on using in my old Willy's Jeep as a shift knob/function controller either utilizing a Raspberry Pi or Arduino Uno. Any suggestions on mounting? The amphenol connector you used unfortunately won't work for my application. It was really really nice to find the pinout you posted before i started delving in myself! So thank you very much!</p>
Awesome project, though I do have to ask, why did you use so many different batteries? Why not one big LiPo hooked up to a handful of voltage regulators instead?
Spike, you are smarter than I thought you were. Too Cool!! Needs a trigger that will give your dogs collar a light zap..........and if properly trained...... he could bring a beer to your party..
Ok Birdy, wtf are you? :-)
This is effing incredible. Great job!
Thanks! Glad you like it!
I love how there's a 'party' button, awesome!<br />
Plasma, thanks for stopping by! You were the inspiration on this one dude. Yours does something that mine can't do - it turns the music on from a standstill. I couldn't figure out a way to do this short of having a computer that was always on hooked up to my AVR.<br><br>Anyway, good luck with your projects!
I see I'm going to have to step up my game. Haha, awesome job man! Love the cylon chaser.<br><br>Also, I think I found my new motto:<br>&quot;The degree of awesomeness is directly proportional to the amount of eye roll from my wife&quot;<br><br>:D
go HAF !!! :))
In some of the pictures the yellow comment boxes aren't showing up where I placed them. This is a bug in the Instructables editor, wish I could fix it!

About This Instructable


35 favorites


Bio: Just a guy who likes to build cool stuff...
More by spikec: Ammo Can Speaker Insanity: The MOAB *duino Keg Temp Monitor, or the Quest for the Perfect Pint Arduino-powered A-10 stick grip remote w/Emergency Party Button!
Add instructable to: