Dry Fire Laser Target
Intro: Dry Fire Laser Target
This project will walk you through building a target that can be used in conjunction with a dry fire laser which is either bought, or made from another instructable. I will not go into putting the project into a case because there are many different ways to go about this. I'll give a couple of examples at the end.
STEP 1: Wire the Arduino
Note ***I am not aware of what photoresistor I used. Most say to use a 10k Ohm pull-down resistor with it and I have only 3k Ohm listed. It worked on multiple builds, so I will stick with it. Next time, I'll try it with a 10K Ohm resistor.**
The picture shows the wiring that I used and it is also reflected in the code which you will use later on.
The (passive) Buzzer has the '+' side connected to 'D11" on the Arduino (it may just be marked as '11'
The LED has the resistor connected to the '+' side, which is the longer pin on the LED
With the Photo resistor, direction does not matter.
** Remember to make your connections with wire that will be the right length for the enclosure that you plan on using.
**Don't plan on placing the LED too close to the Photo resistor, otherwise it get stuck in a loop and continually go on/off.
If you want the target to be battery operated,and with an on/off switch, connect the battery pack's ground to the Arduino ground and the positive to the switch and from there to the 'VIN'
STEP 2: Program the Arduino
Download the Arduino IDE
https://www.arduino.cc/en/Main.Software
and follow the install instructions.
Plug the Arduino into you computer and find out which COM port it is on.
On the "Tool" menu on the IDE, choose:
Board: Arduino Nano (or match the board you are using)
And Port: to the port that your Arduino is found.
Download and open the file "Laser Target"
You can now upload the program to your Arduino by pressing the "right arrow button"
=OR=
read the code first.
You can change the location of your buzzer, LED, and photo resistor pins, so if you accidentally soldered your LED to A0 instead of A1, you can just change the program and not have to re-solder.
After uploading, if you decide that you don't like the tone or length of the buzzer, you can change that as noted in the file.
STEP 3: Put It Together
(missing buzzer in picture)
You will need something the diffuse the light for the photo resistor. If you don't, you will have to hit that resistor straight on, which is a pretty small target.
I used a cap from a oat milk container. I've only used white lids, but you could try other colours. I bent the wire on the photo resistor to face the center of the cap and hot glued it in place. Try and keep it towards the back of the cap and not right up against the lid.
You can now either find a box to put your target in, poke a hole through a piece of cardboard and place the bullseye inside (and another hole for the LED)
STEP 4: Play and Improvement Ideas
Play**
** On the video, the cardboard target does not have a buzzer connected.
Improvements that could be made:
there is plenty of space on the Arduino to add another 1 or 2 bullseyes,
daisy-chain multiple targets together to work off of one power source.
add a LCD 'hit count"
add a potentiometer between the buzzer (+ side) and the arduino for volume control
If you find an error in my Instructable, or something needs to be clarified, please let me know.
25 Comments
millerscott89 1 year ago
reedjor 3 years ago
DrHoppe 2 years ago
I'm basing it on this post series: https://forum.arduino.cc/t/simplest-battery-power-to-arduino-nano-solution/530242/2
DrHoppe 2 years ago
skree 2 years ago
The picture on the right is off, in that the Ground of the Uno is going to the Positive (+) side of the breadboard rail. Always have GND to (-) and 5V OR 3,3V to (+). It's also good to get into the habit of using red and black wires for these.
DrHoppe 2 years ago
If you're interested. :-) Thank you so much for the response and help! I'm going to put it together and try it tomorrow!!!
skree 4 years ago
DrHoppe 2 years ago
skree 2 years ago
Kb1986 2 years ago
skree 2 years ago
1. Power. I've also used a 9v battery and have also used a USB 5v.
2. Push light. I'm not sure. I would try it. IDK how many batteries the light takes, but if the arduino can get around 5v (the 3 AA's give 4.5 and that's fine) then you could use that to power it. Don't forget to have the photoresistor in there. If you leave the push on/off part of the light still connected, remember to have it on when testing. (This is something I would forget to do and probably spend a long time troubleshooting .)
DeltaZeroSeven 2 years ago
I am only a couple days into my head-first dive into Arduino and would really appreciate some help. With my setup, the LDR is reading 0 in the Serial Monitor and increases when I cover it... I feel I have something backwards. The LED and Buzzer also activate upon covering the LDR. I believe I have everything wired to spec as detailed in this Instructable; 10k Ohm resistor used for LDR.
I appreciate any and all help!
joebruin79 2 years ago
skree 2 years ago
In the code, you would have to duplicate the code for the PR, but change it to the new input pin (A3- stated above) and also copy the code for the LED with the new output.
joebruin79 2 years ago
BronekK 3 years ago
rboatright 4 years ago
Laser targets are FAR too expensive. I've been wanting some for quite a while, and I can afford this! I'll be making several. But I do have a question.
i would like to clarify your bill of materials. One is actually a question, the other is a nit-picky comment about terminology.
Photoresistor:
The computer drawn schematic refers to the photoresistor as A1060_09 which is 7.5kΩ when lit and 120kΩ; when dark. On the other hand, the hand drawn schematic says that it's an ~3K ohm resistor. From that, I'm assuming it doesn't really matter much.
I'm hoping that the extremely common GL5537 photoresistor which is 20 to 50 kΩ when lit and 2 or 3 MΩ when dark will work since basically everyone (including adafruit) sells it for use with Arduino. If we really need the lower resistance, the GL5516 is 5 to 10 kΩ when lit, 500 kΩ when dark, or the GL5528 which is 10-20 kΩ lit and 1 kΩ dark. All of those are available for a couple of dollars for 20 or for about $1 each in singles...
Also, you list R2 - the pull-down resistor for the photoresistor as 3 kΩ. In their info sheet for attaching photoresistors to Arduino, adafruit suggests a 10K pull down. Is the lower value because you're using a lower-resistance photocell, or just what you had?
Adafruit's info sheet: https://www.mouser.com/datasheet/2/737/photocells-...
Buzzer:
The schematic calls out an F/CM12P which is an active buzzer. When calling out parts in a BoM it's a good idea to specify active or passive for generic small piezo buzzers.
reedjor 3 years ago
skree 4 years ago
Thank you for your input.
skree 4 years ago
So the "greyness" in the instructable comes down to my ignorance....but I'm trying.
I'll edit that image to remove the "F/CM12p" and "A1060_09" I'll have to look up what I used. I'll add it when I find it