- Fri Jul 28, 2017 5:30 am
#68646
Hiya - just getting started trying to reprogram some Sonoff switches to work with MQTT using the Arduino IDE and the
https://github.com/mertenats/Itead_Sonoff project.
I can't seem to connect to the ESP8266 at all - I just get
espcomm_sync failed followed by a series of (presumably) related messages. I'm using an FT232RL (probably a clone) from
http://www.gearbest.com/boards-shields/pp_415190.html.
I'm pretty sure I have the connecting wiring correct, and I've tested that the voltage at VCC and also TX/RX to GND is 3.4ish volts. The FT232RL board passes a loopback test.
I've set the Arduino IDE to 115200 baud, 1M flash size (Tried every SPIFF variation) and ESP8266 generic for board type. I'm on Linux Mint, on an Optiplex 990, FWIW.
I've tried powering the Sonoff board separately. I'm pretty sure I've rebooted it into programming mode by holding down the button while powering it up, although there's no visual indication or - as far as I'm aware - any other way to confirm this. The Sonoff, when connected to a 220V source, appears to work, insofar as the LED comes on and I can hear the relay click when I push the button.
I've already ordered a few other USB-TTL boards, not to mention a few other ESP8266-related boards, but they'll take a while to arrive. What else can I do in the meantime to troubleshoot?
The USB-TTL board could be a dud
The headers on the Sonoff could be poorly soldered, or I may even have damaged the board
I'm overlooking some library or setting or dunno what else
Maybe that gypsy I killed a few years ago meant what she said about a curse
Can I set up a way to flash the Sonoff board from one of my Arduinos directly? Is there some other way to test the USB-TTL board? Should I try my poor soldering skills on my (currently) only other Sonoff board?
I'm just this guy, you know?