Cowboy Toy - Arduino Laser Target

by Niklaxzzz in Circuits > Arduino

6663 Views, 36 Favorites, 0 Comments

Cowboy Toy - Arduino Laser Target

cowboy.jpg

In the lesson I will show you how I made a toy on arduino that will suit beginners. If you start working with sensors, then this toy will suit you as a homemade product.

Watch the Video

ИГРУШКА НАСТОЯЩЕГО КОВБОЯ - Как сделать лазерную мишень ардуино

Material:

- plywood

- PVC tube

- arduino

- servo

- photoresistors

- power supply +5V

- button

- laser

- aluminum tube (10mm)

-wires

- resistors 10 kOm

Box

IMG_1663.JPG
IMG_1657.JPG
&Изображение14.jpg
&Изображение15.jpg
&Изображение16.jpg
&Изображение19.jpg
&Изображение21.jpg
&Изображение22.jpg

First you need to cut two rectangles "A" (36x4 cm) out of plywood, two rectangles "B" (8x3.5 cm), one rectangle "C" (36x8 cm), one rectangle "D" (35x8 cm). In the “D” rectangle, drill a 10mm hole in the center and two holes at a distance of 12 cm from the center. Similarly, you need to drill in the details "A". For the beauty and protection of wood, I varnished the box.

Assembly of the Pushing Mechanism

&Изображение17.jpg
&Изображение18.jpg
&Изображение20.jpg
IMG_1995.JPG

From plywood, you need to cut three rectangles (8 x 1 cm) and drill them into the center of the hole (10 mm). They need to be glued so that the holes coincide with the holes of the part "D" at a depth of 1 cm. Under it you need to glue the servo as shown in the photo. Just need to make three parts (3 cm) of the aluminum tube.

Intsllation Photoresistors

&Изображение24.jpg
&Изображение23.jpg
&Изображение25.jpg

Solder the long wires to the photoresistors and then glue them to the “A” part.

Laser Gun Assembly

&Изображение26.jpg
&Изображение28.jpg
&Изображение27.jpg
&Изображение29.jpg
&Изображение30.jpg
&Изображение31.jpg
IMG_1997.JPG
IMG_1998.JPG

To the button you need to solder two long wires that need to be connected to the contacts of the laser button. From plywood you need to cut out three templates of the handle of a pistol taken from the Internet. In one of the template you need to make a hole for the wire. Then you need to glue everything as shown in the video. The barrel I made from trimming PVC pipe. After gluing, the surface needs to be treated and painted.

Circuit and Software

IMG_1991.JPG
cowboy_toy_circuit.jpg

All electronics need to be assembled according to the circuit.

Software: https://drive.google.com/file/d/1UU4VuBBvh_VLGLOd-0C1wjy5zKfVp4q7/view?usp=sharing

To configure the sensors, open Serial port in Arduino IDE. Then you need, shining a laser at the sensor, to remember the value and write it in the sketch in the row where it is written analogRead (foto) > value

Principle of Operation

&Изображение35.jpg
&Изображение36.jpg

When a laser beam hits the sensor, the ardino gives a signal to the servo, turning, thereby pushing the piston up and causing the can to fall.