Module pmod_ssr

PmodSSR module.

Behaviours: gen_server.

Description

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 with
 1> grisp:add_device(gpio1, pmod_ssr).

Function Index

off/0
on/0Turn the relay on and off.

Function Details

off/0

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

on/0

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

Turn the relay on and off.

Examples

To turn on, use:
 2> pmod_ssr:on().
 ok
To turn back off, use:
 3> pmod_ssr:off().
 ok


Generated by EDoc