Relay Features
5V/12V/24V 1 Channel Relay Module with Optocoupler Isolation High and Low Trigger(Red Board)

1.the module uses genuine quality relay, normally open interfaces Maximum load: AC 250V / 10A, DC 30V / 10A;
2.SMD optocoupler isolation, strong driving ability, stable performance; trigger current 5mA;
3.the module voltage 5V, 12V, 24V to choose from;
4.the module can be set high or low triggered by jumper;
5.fault-tolerant design, even if the control line is broken, the relay will not operate;
6.power indicator (green), relay state indicator (red)
7.interface design user-friendly, all interfaces are available through the wiring terminal direct connection leads, very convenient
8. module size: 50mm * 26mm * 18.5mm (L * W * H)
9. has 4 mounting bolts holes, hole 3.1mm, 44.5mm * 20.5mm spacing
Dimmer
TUTORIAL
https://robotdyn.com/info/category/ac-power-control.html
Library and sketch examples:
Dimmer Library (RBDdimmer.h):https://github.com/RobotDynOfficial/RBDDimmer
Discussion and support on FB:https://www.facebook.com/342167936199454/posts/623343184748593/
Video channel:https://www.youtube.com/channel/UCh3PdwD_x7tg5sUUt3EfpfQ/videos

AC Dimmer Module for PSM control, 1 Channel, 3.3V/5V logic, AC 50/60hz, 220V/110V~600V
Product Overview
The AC Dimmer is designed to control the alternating current voltage, which can transfer current max 8A but we don't recommend up power to this level). In most cases, Dimmer is used to turning power ON/OFF for lamps or heating elements, it can also be used in fans, pumps, air cleaners, e.t.c.
Lately, Dimmer has become an often used decision for the smart home systems. For example, when you need to smoothly change the light brightness. The lamp is slowly turning ON or OFF, creating a comfortable atmosphere. Dimmer works most effective with filament lamps. It’s less stable with low brightness LED lamps, but with moderate and high brightness it will perform a solid job. Note that luminescent lamps (gas discharge lamps) do not support dimming.
Power part of dimmer is isolated from the control part, to exclude the possibility of high current disruption to a microcontroller.
The logical level is tolerant to 5V and 3.3V, therefore it can be connected to the microcontroller with 5V and 3.3V level logic.
In Arduino, the dimmer is controlled with RBDdimmer.h library, which uses external interrupts and process time interrupts. It simplifies the code writing and gives more processing time for main code. Which is why you can control multiple Dimmers from one microcontroller.
You can download RBDDimmer.h library and a few examples in «Documents» or on GitHub. We are constantly updating our library, so we recommend to check for the website updates or subscribe to our newsletter.
Dimmer is connected to Arduino controllers via two digital pins. First (Zero) to control the passing of Phase Null of AC, which is used to initiate the interrupt signal. Second (DIM/PSM) to control (dim) current.
Note that Zero requires connection to designated microcontroller pins (which are different depending on the model of Uno, Nano, Leonardo, Mega), since it tied to microcontroller interrupts.
Theory:
Dimming can be achieved by Pulse Skip Modulation:
Method 1 — One or more cycles (sine wave signal) are transferred to the load while following one or several cycles are blocked.
Method 2 — Partial transferrence of each sine wave to the load.
Method 3 — Generation of modulated full sine signal of different frequency up to few hundred Hertz. This method requires specialized powerful AC generators with different modulation.
Methods 1 and 2 are the easiest to execute with the help of a Dimmer and program code: in both cases, there is a need of circuit that detects the zero crossing and can control a TRIAC.