GMAC Surveillance Robot

GMAC Surveillance Robot: Wi-Fi Controlled Smart Camera Bot
In this project, we build a surveillance robot using the AITinkr AIOT GMAC board, a powerful AIoT development board featuring a built-in OV2640 2MP camera, Wi-Fi connectivity, and support for 2-channel 4-motor control. This enables our robot to stream live video while being remotely controlled over a wireless network, making it ideal for smart monitoring and robotic applications.
The GMAC board is compatible with Arduino IDE and also supports ESP-IDF, providing flexibility for developers to program and customize their robot with ease. Whether you're exploring AIoT, automation, or robotics, this project offers a hands-on experience in wireless surveillance and remote control systems.
AITinkr is a pioneer in creating innovative IoT and robotics solutions.get more information about board and features at AITinkr Platform and AIOTLab Portal.
Let’s get started! 🚀
Supplies

1.AITinkr AIOT GMAC Board with camera
2.MDF board or card board for chassis
3.BO motors (2 pcs )
4.Castle wheel
5.BO motor wheels (2 pcs)
6.7.4V rechargeable Lithium ion Battery with 2pin JST and switch
7.Glue gun and glue sticks
8.Arduino IDE application
>>The AIOT GMAC microcontroller is available for purchase on both Amazon (https://www.amazon.com/) and our official website (https://aitinkr.com/).
Designing the Chassis
1. Mount the rear wheels and connect them to the DC motors.
2.Attach the caster wheel in the front for balance
Installing Motors and AIOT GMAC Board


Fix the DC motors and AIOT GMAC Board to MDF Board using glue gum as shown in the figure
Pin Diagram

Please refer to this pin diagram as a guideline for proceeding with the next steps.
Connecting the Motors to AIOT GMAC Board

Connect the motors to AIOT GMAC Board as shown in the figure
Connecting the Battery to AIOT GMAC Board

Connect the "7.4V rechargeable Lithium ion Battery with 2pin JST and switch" to AIOT GMAC Board as shown in the figure
Coding & Wi-Fi Setup 1st Step

Please search for "ESP32" on the boards platform, select the ESP32 board by Espressif Systems, choose version 2.0.17, and proceed with the installation,as shown in figure.
2nd Step

Go to the "Tools" menu, select "Board Arduino Uno" for the Arduino Uno configuration. Then, select the ESP32 , select "ESP32S3 Dev Module" under the "Board" menu,as shown in figure.
3rd Step


Click on the "Tools" menu, select "USB CDC On Boot," and choose the "Enabled" option, and select "PSRAM:QSPI PSRAM" and choose the "QSPI PSRAM" option ,as shown in figure.
4th Step

Go to the "Tools" menu, select "Port," and then choose the GMAC port (COM5) as shown in the figure.
5th Step

Copy the provided code, paste the code into the sketch editor, verify and compile for errors, then upload it to the board by clicking right side arrow , as shown in figure.
CODE:
Downloads
6th Step

After uploading the code,open the Serial Monitor by clicking the magnifying lenses icon, then check the output in the Serial Monitor window to verify if the web server and mDNS responder started successfully or if any errors appear.
Connecting to Mobile

To connect your mobile device, first enable Wi-Fi and connect to the "GMAC Surveillance Robot" network. Then, open a web browser and navigate to the URL: http://robot.local/. Once the page loads, you will see the control interface and live video feed, allowing you to operate the robot directly from your mobile device,as shown in figure.
Testing & Troubleshooting
- Better to turn off mobile data on smart phone before connecting to robot.
- If the robot is not functioning properly, please rebuild it by following the steps carefully. Alternatively, you can contact us for assistance by messaging us through our website at https://aitinkr.com/.