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.

PinFunction
1ON/OFF control (connected to GPIO)
5Ground (GND)
63.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

Summary

Functions

off()

-spec off() -> ok | {error, any()}.

on()

-spec on() -> ok | {error, any()}.