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:
- Wireless control
- Small form factor
- On board AC to DC power supp1y 230VAC to 5V DC.
- 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
- Connect the RX of FTDI to TXDE pin of J1
- Connect the TX of FTDI to RXDE pin of J1
- Connect the RTS of FTDI to RTSE pin of J1
- Connect the DTR of FTDI to DTRE pin of J1
- Connect the Vcc5V of FTDI to VCC5v pin of J1
- Connect the GND of FTDI to GND pin of J1
Similarly to upload the firmware to the atmega make the following connection
- Connect the RX of FTDI to TXDA pin of J1
- Connect the TX of FTDI to RXDA pin of J1
- Connect the DTR of FTDI to DTRApin of J1
- Connect the Vcc5V of FTDI to VCC5v pin of J1
- 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
41 Comments
Question 3 years ago on Introduction
Hello I have a problem with version 0.3 of the dimmer board, do I need to set the switch j3 pin as a button function? It's possible ? Holding the button down I raise or lower the intensity of the light.
Thanks Leonardo
Answer 3 years ago
is it with micro controller .
plz refer to the below link for more info
http://armtronix.net/2019/04/18/loading-tasmota-fi...
Reply 3 years ago
Thank You
Reply 3 years ago
Flashing the tasmota and atmel firmware now how do I turn the switch j3 from a push button switch.
thank you
Reply 3 years ago
can you plz email us . There are two types of 0.3 version (one with atmega and the other without ).Tasmota is only for the version with microcontroller . plz email us on sales@armtronix.in . Some one from our team will be able to guide you
4 years ago
Dear sir i have one of this board. i want to know how to connect with google home assistant in this board can you please help me with mqqt setting as it asks.
mqtt broker ip/DNS
Mqtt Publish topic
Mqtt subscribe topic
what to fill in this. i do have some key and user name from adafruit where to place which i dont know please help
Reply 4 years ago
you cant directly connect it with google home . You need openhab to do that . For mqtt you need a broker
Reply 4 years ago
Can you please give an example i am not aware about that how to connect directly to google home actually i dont know what to fill in the required fields
Reply 4 years ago
plz refer to this
https://www.instructables.com/id/Installing-MQTT-B...
also there are lot of online info available regarding it .
for some details you can refer to our you tube channel
https://www.youtube.com/results?search_query=armtronix
Question 4 years ago
Hi I've just purchased one of these and the layout is slightly different, not a problem overall, but the programming pins are now only a 4x2 and not 5x2 as the diagram above. Do you have an up to date reference chart for the pins please! Thanks
Answer 4 years ago
ignore me - a bit more searching https://github.com/wvdv2002/Wifi-Single-Dimmer-Board/blob/master/Wifi-Single-Dimmer-Board/Document/A0004_Wifi_One_Dimmer_1A_Board.pdf
Reply 4 years ago
so pin configuration found, but the thing I can't work out is how to put this into flashing mode. I've tried ever combination of holding the button and power, as well as J1 jumper on and off. Every time, the little blue led just keeps intermittently flashing at me and the warning: espcomm_sync failed error means that something is wrong. I've got a UART with DTR and CTS (not RTA) but from my reading I think it's the same thing. Any help would be appreciated.
Reply 4 years ago
It has the auto reset function circuit . So u don't need to press any button.
From the above comment u have the wrong USB to uart converter , meaning u need DTR , RTS not CTS . RTS is not equal to CTS . Also the board comes pre loaded so u can first test the board than change the code .
Reply 4 years ago
Thanks for setting me right on that. I got a new UART with RTS and DTS and connected everything up as per the instructions, but I still get the same errors:
warning: espcomm_sync failed
error: espcomm_open failed
error: espcomm_upload_mem failed
*** [upload] Error 2
I'm using PlatformIO not Arduino IDE but I've successfully flashed a different ESP module using this set up so I'm fairly sure it's not code or my hardware related. Any tips?
Also, I can see the ESP working through the monitor screen, so I know there isn't anything wrong with the board or the coms link - but perhaps I'm not doing the RTS DTS connection right?
Reply 4 years ago
Chk what type of a board you are picking from the board manager , board should be nodemcu 0.9 or nodemcu 1.0 .
Reply 4 years ago
yes, it's the node MCU 0.9
I even see the ESP blue light flash a couple of times when the upload tries to start.
Reply 4 years ago
Unless there is some wrong connection or on connecting CTS last time some transistor has gone bad it should upload without any issue . The other way is to use generic esp as the board . Short gpio0 to ground reset/ power on the board while doing it should help you in uploading. You plz share some photos of it via watsapp . You can get our watsapp number from the website armtronix.in
4 years ago
I have flash the esp with tasmota devlopement firmware and also atmel328p with the ino file https://github.com/armtronix/Wifi-Single-Dimmer-Board/tree/master/Wifi-Single-Dimmer-Board/Arduino_Code/Atmega_Single_dimmerV0_5 but i still cant control with tasmota software could you give me a help in that way i think this board is so good for domotic projects
Reply 4 years ago
use https://github.com/arendst/Sonoff-Tasmota they have already integrated it
or share you email address so that i can send you our version
https://github.com/arendst/Sonoff-Tasmota/wiki/Arm...
for atmegacode :https://github.com/wvdv2002/Wifi-Single-Dimmer-Board/blob/master/Wifi-Single-Dimmer-Board/Arduino_Code/Atmega_Single_dimmerV0_6/Atmega_Single_dimmerV0_6.ino
Reply 4 years ago
Hi IOUNESSD,
can you post the steps to flash Tasmota on the board, do you need to flash the Atmega also or just ESP?
Thanks.
Br,
Vuko