Support Forum

Share your projects and post your questions

Register   or   Sign In
The Forum

Detect rising edge

The IO Pi Plus is a 32 channel MCP23017 GPIO expander for the Raspberry Pi

30/08/2023

Posted by:
jan

jan Avatar

Hello,
I use RPI 3B+ and IO zero 32. I wanted to ask if there is a way to detect the rising edge similarly to GPIO.
Thank you

31/08/2023

Posted by:
andrew

andrew Avatar

Hello

There is no direct way to detect a rising edge on the IO Zero 32. There are interrupt pins on the IO Zero 32, but they trigger on both rising and falling edges.

One way to detect when a pin goes high would be to connect an interrupt pin on the IO Zero 32 to a GPIO pin on the Raspberry Pi and enable interrupts on the GPIO pin. Add an interrupt trigger function to the GPIO pin so when a pin on the IO Zero 32 changes state, the GPIO interrupt is triggered on the Raspberry Pi, and you can read the state of the IO pin on the IO Zero 32 to see if it has gone high or low.

We have a tutorial in our Python library that shows how this can be done. You can find the tutorial here.

Sign in to post your reply


Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view.
Download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.

Home

Shop

Learn

Forum

FAQ

Contact

0 item

Your cart is empty

Please browse our shop to order from the wide range of Raspberry Pi boards and accessories.

Subtotal:£0.00
View Basket Continue to Checkout