Basic android app with video feeds, actuator and push button
Android app (running on a N701 rugged tablet) controlling an actuator while collecting some data from cameras, push button, micro switch and rangefinder. Please find a prototype : (you can easily cut loading and password page by clicking on it) [Url visible pour les membres Pro] The devices are an actuator (connected to RS-485), 1 NO push-buttons (connected to GPIO), two cameras (connected to 1st and 2sd USB port), a rangefinder (conected to GPIO UART/I2C) and an NO Micro Switch (connected to GPIO). Cameras (GS-15WM) : - The full-size background of the UI is a live video feed on camera 1 (day light) or 2 (night - infrared light) - You can switch from camera 1 to camera 2 with the button located on the upper left corner. « Ax » number : - One important variable on my project is « aX », « aX » is a whole digit, it is adjusted by the user using « + » or « - » or directly set to « 17 » or « 30 » in the middle right of the UI Actuator (XM430-W210-R) - Push-button (NO, normal open), 0=open, 1=close : - When push button = 1 during >0.1s and UI set on semi, it rotate 1 time the actuator (+60º, then -60º) - When push button = 1 during >0.1s and UI set on burst, it rotate 3 times the actuator (+60º, then -60º, then +60º, then -60º, +60º, then -60º) . - When push button = 1 and UI set on full, it rotate the actuator (+60º, then -60º, then +60º, then -60º…) , it stop when push button = 0 - If aX=0 and push button is pressed no rotation of the actuator. For any mode (semi, burst, full). - If induction micro switch is activated and push button is pressed no rotation of the actuator. For any mode (semi, burst, full). - For each time the actuator rotate, the aX number is decremented from 1. - For each time the actuator rotate, the circle on the middle of the screen goes green during 0,25s. - Semi, burst or full modes are selected by positioning as bigger (like in abode XD prototype) Rangefinder (BP-DS-24 A02) : - UI gets a data from the rangefinder - UI convert rangefinder data to show a distance (0.3-12m) on the upper right corner of the interface. - UI adjust the size of a circle in the middle of the UI Micro Switch (NO, normal open), 0=open, 1=close : - UI show message « Empty » on the lowest middle part of the screen if aX=0 and the micro switch =1 during more than 1s message « Empty » diseapear when aX >0 and the micro switch = 0 - UI show message « Jam » on the lowest middle part of the screen if aX is >0 and the micro Switch = 1 during more than 1s message « Jam » diseapear when aX >0 and the micro switch = 0 UI Specificity : - UI needs to be full screen. - UI needs to be operated with the touch screen. - UI get a light and dark mode (like smartphone) changing as changing camera, camera 1 = day mode, camera 2 = dark mode. - UI buttons are 50% transparent to allow a better comprehension of the video stream. - UI can be lock and unlock with a password (9876). - UI get recording button that active recording of the active video feed on a file.