-
Notifications
You must be signed in to change notification settings - Fork 1
Beginner Guide Create your own Firmware Build
In this guide i´ll show you how to build your own firmware .bin file
You can use Atom or Arduino IDE to build your own firmware. In this guide i´ll use Atom on Windows 10 x64
- Download Atom from atom.io (Direct Download)
- Run the setup
After the setup is done, Atom should be started already. Now you need to install the platform.io IDE for Atom:
-
Top Menu: File > Settings > Install
-
Now you can search for a package. Search for platform.io IDE
-
Choose platformio-ide and hit the Install Button
-
Atom will ask you to install Clang now, do this by clicking on "Install Clang"
-
A new website will popup. Scroll down to "II. Clang for Intelligent Code Completion" and hit the Download Button. If the download is done, start the setup. Please select "Add LLVM to the system PATH" option on the installation step.
-
After you have installed Clang close the website and go back to Atom. After Atom has installed all Packages you need to restart Atom.
You got Atom with Platform.io ready now.
First you need to get the Sourcefiles from Github.
Go to the Code Page.
Now you can change the Branch(1). I suggest you to use the development Branch.
Then click on "Clone or Download"(2) and choose "Download Zip"(3)
Go to the location you saved the ZIP and unzip it by right clicking it and choose "Extract All".
Back to Atom open the PlatformIO Home Tab (should be open already).
Click on "Open Project" and choose the unzipped folder you just downloaded. Be sure that the platformio.ini file is there. This is important to load the custom platformio.ini file.
In the left Sidebar navigate to sonoff/user_config.h and click on it.
You can now change your default configuration in this file. I suggest you to read everything in there and adapt everything to your needs.
If you are done press ctrl+s to save the file.
At last go to PlatformIO Menu and click on "Build". Atom is now starting to compile the firmware. To speed up the compiling, you can uncomment your preferred language in the platformio.ini file (remove the ";" from one line, dont forget to save ctrl+s).
After its done, you can find the firmware in the .pioenvs directory in the unzipped folder.
Attention: .pioenvs is a hidden folder on unix systems.
Home | Wiki | What's new | Tutorials | FAQ | Troubleshooting | Button usage | Commands | Rules
Home
Theo's Tasmota Tips
What's New
Getting Started
Upload tools
- SonOTA
- OTA over SCP
- Esptool
- Arduino IDE
- PlatformIO
- PlatformIO CLI
- Visual Studio Code
- Python HTTP OTA server
- Node Red OTA server and firmware manager
Usage
- Button Functionality
- MQTT Features
- Supported Commands
- Using Rules
- Sensor Configuration
- PowerOnState Configuration
- SwitchMode/SwitchTopic
- Button Multipress
- Energy Saving
- KNX Features
- Misc. Tips
Devices - Additional Info
- Sonoff Basic
- Sonoff SV
- Sonoff S20 Smart Socket
- Sonoff S26 Smart Socket
- Sonoff Dual / Dual R2
- Sonoff 4CH / 4CH Pro
- Sonoff RF and Slampher
- Sonoff RF Bridge 433
- Sonoff Pow / Pow R2
- Sonoff Touch
- Sonoff T1
- Sonoff B1 / B1 R2
- Sonoff iFan02
- Sonoff SC
- Sonoff PSA
- Sonoff S31
- Shelly 1 and 2
- Wemos D1 R1 & R2
- Wemos D1 Mini
- HuaFan Smart Socket
- Hyleton-313 Smart Plug
- MagicHome LED controller
- H801
- Arilux LC02
- SP108E LED controller
- Blitzwolf SHP2
- Tuya Dimmer
- PS-16-DZ Dimmer
- Armtronix Dimmers
- Other Devices
- retired
Home Automation Integration
- OpenHAB
- Home Assistant
- Domoticz - Manual configuaration
- Domoticz - Automatic discovery
- HomeBridge
- HomeSeer
- SmartThings
- IP-Symcon
- IOBroker
- TasmoAdmin
- Alexa
- Yeti
- NodeRed Examples
- Securing your Setup
Other Integrations
Further Topics
- MQTT Overview
- Remote Button
- Modified Kaku
- PZEM004T Energy Monitor
- IR Extension
- S20 sensor
- Wiring additional things to a module
- Sonoff Basic DHT11 Wiring
- Expand Sonoff 4CH with jack plug
- Defining new module types
- GPIO Locations
- JSON Status Responses
- Expand Sonoff Basic to 4MB Flash
- Time Proportioned Output support
- PID Control with Sonoff Devices
- Sensor-API
- Sensors Supported by Tasmota
- Syslog Setup
ESP32
Misc