HRLV Maxsonar-EZ MB1013 sonar sensor UART
example
Requirements
a. Hardware Requirements
i. 1 ESP32 or ESP32S3 flashed with EzloPi firmware
ii. 1 HRLV maxsonar-EZ MB1013 sonar sensor
iii. 4 Jumper wires
b. Software Requirements
i. EzloPi desktop application
ii. Vera mobile application
Circuit connection in ESP32
1. ESP32 Vout +5v
2. UART RX for ESP32
3. ESP32 GND
4. HRLV maxsonar-EZ MB1013 sonar sensor GND
5. HRLV maxsonar-EZ MB1013 sonar sensor Vin +5v
6. HRLV maxsonar-EZ MB1013 sonar sensor RX
7. HRLV maxsonar-EZ MB1013 sonar sensor TX
Adding HRLV maxsonar-EZ MB10123 sonar sensor from EzloPi desktop
application
- Connect the ESP32 to the computer and open the EzloPi desktop application.
- Scan, select and open the serial port, connecting to the ESP32.
- Click on the ‘Add Device’ button as shown below.
- Select the “UART” option from the dropdown menu.
- Configure the LED:
- Give it a name. (“Ultrasonic” as an example)
- Select HRLV maxsonar-EZ MB1013 sonar sensor from dropdown menu.
- Select GPIO pin for RX, GPIO 16 for example.
- Select GPIO pin for TX, GPIO 17 for example.
- Select 9600 baud rate from the dropdown menu as HRLV maxsonar-EZ
MB1013 sonar sensor operates on this baud rate. - Then click “OK”.
- Device name, type, subtype and GPIOs are displayed in the screen; click on “set
config” to burn the configurations to the ESP devices.
- Finally, reset the device by clicking on “Reset”.
HRLV maxsonar-EZ MB10123 sonar sensor in Vera Mobile Application
- Login to the Vera app using username and password
- Identify the device with HRLV maxsonar-EZ MB10123 sonar sensor and click to connect to the device; wait while loading.
-
The HRLV maxsonar-EZ MB10123 sonar sensor connected will be shown in the ‘Devices’ panel.
-
If sonar finds an obstacle less than 500 cm, the icon turns green.
5. If no obstacle is detected, the icon turns gray.