Hello everyone,
I’m working on a project to monitor a fire extinguisher’s pressure gauge using an OpenMV Cam RT1062 and an Arduino Uno. The system should operate as follows:
- Monitoring Needle Position: The pressure gauge has an orange needle. The safe zone is indicated in green, and the unsafe zone in white. When the needle is within the green safe zone, no action is taken. However, if the needle moves into the white unsafe zone, a buzzer should be triggered to alert for potential issues.
- Light Monitoring: If the ambient light is low, the Arduino should activate an LED to illuminate the gauge for better visibility.
The OpenMV Cam is responsible for detecting the needle’s position and the ambient light level, and it sends signals to the Arduino. The Arduino then controls the LED and the buzzer based on the signals received.
I have some code using RPC communication over UART between the OpenMV Cam and Arduino, but I’m experiencing challenges, such as low frame rates on the OpenMV, which affects needle detection accuracy, and I’m also having issues with the UART communication between the devices.
Any advice on structuring the code or setting up the hardware to implement these functions accurately would be greatly appreciated. Additionally, any guidance on optimizing the frame rate for more reliable needle detection would be incredibly helpful.
Thank you for your assistance!