Hi all,
I'm new to working with programming and arduino having been involved with fighting robots for a long time. For my first project, I'm looking to make a simple IR blaster game based on the numerous tutorials you find online (double convex lens, high powered IR LED using some sort of transistor with matching receiver, etc). This wouldn't be laser tag - purely single shot from the rifle hitting a target which will either output noise, movements or both. The idea being that if I can get this basic system working, I can then expand it with further game functions.
Leading me onto my main question about the rifle code, all I want to do is when the trigger is depressed (and theoretically kept depressed indefinitely) is to illuminate the IR LED for given amount of time at a given frequency then deactivate and stay off until the trigger has been released. Essentially, a single shot process. At the same time as learning to write code, I'm beginning to theorise the structure of the code but whilst I can work out how to get the IR LED to pretty much flash, I can't get my head around how I'll get it to stay off after this if the trigger is held? Any help would be greatly appreciated.
Cheers
Dan