Hello,
I am trying to make a laser range finder using a laser, arduino uno raspberry pi, and webcam. I would like to use this to compare distances on ana airsoft turret. The turret will rotate with lrf and gun mounted on it and it will read distances at known servo angles, and if the distance changes meaning someone has walked by it will shoot a few bbs at that servo angle. I have a little knowledge in arduino coding(enough that already made functioning code) its the rpi code preferably python, that i have 0 experience in. I know how to solder and put things together its just the rpi code. I was hoping that the pyhton code could go like this. Measure distance somehow, compare, if changed to previous reading then set one of the gpio pins high which will inturn be connected to an arduino pin which will be high if gpio pin is high and vice versa.
Any help is appreciated!
Thanks,
Dylan