Simple relay toggle for Arduino Duemilanove

Hey friends,

I have very limited experience with arduino, so hopefully this makes sense.

This project will be a momentary switch that toggles between two 110v lamps. No timer, just latching on/on, the lamp stays on until the momentary switch is closed again and the 2nd lamp comes on.

Originally I was going to do this with a hand-wired flip-flip circuit and an SPDT relay. While that's pretty simple (for me), I had a couple of these arduino Duemilanoves around and figured it would be even easier and faster to use one instead.

I tried doing some searches, but couldn't find anything that would compile and run on the Duemilanove. Perhaps it is obsolete? I have everything I need to make it work, I just don't understand the script well enough.

Can anyone point me in the direction of a sketch that might work? Or a good place to start? The project is a film lightning prop, and I need to have it put together in 48hrs, so I don't have enough time to learn from scratch (but I will after this!)

If you can help me out I'm happy to send you whatever leftover parts I have (a couple arduinos and some fun FSRs and stuff). Or I can hook you up with something else, I know your time is valuable.

Thanks for all your help, in advance!

but couldn't find anything that would compile and run on the Duemilanove. Perhaps it is obsolete?

Anything you can run on a Uno you can run on a Duemilanove. There are lots of examples in the IDE under the Examples menu.

Make sure you are selecting the correct Arduino from the tools menu and also the correct serial port.