SMART Target Range . something every lego or airsoft gun lover should have - a SMART target! features 3 targets that pop up at random intervals. . the time has come for me to create something that isnt a gun. that said, it is still to do with them - its a target!
this is the SMART Target Range - an all new target range that tells you when you win!
target works using an NXT - i hadnt used one in AGES and i thought that i could use one in a permanent project (that i wont break any time soon)
the programs are here! after several attempts to get in through the very 'politically correct' NXT moderation system (i once got my project rejected for mentioning WWII!!), the programs can be downloaded ON THIS PAGE
more info on the page.
----END OF EDIT----
you will also need a mini-sound block, i dont know where to get them from, but if you put it into google you should be ok.
basically each target has one motor and one light sensor assigned to it. as soon as you start the program, each target will pop up, the light sensor will take a reading, and then the targets will pop back down again. the idea is not to shoot the targets at this point, as their only calibrating themselves.
when you are ready with your loaded weapon of choice (ive used my AUG and a JG Skorpion (airsoft gun) on the target), you press the remote switch. this is on the end of a long cable that goes into the NXT at the back of the target.
Once you press the button, the NXT will make a high-pitched whine for between 2 and 4 seconds. after that it will stop, and all 3 targets will immediately pop up.
the targets stay up for 1 second (i may adjust this later to make it harder), and then pop back down again. after that they will each wait a random amount of time between 0 and 5 seconds, then pop back up again. this process is repeated with each target to give you a random sequence of target pop-ups.
every time the target pops down again, the light sensor takes a reading of the light. if this reading is similar to the one that it took at the start of the program, then it knows that there is nothing blocking the light, i.e. that youve succesfully decimated the target. once it realises this, it says the number of the target that youve shot, then stops that targets pop-up cycle.
when all the targets have been destroyed, the target will tell you your score. it does this by subtracting the time taken (in .001s of a second) to hit all the targets off of 100,000 (100 seconds, the max time allowed). this number will be your score, which is then read out in single digits, so if your score was 65045 (so it took you about 35 seconds), then the machine will read out "065045". i have yet to make a high-score reader/writer, but i probably will.
that is basically a summary of the program. it is written in NXT-G, so if you have an NXT you will be able to use it - but if you do, you will NEED TO DELETE SOME OF YOUR 'TRY SENSOR' INBUILT PROGRAMS as there is not enough memory otherwise.
thats it for the nerdy bit, here are some pics!
the target, the footswitch, and its 12ft+ long connecting cable
the three targets
middle target raised, you can see the light sensor underneath
the NXT at the back
thats it - tell me what you think!