Created
April 14, 2018 17:40
-
-
Save invisiblek/945c604c9850c17e3b25de1c3109dae3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compiled Sonoff-Tasmota from https://github.com/arendst/Sonoff-Tasmota.git (read directions there) and save the .bin somewhere easy to get to | |
rip the chip off your arduino, you're going to use that bish as an ftdi adapter | |
wire it up like this: | |
arduino sonoff pins | |
3.3v pin 1 | |
RX pin 2 | |
TX pin 3 | |
GND pin 4 | |
(empty) pin 5 | |
to put the sonoff in flash mode, the button needs to be held when you connect the 3.3v | |
i soldered a header to one but got lazy on the others and just held the header at an angle to power it while it flashed | |
grab esptool via pip "pip install --user esptool" | |
run this where your usb device is /dev/ttyACM0 (this the case when using an arduino as an ftdi, otherwise it's probably /dev/ttyUSB0) | |
esptool.py -p /dev/ttyACM0 write_flash --flash_mode dout 0x00000 sonoff.bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment