This tutorial will show you how to connect a generic relay module, flash specific firmware, and launch the additional user's interface.
1-4 channels relay module
IDC plug 2x3
a ribbon cable (6 core)
Connect to the Rover through SSH
Make sure the Rover is connected to the Internet
In case of powering and controlling a relay module, we highly recommend using the hSense1 port.
Connect the relay board to the hSens1 port using the IDC plug. Pins 1-4 are dedicated for signals, pin 5 is +5V and the last one is GND.
We developed a version of the leo_firmware with added features for controlling the relays.
Make sure you have the
git tool installed on your system, then clone firmware repository to any folder on your computer and change the branch to
git clone https://github.com/LeoRover/leo_firmware.gitcd leo_firmwaregit checkout feature/relay
Now, you need to build the firmware and flash it to the Rover. For instructions on how to do it, please follow the Firmware development tutorial:
The next step is to compile the firmware in case of creating the .hex file. Do it according to the first two paragraphs of the Firmware development tutorial. As a result, you should have the
To flash compiled firmware directly from the computer you can follow the third paragraph of the Firmware development tutorial or upload the .hex file to the LeoRover home directory and use the flasher script as described in the Firmware update tutorial.
DOTĄD bym wywalł
leo service to be sure that new topics are registered properly.
sudo systemctl restart leo
The first step of adding the new interface is to clone UI's repository from GitHub to the home directory.
git clone https://github.com/LeoRover/leo_ui_sample_relay.git
In case of launching the additional UI reconfiguration of the nginx service is needed. Follow the tutorial below:
The new interface is available on port 90. To launch it in your WEB browser just type LeoRover's IP address colon port number.