Skip to content

SequentMicrosystems/4rel4in-rpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

4relind-rpi

4relind-rpi

4rel4in-rpi

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.

Setup (first usage of a Sequent Microsystems card)

  • 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

Install

cd
git clone https://github.com/SequentMicrosystems/4rel4in-rpi.git
cd 4rel4in-rpi/
sudo make install

Usage

Now you can access all the functions of the card through the command 4rel4in. Use -h option for help:

4rel4in -h

Update

If you clone the repository any update can be made with the following commands:

cd ~/4rel4in-rpi/  
git pull
sudo make install

About

Drivers to control Sequent Microsystems Four Relays four HV Inputs 8-Layer Stackable HAT for Raspberry Pi V 4.0 or higher

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors