View Source pmod_ssr (grisp v2.8.0)
PmodSSR module.
The Pmod SSR (Solid State Relay) module is designed to control high-power devices using a GPIO pin from a GRiSP board.
Pin | Function |
---|---|
1 | ON/OFF control (connected to GPIO) |
5 | Ground (GND) |
6 | 3.3V Power Supply (VCC) |
This relay can be switched on or off by sending a control signal through a single GPIO pin (minimal setup needed for controlling high-power loads). The driver allows you to easily turn the relay on and off through simple commands.
Start the driver with
1> grisp:add_device(gpio1, pmod_ssr).
Examples
To turn on, use:
2> pmod_ssr:on().
ok
To turn back off, use:
3> pmod_ssr:off().
ok