Today I built a prototype Chronograph for Airsoft and Paintball (and Nerf!) using an Arduino and IR LED emitter/detector pairs, I am not sure it it will be fast enough for measuring airsoft pellets though. The initial code was pretty bad, it could only measure a maximum of about 5 fps! (Too much serial debugging going on)
Here is a picture of it, I will post more once I do more testing and debugging.
The default ADC sampling rate is around 120us per sample which is not good for this project.
Thanks to some other blogs about high speed ADC on Arduino (that I have referenced in the source code) the system is now sampling at 15 micro seconds and using interrupts for better performance. I think 15us is good enough, but in case it is not I have ordered some IR detectors from amazon (Uxcell a14060700ux0143 SM0038 3 Pin Ground Vs Vout Infrared IR Receiver Module 250mV) that will allow me to use the digital inputs at 16MHz.
Ya, its been a while… What can I say, life is busy! Anyways, here is a neat project I created using an Arduino to make a Capture the Flag Game Controller for playing Airsoft or Nerf on the weekends! You can use it for Paintball too! 😉
I have not posted much on my website due to working on several big commercial (windoz) projects using wxWidgets 3 / OpenGL / SQLite / MariaDB. I used to be a big fan of Qt, however the licensing was way to expensive for me to use it for any project that I decided to take commercial, so I gave it up and dove into wxWidgets. I am happy to say that I have found it to be most useful as a general purpose GUI building tool, and superior in performance and simplicity compared to Qt. I am completely loving wxWidgets and I plan on posting a pile of wxWidgets instructions and examples in the future to help support the community of wx users.