LoRa AC Dimmer

From MakerFabsWiki
Revision as of 02:35, 3 August 2021 by Hefang (talk | contribs) (Hardware test)

Jump to: navigation, search

About the product


AC dimmer is designed to control the alternating current voltage, it is used to control the LED light, electronic heating element and the AC motor. LoRa AC Dimmer module is based on Atmel's Atmega328P to control the dimmer through the PWM signal the MCU generated. The board also features the LoRa module on board that provides a solution for controlling remotely.

This is a special module that Makerfabs had burned the firmware to it before shipping. After receiving the package, it can be controlled to turn on or off, or turn the output by 35% through the Specific command, and it does not require additional programming.

Model:LoRa AC Dimmer

LoRa AC dimmer 001.jpg


  • ATMEL Atmega328P: High Performance, Low Power Atmel®AVR® Classic Microcontroller
  • Speed Grade: 20Mhz
  • Flash: 32KBytes
  • RAM: 2KBytes
  • EEPROM: 1Kbytes
  • Onboard LoRa module
  • Photocoupler, 400V peak off-state voltage
  • With integrated Phase detection and Zero Crossing Detection processing
  • 5V Relay for shutting off absolutely
  • Fuse with 250V and 1.5A


LoRa AC dimmer 002.jpg

Preparation before using

Note: Safety First.

  • Prepare another LoRa terminal for transmitting commands to control the AC Dimmer.

Hardware test

  • Use the oscilloscope to check the output of AC dimmer.
1. When the MCU control the dimmer to turn the output by 0%, the oscilloscope show:
LoRa AC dimmer 004.jpg
2. Turn the output by 20%, the oscilloscope show:
LoRa AC dimmer 005.jpg
3. Turn the output by 45%:
LoRa AC dimmer 006.jpg
4. Turn the output by 83%:
  • There is an onboard relay to shut off the dimmer completely.
LoRa AC dimmer 008.jpg

Using Demo

Overview: Use the Maduino LoRa Radio board to control the light connected with the AC Dimmer remotely.
LoRa AC dimmer 003.jpg

  • Use the CP2104 tool to connect the board with the PC.
  • Program the AC dimmer board by Arduino.
1. You can get the demo code from Github.
2. Open the code with Arduino.
3. Select the development board (Arduino Pro Mini) and the port.
4. Install the library (RadioLib.h) for the LoRa module driver.
5. Remember to modify the frequency to your modules at the code.
6. Verify the code and upload it to the board.
  • Program the Maduino LoRa radio board to be the controller.
1. Get the code from here.
2. Open the code with Arduino.
3. Select the development board (Arduino Pro Mini) and the port.
4. Upload the code to the board.
  • Connect the light to the screw terminals of the output, plug the Live line and Null light to the input with cutting off the power. Please note that all operations must be on the power cutting off.
  • Power on the LoRa AC dimmer.
  • Power on the Maduino LoRa radio board with the Micro USB cable connecting the PC. Open the serial monitor of the Arduino IDE, and transmit the data to control the Dimmer.


You can list your question here or contact support@makerfabs.com for technology support. Detailed descriptions of your question will be helped to solve your question.