Flashing TASMOTA Firmware on the Sonoff Basic

DrZzs & GrZzs
DrZzs & GrZzs
253.4 هزار بار بازدید - 7 سال پیش - UPDATED VERSION of this VIDEO
UPDATED VERSION of this VIDEO here: UPDATED: get HASSIO and Tasmotized So...

Here's a link to the easiest method I've seen for flashing a sonoff.  
Thanks Pete! Simplest way to flash ESP8266 and Son...

www.DrZzs.com
for Product Links

I'll leave this description here for posterity, but the process has change.  Refer to the new video above for the updated and improved process.
Thanks!
----------

Sonoff switches are one of the best deals in Home Automation.  A wifi chip with a relay that is powered by 110v for $5! And the BEST part is how flexible and capable they become when you flash them with TASMOTA firmware, which makes them easy to connect and control with Home Assistant.

Here are some links to buy Sonoff Basics:
https://www.itead.cc/sonoff-wifi-wire...

Gotta give all the credit here to Theo Arends. He’s done us all a huge service by creating this firmware. Sonoff should totally pay him a gagillion dollars and start loading his firmware on all their boards.  

There are several guides that describe how to flash the firmware on these boards:

Quickpi - TUTORIAL: Install Sonoff-Tasmota Firm...
Bruh - SONOFF - A $5 Alexa-Controllable, WIF...
SuperHouseTV - SuperHouse #21: Six Sonoff Secrets: S...

I tried 4-5 different methods.  What I finally got to work was using the Arduino IDE on Windows. I tried using Atom and PlatformIO, but kept getting errors. I tried Arduino IDE on my mac, but that didn’t work either.  Here are the steps that finally worked for me:

Download latest TASMOTA Source Code zip file and extract it
https://github.com/arendst/Sonoff-Tas...

Download Arduino IDE and extract it
https://www.arduino.cc/en/Main/Software

Find the arduino.exe file and in the same folder, make a new folder called “portable”

Open the Arduino IDE. Go to File-Preferences-Additional Board Manager and add this URL:
http://arduino.esp8266.com/versions/2...

Under Sketch-Include Library-Manage Libraries search for and install ArduinoJson and PubSubClient

In the “portable” folder you created go to sketchbook-libraries-PubSubClient-src- PubSubClient.h open it with Notepad++ or another code editor and change “MQTT_MAX_PACKET_SIZE” to “512”. Save and exit.

In Arduino IDE go to the folder where you extracted the TASMOTA firmware, find sonoff-sonoff.ino and open it.

Find the “user_config.h” tab at the top and make theses changes:

Project is where it will define the MQTT topic.  So if you have more than one of these add a number to the end of each.
Enter your Wifi name and password
Enter your MQTT broker IP address, port, username and password

Go to the Sonoff.ino tab again. Then under Tools set these settings:
Board: Generic ESP8266 Module
Flashmode: DOUT
Freq: 40
CPU: 80
Flash: 1M (64K SPIFFS)
Upload speed: 115200
Port: Com (whichever number appears after you’ve connected the adapter and Sonoff)

Set up and connect the Serial to USB converter.
Buy here: http://amzn.to/2k1qC4B
Make sure the adapter is set to 3v.
Connect 4 Jumpers: 3v, Gnd, Tx, Rx.
Tx (transmit) from the USB to Serial converter goes to Rx (receive) on the Sonoff, and vice versa.

Leave the 3v wire free, hold the button on the sonoff, then connect the 3v wire. There will likely be a sound when Windows detects the new device.

Now Upload the sketch. The sonoff light should blink when it is done.

Congratulations! You did it! Hopefully

0:00 Introduction
1:05 Get some Sonoffs
1:14 FTDI Usb to TTL Serial Adapter
1:21 Hardware Setup
2:19 Now prep the Software
2:25 download & extract TASMOTA
3:04 find Arduino.exe
3:21 create new "Portable" folder
3:31 start Arduino.exe
3:39 copy/paste Board Manager URL
4:07 go back to Portable folder
4:16 sketchbook/libraries/pubsubclient/src
4:34 change Max packet size to 512
4:45 open Sonoff.ino
5:05 edit user_config.h
5:14 add Your WIFI name & pw
5:22 add your MQTT broker name & pw
5:54 for multiple Sonoffs change Project name
6:16 Project name sets MQTT topic
6:34 Settings for Upload
7:07 Connect USB adapter to Sonoff
7:31 the Upload

IMPORTANT LINKS:
https://drZzs.com
#DrZzs

Discord help from the Pixelheads: Discord: discord
#wLED Discord: Discord: discord

https://www.drzzs.com/shop
https://drzzs.com/products/
https://www.amazon.com/shop/drzzs

Social Media:
Discord DrZzs - https://discord.me/drzzs
DrZzs Facebook Page: https://fb.me/DrZzs
Message: https://m.me/DrZzs
Group: Facebook: 1969622823351838
Discord Home Assistant - Discord: discord
Twitter: Twitter: Dr_Zzs
Instagram: Instagram: drzzs
7 سال پیش در تاریخ 1396/08/22 منتشر شده است.
253,494 بـار بازدید شده
... بیشتر