In this blog we would like to show you how to install Tasmota Esp8266 firmware on Armtronix Single dimmer board using windows operating system
To load a new firmware into Armtronix Single dimmer you will need the following hardware.
This Hardware has a Esp8266 and Atmega328 so you have to flash both the controllers.
So now lets start with Esp8266, to flash the Esp8266 you need a usb to serial convertor and the connections are shown below and you need to remove both the jumpers on J1 header.
Make sure the Armtronix Dimmer is totally disconnected from any mains power, J1 Header is used to upload the firmware to ESP or atmega through the FTDI Module.
To upload the new firmware to esp using FTDI make the following connection.
(Note that CTS is NOT DTR or RTS , some modules come without DTR or RTS, make sure that you purchase the ones that come with these two pins )
- Connect the RX of FTDI to TXDE (pin 1) of J1
- Connect the TX of FTDI to RXDE (pin 3) of J1
- Connect the RTS of FTDI to RTSE (pin 7) of J1
- Connect the DTR of FTDI to DTRE (pin 5) of J1
- Connect the Vcc5V of FTDI to VCC 5v (pin 1) of J3
- Connect the GND of FTDI to GND (pin 3) of J1 or J3
Now download the latest tasmota Firmware and Flash download tool for esp8266 from the below link
Tasmota bin file : http://thehackbox.org/tasmota/release/
Flash Download Tool : https://www.espressif.com/en/support/download/other-tools
Now Connect the Ftdi module to Usb and open Flash download tool and clickon Esp8266 button as shown in below fig.
After clicking on Esp8266 button another dialog box will appear as ref below fig.
When the above dialog box will appear select SPI Download tool tab and select the bin file and enter the address as 0x0000 and select the particular bin file and SPI mode must be Dout,Flash size 32Mbit and select the appropriate COM port.
Before burning the tasmota firmware you have to erase the stock firmware by clicking on Erase button and after erasing is finished click on start, wait until finished.
Now Esp8266 has been loaded with tasmota firmware now you have to burn atmega with the new firmware follow next step.
Step 3 :
So now lets burn the new code on atmega, so you will need Arduino IDE and the code with a dependent libraries
Arduino IDE : https://www.arduino.cc/en/main/software
if resistor r24 is placed at the bottom of the boards, then use code 1 else use code 2.
Before that you have to change the header setting, connect the ftdi as follows.
To upload the new firmware to esp using FTDI make the following connection
- Connect the RX of FTDI to TXDA (pin 4) of J1
- Connect the TX of FTDI to RXDA (pin 2) of J1
- Connect the DTR of FTDI to DTRA (pin 6) of J1
- Connect the Vcc5V of FTDI to VCC5v (pin 1) of J3
- Connect the GND of FTDI to GND (pin 3)of J3
Burn the Atmega code which supports tasmota using arduino IDE and the code link is given above
before uploding in the tools menu of arudino you have to select board as Arduino uno and Click on tools tab, move mouse pointer to “Programmer: “Arduino as ISP’”, under this click on “Arduino as ISP” and select proper COM port and the click on Upload and make sure you have added TimerOne library from the above link.
Step 4 :
After programming it remove the programmer and place the jumper to its original position i.e.
- Connect the RXA (pin 2) of J1 to TXDE (pin 1) of J1
- Connect the TXA (pin 4) of J1 to RXDE (pin 3)of J1
As Shown in the below image.
So after the jumpers are placed you can turn on the device with the AC supply, After few seconds a Acces point will host with the name Armtronix or sonoff followed by last four digits representing mac address as shown in below image.
So one you will connect to the Access point, open you browser and type 192.168.4.1 and the below page will be loaded for configuration.
After entering your ssid and password click on the save button, once save button is pressed you will see the below changes
Once your device is configured you must find the ip address of the device by logging into your router or you can use fing app, one you know the Ip address enter it in your browser connected to the same network to which you had configured the device earlier and you will get the following
finally you have to configure the device module by clicking on configuration button.
And then on configure module
Select ARMTR Dimmer (56) from the dropdown menu and click on save and the device restarts.
And its Done!!!