In this tutorial, we will show you how to configure and remotely control relays via additional user's web interface.
4 channel relay board
IDC plug 2x3
ribbon cable (6 cores)
3D printed cover
Connect to the Rover through SSH
Make sure the Rover is connected to the internet
In the tutorial we are using hSens1 port to connect relays to the board.
Connect the relay board to hSens1 port using IDC plug. Pins 1-4 are for signals, 5 is +5V and the last one is GND.
Make sure you are in the home directory (
/home/husarion) and type:
The process of flashing should begin. After it completes, type:
sudo systemctl restart leo
to restart ROS serial node.
cd /optgit clone https://github.com/LeoRover/leo_ui_sample_relay.git
Find a directory /etc/nginx/sites-available and create there leo_ui_sample_relay file by copying it from leo_ui
cd /etc/nginx/sites-availablesudo cp leo_ui leo_ui_sample_relay
Open the created file
sudo nano leo_ui_sample_relay
and make changes in the lines as below
listen 80 default_server; ==> listen 90 default_server;listen [::]:80 default_server; ==> listen [::]:90 default_server;root /opt/leo_ui; ==> root /opt/leo_ui_sample_relay;
systemctl restart nginx