Skip to content

Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE or PlatformIO

License

Notifications You must be signed in to change notification settings

pauloromeira/Sonoff-Tasmota

 
 

Repository files navigation

Install platformio & tools

pipenv install --dev

Config

  1. Copy sonoff/user_config_override_sample.h -> sonoff/user_config_override.h
  2. Add custom config

Upload firmware

  1. enter pipenv shell: pipenv shell
  2. keep button pressed while plugging usb
  3. get port path: pio device list
  4. upload: pio run -t upload --upload-port <port>

Tweak if not working:

platformio.ini: upload_speed

Useful Commands

  • Ping: esptool.py --port <port> chip_id
  • Monitor: pio device monitor --port <port>
    • Ip: when in monitor type ipaddress + <enter>

Using Arduino as USB to TTL adapter:

Arduino.RESET <-> Arduino.Ground
Arduino.TX <-> ESP8266.TX # try TX->RX if not working
Arduino.RX <-> ESP8266.RX # try RX->TX if not working
Arduino.Ground <-> ESP8266.Ground
Arduino.3_3V <-> ESP8266.3_3V

References

Tasmota Wiki

Youtube:

About

Provide ESP8266 based itead Sonoff with Web, MQTT and OTA firmware using Arduino IDE or PlatformIO

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 63.8%
  • C 20.5%
  • HTML 12.6%
  • JavaScript 1.2%
  • CSS 0.8%
  • Makefile 0.5%
  • Other 0.6%