Arduino App Lab: Servo movement fails during Object Detection on UNO Q

Hi everyone,

I am using Arduino App Lab with an Arduino UNO Q. My project involves a USB Webcam, the Object Detection Brick, and a PCA9685 to control servos.

The Issue: The vision system is working correctly—the camera LED is on and the Python console shows successful detections. However, I cannot get the servos to move based on these detections.

Technical Details:

  • Environment: Arduino App Lab (Web-based IDE).
  • Communication: I'm using sys.stdout.write in the Python script to send commands to the Arduino Sketch.
  • Hardware: PCA9685 connected via I2C. External 6V power is supplied to the PCA.
  • Symptoms: Servos sometimes vibrate but don't move to the commanded positions (90°, 120°, 180°).

I suspect there might be a conflict between the Object Detection Brick and the I2C bus communication, or perhaps a baud rate mismatch in the virtual serial bridge provided by App Lab.

Has anyone successfully linked the Object Detection output to a PCA9685 inside App Lab? Are there specific I2C pins or internal configurations I should be aware of for the UNO Q in this environment?

Any guidance would be helpful. Thank you!"

You should use bridge.call() to send commands to sketch

1 Like