Hi
So far I've just been dabbling with my new Arduino but I frickin' love it and I now have many ideas for projects.
I may have bitten off more than I can chew for my first project but I like to dive in at the deep end. (I'll stop with the idioms now.)
If you've seen the music video to Michael Jacksons' 'Billie Jean' you'll know the kind of thing I'm after. A series of steps each individually illuminated by an LED and each individually controlled by a IR "trip wire". As someone walks on to a step and breaks the IR beam the LED will light up that step. However I'd also like for it to illuminate the next step a split second later so as you walk down (or up) the step ahead is always lit up for you. And of course, the steps behind turns off a few milliseconds after the foot leaves it and the IR beam is reset.
I've setup a basic version of this with momentary switches as the trip wires or like pressure switches on a stepping stone and I've got a clunky sketch running but it doesn't work quite how I'd like it to. Too many if statements for starters. Plus if more than one finger steps down on my pretend stepping stones it flickers between LEDS as it runs though the loop. I thought perhaps I could use a function some how.
I have over 10 years of web developing under my belt but trying to programme when its constantly looping frazzles my brain a bit.
Anyway, I have attached a very basic diagram of my setup. Each switch is paired with the opposite LED. I'm not looking for an answer as I'll never learn that way. I'm just looking for a nudge in the right direction as the past couple of nights of staying up till 2am without much progress is starting to wear me out.
Thanks in advance for even taking the time to just read my waffle. And any advice you can give. Hopefully one day I'll be adept in Arduino enough to help others out in the future.
Cheers
Ben

