Behaviours: gen_server
.
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 1: ON/OFF control (connected to GPIO). Pin 5: Ground (GND). Pin 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 with1> grisp:add_device(gpio1, pmod_ssr).
off/0 | |
on/0 | Turn the relay on and off. |
off() -> ok | {error, any()}
on() -> ok | {error, any()}
Turn the relay on and off.
2> pmod_ssr:on(). okTo turn back off, use:
3> pmod_ssr:off(). ok
Generated by EDoc