Embed Dimmer Module, for DIY microcontrollers projects

Embed Dimmer Module, for DIY microcontrollers projects

AC Dimmer Module, 1 Channel, 3.3V/5V logic, AC 50/60hz, 110V~400V

AC Dimmer Module, 1 Channel, 3.3V/5V logic, AC 50/60hz, 110V~400V

DIY IoT AC-Dimmer KIT, ESP8266 Wi-Fi D1 Mini for AC 110~240V dimming control.

This KIT for the development an IoT projects for smart control of AC power load.
As low as $7.90
Availability: In stock
SKU
Mod-IoTESP8266DimAC-8A-1L

This KIT for the development an IoT projects for smart control of AC power load.

The KIT includes the: Dimmer module for load 8A; AC-DC power supply module for AC IN 90~240V; ESP8266 D1 Mini module (variations).

 

Variations:

  • ESP8266D1MiniPRO - with ESP8266 D1 MiniPRO WiFi microcontroller board (USB CP2104, Flash 4MB), compatible with all OS
  • ESP8266D1Mini - with ESP8266 D1 MiniPRO WiFi microcontroller board (USB CH340, Flash 4MB). !!!For install of the driver CH340 to iOS, need root access.
  • No ESP8266 D1Mini - WithOut ESP8266 microcontroller board (you can use any WeMos D1 Mini board).

Library:

Dimmer Library (RBDdimmer.h): https://github.com/RobotDynOfficial/RBDDimmer

 

This library can simplify user code with the following functions:

1. Function dimmerLamp - this function initializes the number of operating pin and is defined by the user
Example:
dimmerLamp dimmer(4, 2); dimmer output DIM/PSM is initialized on the pin 4 and zero-cross initialized on pin 2.

2. Function begin port initialization, timer and external interrupt from zero-cross.
Example:
dimmer.begin(NORMAL_MODE, ON/OFF); port initialization, work mode choice, ON/OFF.
Parameter 1: dimmer working modes consist of two choices - NORMAL_MODE and TOGGLE_MODE
a. NORMAL_MODE to make dimmer work in defined value from 0 to 100 (%) (integer)
Example of this mode located in \RBDdimmer\examples\SimpleDimmer
b. TOGGLE_MODE smooth change of dimming value up or down in a defined range.
This solutions implies change of dimming values by means of hardware timer, without using the cycle code.
Example of this mode located in \RBDdimmer\examples\SimpleToggleDimmer

Parameter 2: ON/OFF.
a. ON - turns timer ON, allows to use dimmer.
b. OFF - turns timer parameters OFF, prevents the use of dimmer.

3. Function setPower sets dimming value from 0 to 100%
Example: dimmer.setPower(90);

4. Function getPower to display current dimming value
Example: Serial.print(dimmer.getPower()); Result 0~100 int

5. Function setMode sets and changes the work mode (NORMAL_MODE and TOGGLE_MODE)
dimmer.setMode(NORMAL_MODE/TOGGLE_MODE)

6. Function getMode displays values of current work mode
Example: Serial.print(dimmer.getPower()); Result 0 (NORMAL_MODE) or 1 (TOGGLE_MODE)

7. Function setState sets dimming state ON/OFF
Example: dimmer.setState(ON); delay(100); dimmer.setState(OFF);

8. Function getState displays current state of dimmer
Serial.print(dimmer.getState()); Result 0 (OFF) or 1 (ON)

9. Function changeState changes dimmer state to the opposite one
Пример dimmer.setState(ON); delay(100); dimmer.changeState; delay(100);

10. Function toggleSettings smooth change of dimming value up or down in a defined range
Example located in \RBDdimmer\examples\SimpleToggleDimmer

 

 

Write Your Own Review
Only registered users can write reviews. Please Sign in or create an account
Fill in your delivery details to check available shipping options and calculate rates for this product. Total delivery fee for your order, you can find in cart.