Sequent sells a HAT that can read a rotary encoder

MGLove

New member
do you know if Sequent sells a HAT that can read a rotary encoder and can I stack different HATs (I am currently using a V3 ).I tried to have the encoder directly to the inputs and I think due to the speed of the encoder the PI misses pulses as the speed goes up.
Thanks<ken
 

MGLove

New member
Thank you the 4 relay/4 inputs looks prefect but will I be able to stack in on my current V3 HAT. I didnt know that you could combine different HATs
 

MGLove

New member
I have the Industrial Automation 8 Layer HAT on the PI (layer 0)now and would like to add the 4 relay/4 input on top as layer 1
 

alexburcea

Moderator
Staff member
Yes, you can and because they have different I2C address, you can use layer 0 as well.
The layer or stack level does not refer at the actually level in top of raspberry but the I2C address of the card (the jumpers actually change that address)
 

MGLove

New member
Sorry to bother again but I can not install as the second board on the Pi(or stack 1) jumper in position 1
error below
>>> rel = sm_4rel4in.SM4rel4in(1,7)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.9/dist-packages/sm_4rel4in-1.0.5-py3.9.egg/sm_4rel4in/__init__.py", line 44, in __init__
File "/usr/local/lib/python3.9/dist-packages/smbus2-0.4.2-py3.9.egg/smbus2/smbus2.py", line 280, in __init__
self.open(bus)
File "/usr/local/lib/python3.9/dist-packages/smbus2-0.4.2-py3.9.egg/smbus2/smbus2.py", line 310, in open
self.fd = os.open(filepath, os.O_RDWR)
FileNotFoundError: [Errno 2] No such file or directory: '/dev/i2c-7'
 
Top