0122-23 LED Snake EMO-1WR8
Example Projects > 0122 UniPi 1.1 > 0122-23 LED Snake EMO-1WR8
Controlling relay outputs of the EMO-1WR8
This folder contains the source files for the demonstration project on using REXYGEN on the Raspberry Pi minicomputer with the UniPi extension board and the EMO-1WR8 1-Wire relay module.
The relays of UniPi itself and the relays of the EMO-1WR8 relay board are synchronized in a demo algorithm, which illustrates seamless integration of various I/O devices using REXYGEN.
The ATMT state automaton cycles through 4 states to gradually increase the speed of the "LED snake". The appropriate pulse generator is selected according to the ATMT automaton state. The generated pulses move the snake bit by bit (literally
- bitwise shift to left is used).
- REXYGEN Runtime Core and RPiDrv modules must be installed and running on the Raspberry Pi.
- Owserver (part of the OWFS package) must be installed, correctly configured and running on the Raspberry Pi.
- I2C bus must be enabled on the Raspberry Pi.
- The EMO-1WR8 relay board must be connected.
Running the example
- The *exec.mdl file is the project main file, open it with REXYGEN Studio.
- Specify the 64-bit ROM ID of the EMO-1WR8 relay board. See the 1-Wire driver manual below.
- Compile and download the project to the target device.
- Press F1 for help on the selected function block in the REXYGEN Studio.
- Getting started with REXYGEN and UniPi board (Raspberry Pi)
- RPiDrv - Raspberry Pi driver (including PiFace Digital, UniPi v1.1 Intellisys PIO)
- OwsDrv - 1-Wire driver
- REXYGEN Studio User Guide
- Function blocks of REXYGEN
- More info about the UniPi board can be found at unipi.technology.
- Raspberry Pi is a trademark of the Raspberry Pi Foundation.
- 1-Wire is a trademark of Maxim Integrated.
- Visit the REXYGEN webpage for more information about the example projects and developing advanced automation and control solutions using REXYGEN.