r/arduino • u/KellySumeli • 3d ago
A smartphone powered laser turret
Enable HLS to view with audio, or disable this notification
I built a laser turret that points at wherever I tap on a camera view.
The turret is made of 2 SG90 servos and a low power red laser module KY-008, tied together by copper wire. They're controlled by Arduino Nona through the PCA9685 extension board, which is communicating with Arduino by I2C. The Arduino is controlled by my Samsung A52 with a USB-C cable. Laser is calibrated on the fly. Everything is vibe-coded and vibe-assembled, but at least I've learned how these things work.
The best part is that everything is powered by the smartphone, with no additional power sources, so I brought the device to my peers and showed them how I control the laser through the smartphone. To achieve it I reduced the voltage that goes to the PCA9685 to barely above the point when servos stop working, because otherwise the phone says that the USB device is too powerful.
I'm planning to use the setup to detect and show mosquitoes. I know that the detection is the hardest part, and I found many projects that tried it and failed, but I hope that modern smartphones got significantly better than whatever cameras were used in those projects, so I'll try it anyway.