Introduction: ARMTRONIX WIFI SINGLE Dimmer Board V0.2

Armtronix Wifi dimmer is a IOT board it is designed for home automation.The features of the board are:

  1. Wireless control
  2. Small form factor
  3. On board AC to DC power supp1y 230VAC to 5V DC.
  4. DC virtual switch

The size of the board is 61.50mmX32mm, as its shown in diagram1 ,has a capacity to drive 1 Amps load. The board has the Wifi module and microcontroller(atmega328) which is used to control the triac through HTTP or MQTT. The board has DC virtual switch which can be used to control on and off.

The board also has Power module AC to DC of 100-240VAC to 5V up to 0.6A, triac BT136 and Terminal connector. There is Zero cross detection is also available.There is one triac used both for dimming and for switching.

Step 1: Header Details

The diagram2 gives the details of the headers and terminal blocks

To board 230VAC is applied to the input terminal block and load is applied to the output terminal block.

On the board J3 header is used for the dc virtual switch the header details can be referred form the diagram4.First pin is vcc3.3v, second pin is atmega pin pco for arduino programming we need to use A0 and third pin is ground .For dc virtual switch we are using only second pin i.e A0 and third pin i.e ground , this is mentioned in the diagram3 for connection of virtual switch.

Step 2: Programming Details

J1 Header is used to upload the firmware to ESP or atmega through the FTDI Module, details of headers can be found in the diagram4. After making connection, connect to the USB port to computer and intial we need to install the driver to detect it detect the com port , in this way user can upload the firmware.

To upload the new firmware to esp using FTDI make the following connection

  1. Connect the RX of FTDI to TXDE pin of J1
  2. Connect the TX of FTDI to RXDE pin of J1
  3. Connect the RTS of FTDI to RTSE pin of J1
  4. Connect the DTR of FTDI to DTRE pin of J1
  5. Connect the Vcc5V of FTDI to VCC5v pin of J1
  6. Connect the GND of FTDI to GND pin of J1

Similarly to upload the firmware to the atmega make the following connection

  1. Connect the RX of FTDI to TXDA pin of J1
  2. Connect the TX of FTDI to RXDA pin of J1
  3. Connect the DTR of FTDI to DTRApin of J1
  4. Connect the Vcc5V of FTDI to VCC5v pin of J1
  5. Connect the GND of FTDI to GND pin of J1

After programming both ESP and Atmega we have to establish connection between ESP and Atmega by shorting pins 3-4 of J1 header and 5-6 of J1 header using jumpers setting.

Step 3: Wiring

The wiring diagram is shown in the diagram3 to input terminal block 230VAC Phase(P) and Neutral(N) is given .The output can be used as dimmer to the dimmable light to control the intensity of light and also to control the speed of fan . The output also be controlled via DC virtual switch as shown in the diagram3 GPIO A0 second pin of J3 header of atmega is used for virtual switch and J3 header third pin Ground is also used to connect virtual switch.

For configuration refer this configuration link