Jetson Nano remote control servo gimbal

Note: ESP32 camera needs to be burned with factory firmware. If you have not flashed the firmware after receiving the ESP32 camera, you do not need to do so. The factory default firmware is used

1. Experimental preparation

2. Wiring diagram

Note: Because Jetson Nano has only one serial port, an external USB to TTL converter is required. Because of insufficient voltage, ESP32 camera and 24-way servo driver board need additional power supply via type-c data cable

Jetson Nano motherboard ----> USB to TTLESP32 camera
TXRX
RXTX
GNDGND
NC5V
Jetson Nano motherboard24-channel servo driver board
GPIO8RX
GPIO10TX
GNDGND
5V5V
24-channel servo driver boardServo
s5Vertical servo
s6Horizontal servo

Physical connection diagram:

image-20250121195906756

Pin diagram:

image-20250121182745123

3. Experimental steps and results

Quick method: You can directly connect to the wifi opened by esp32. This experiment is named ESP32_WIFI_TEST. Then the IP address camera information of the mobile app is 192.169.4.1, and you can use the app to control the servo

  1. Upload the provided program source code "nano_servo.py" file to your own x5 motherboard.

  2. The official image of the nano motherboard needs to give serial port permissions every time it is turned on (note that this permission will also be closed after shutdown). Enter in the terminal,

  1. Open the code just uploaded and modify it to the wifi name and password you want to connect to. The hotspot name can also be modified, as well as the corresponding wifi mode.

image-20250114190657145

  1. Run the program in the terminal, and the IP address of the current network connection and the address of the hotspot will be returned

image-20250121200134063

  1. Use the app to control the movement of the car. After installing the "ESP32Cam" app, open it.

image-20250122112511164

image-20250122112518346

Horizontal screen

image-20250122112526198

Note: Every time you restart the app, you need to click the exit button in the upper right corner, then exit and reconfigure the IP address information before logging in