Drivers to control Sequent Microsystems Four Relays four HV Inputs 8-Layer Stackable HAT for Raspberry Pi V 4.0 or higher
The Version 4.0 of the card adds the following features related to the optocoupled inputs:
- Transitions counts for each input up to 4kHz
- Improved processing of AC input signals.
- Input counters with cumulative or pps (pulse per second) reading of input transitions (up to 4KHz).
- 2 x Quadrature encoder inputs speed up to 4000 pulse per second.
- PWM inputs on each channel, reading the fill factor and frequency less than 1% resolution for signals up to 100Hz and 5% for 500Hz.
- Programmable LEDs for inputs.
- Modbus RTU access for all features.
- Enable the I2C communication:
~$ sudo raspi-config
Go to the "Interface Options">>"I2C" menu and select "Yes"
- Update your Raspberry PI and install the tools you need:
~$ sudo apt-get udate
~$ sudo apt-get upgrade
~$ sudo apt-get install git
~$ git clone https://github.com/SequentMicrosystems/4rel4in-rpi.git
~$ cd 4rel4in-rpi/
~/4rel4in-rpi$ sudo make install
Now you can access all the functions of the card through the command "4rel4in". Use -h option for help:
~$ 4rel4in -h
If you clone the repository any update can be made with the following commands:
~$ cd 4rel4in-rpi/
~/4rel4in-rpi$ git pull
~/4rel4in-rpi$ sudo make install