GPIO (Relays and Digital Inputs): J21

The socket J21 provides an 8-channel relay controller and 8 digital inputs.

Pinout

Relay 0 to Relay 7 are the control outputs for up to 8 relays. These switch to ground:

In 0 to In 7 are digital inputs. These can be used, for example, to detect the presence of a voltage or to check the state of a relay or button. The inputs are protected against overvoltage and ESD. The threshold voltage is approximately 2.7V.

Control via App

In the app, relays and digital inputs are provided via the gpio driver and can be controlled, for example, using the Toggle widget.

A relay output can be switched on for a specific duration. For example, a Button widget can be used for this. The command value specifies the state to switch to and the duration of activation, e.g., true,5000 to turn on the output for 5 seconds:

All product and company names, brand names, and trademarks are the property of their respective owners. They are used on this site solely to identify the respective products for compatibility and integration purposes. Their use does not imply any affiliation with, sponsorship by, or endorsement by the respective trademark holders. WomoNET is an independent project and is not affiliated with any of the listed manufacturers.