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).

Prerequisites

  • 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.

Documentation

Additional information