Drivers to control Sequent Microsystems Four Relays four HV Inputs 8-Layer Stackable HAT for Raspberry Pi v4.0+ and Smart Relays with Universal Inputs 8-Layer Stackable HAT for Raspberry Pi
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-configGo 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 gitcd
git clone https://github.com/SequentMicrosystems/4rel4in-rpi.git
cd 4rel4in-rpi/
sudo make installNow you can access all the functions of the card through the command 4rel4in. Use -h option for help:
4rel4in -hIf you clone the repository any update can be made with the following commands:
cd ~/4rel4in-rpi/
git pull
sudo make install
