ARDUINO AIRGUN CHRONOGRAPH

by Jetstuff in Circuits > Arduino

12999 Views, 41 Favorites, 0 Comments

ARDUINO AIRGUN CHRONOGRAPH

P1050819.JPG

This is a chrono for measuring the speed and energy of an air rifle pellet.

It's pretty fast and could probably be used for other types of gun, (airsoft , full bore etc) but I have not tested it on them.

I initially made this available as a kit of parts and info, it has been well tested by others and gives accurate results.....but now it's FREE for all to do as you like with....SO Get Building!

Supplies

CHRONO PARTS LIST

1 20x4 character LCD (blue) 2004 with i2C serial interface

2 OPL550 IR photo transistors

2 OP240A IR LED

1 Wisher WCA-H2853 case enclosure (or similar)

1 Arduino Nano

1 Arduino Nano terminal interface PCB or Veroboard (optional for easier build)

1 MN1604 battery connector

1 MN1604 battery

2 5mm momentary SPST N/O push button switches

1 SPST on/off switch

1 4-pole jack plug/socket lead 2 mtrs (optional for removable sensor tube)

assorted sundries e.g. connecting wire, Velcro adhesive fixing tape,

'nylon Tyraps', heatshrink sleeving, double sided LCD fixing tape etc.

Lets Begin....

Kit.JPG
P1050823.JPG

Obtain the parts and components listed from your favourite sources, adapt the instructions to suit the parts that you can find. Some of you could probably use your 3D Printer to make your own 'custom case'.

Some basic soldering skills will be needed to attach some of the connecting wires, please research 'how to' if you are not familiar with soldering. Basically use a hot iron, clean connections and rosin flux cored solder, (I still prefer to use thin 60/40 tin/lead solder)

1. Mark out and carefully cut out the case lid to suit the LCD window. (TIP: if you drill a hole in each corner of the marked window, it makes it easier to saw out the centre using a coping saw or similar. A sharp hobby knife and file can be used to tidy the aperture)

2. Drill two 5 mm holes and fit the two small push button switches. The actual positions are not crucial and are up to you, but take the position of the internal parts into consideration when deciding locations.

3. Drill a larger 9.5mm hole for the latching push ON/OFF switch, and another 3.0mm hole for the sensor jack cable, again taking the internal parts into consideration when deciding a location.

4. The LCD can then be easily attached inside the lid, using a thin strip of double-sided tape around the window aperture. Make sure it's mounted the correct way up!

Get the Soldering Iron Out....

P1050813.JPG

5. Solder the header pins to the Arduino Nano and push it into the terminal board, ensuring correct orientation!

Using the terminal board makes it easy to connect and correct any wiring mistakes, you could use a piece of VeroBoard or solder directly to the Nano.

Connect the battery connector and latching 'power' push button switch following the wiring diagram pdf. , leaving sufficient spare wire to allow easy battery removal. Connect the battery power wire to the Vin screw terminal on the Arduino module. NOTE: as there are four or five black or GROUND wires to connect later, it may be best to wait until all are ready to be stripped and twisted together before fitting to the GND terminal.

Wiring the Nano....

P1070432.JPG

6. Solder the connections from the two small up/down push button switches, and connect them to the Arduino Nano module, A0, A1, and GND. (leave wires long enough to remove lid)

7. Cut the jack plug/socket cable about 300 mm from the socket end and carefully strip the outer sheath from the internal four wires about 100mm from the cut ends. Put the jack PLUG lead aside for now. Feed the free socket end through the drilled hole and secure with a nylon 'Tyrap' to prevent it pulling out.

Strip and connect these wires to the relevant screw connections of the Arduino module, carefully following the wiring diagram: Green to the +5V terminal, White to D11, Yellow to D10, and black to the GND terminal.

Connecting the Liquid Crystal Display

P1070433.JPG

8. The LCD module can now be connected to the Arduino module using a 'Molex' connector, or soldering wires directly to the pins, ensuring that the pin marked GND goes to GND terminal, Vcc goes to the +5V terminal, SDA to A4 and SCL to the A5 terminal.

Time to Program Your Arduino Nano...

9. Download the Chrono sketch to your computer system, and connect the Nano to the USB. (you may need to select the 'old bootloader' option and the correct COM port for the board.)

10. Have a look at the sketch and ensure you have all the libraries installed, check line 177 and modify if necessary, the sensor spacing distance that you will be using (default is 60mm).

11. Upload the program sketch to the Nano.

Ignition Sequence Starts....

P1050826.JPG

12. The Module and battery can now be fixed in place in the case using self adhesive Velcro strips, a 9 Volt alkaline battery fitted and the unit switched on to test your work.

You may need to adjust the small 'contrast' pot on the LCD board for the best image.

Holding down the 'up' button at switch on will allow the actual pellet weight to be entered.

The Rifle Sensor Tube....

P1050829.JPG
Air gun chrono 2.jpg
Air gun chrono 3.jpg

13. Now see the instruction sheet showing one way of constructing the 'sensor tube' for your airgun. You may adapt this part as required to fit, the only criteria is keeping the 60mm spacing distance between the two infra-red sensors, (unless the program sketch is modified to suit). Some heatshrink tubing can be used to cover the IR sensors when fitted to the tube. Dropping a pellet down the tube will test the unit, but the values will be very low!

Some of those who have already made this project, have 3D printed their own case and sensor tube. Some have dispensed with the connecting cable and fitted the display etc to the sensor tube.....the options are endless.

I hope you have fun building and using your own chronograph.

Downloads

See It in Action....

AIR RIFLE Chronograph (KIT)