A project to calculate distance using lasers, camera(android phone), servo motor and arduino. (app includes a serial monitor)
(to be updated)
The app includes a serial monitor to communicate with the arduino connected to an android phone using usb otg.
It uses the UsbSerial API.
The communication is done using syncRead and syncWrite API.
The commands are processed only after newline character is detected, arguments can also be passed to commands by sperating commands and arguments with a colon ':'
Writing to arduino : "getAngle" or "setAngle:90" or "turnOnBothLasers"
Reading from arduino : "angle:90" or "turning on lasers"
Check out Arduino Sketch and ArduinoCommunicator Android Java Class
Screenshots
Download APK
(apks have large sizes since openCV is integrated in the app for the main project)
(serail monitor can be seperated if requested)
Credits
OpenCV 3.2.0 Android SDK (Download)
UsbSerial