- Mon Sep 05, 2016 1:16 am
#54494
Okay I Sort of solved the problem for the HUZZAH, at least when working with the Arduino loader.
I still have some things I don't understand:
I wish I knew why the capacative soluiton fails for me.
I wish I understood why the transitor flipflop method doesn't mess up when you open a serial monitor.
my FTDI only had CTS available directly, which is an input. I needed RTS which is an output. So I broke out the RTS on my board. Then I connected it to either Reset or EN, and DTR to GPIB0. In this configuration the Arduino IDE can program the Huzzah without having to press the flash and reset buttons.
Yeah!
But The major downside of this solution is that it resets the board if you open the serial monitor without disconnecting the connections. ;-(
Why Doesn't the transistor flipflop method have the same problem?
Googling around on this I learned a few things to consider for the Huzzah and for different boards
1. it may be better to drive EN than Reset. Some people have commented that RESET may be neccessary for the WAKE command from Pin 16 timer. So you don't want to tie it up. On some boards those two pins EN and RESET may acutally be wired together requiring cutting a trace to make them separate.
2. Some software drivers actually manipulate RTS. If they do they may not be doing what you want. What you want is for DTR to go low, then while it's low, a short low going pulse on RTS. and then it's extremely important that RTS never goes low again otherwise you may reset the board! It appears the ardunio IDE using windows 10 does the right thing.
A) if your software driver does not do the right thing then here is another way to solve the problem. You ignore RTS and connect DTS to reset or EN with a 100nanfarad cap. that value depends on the pullup resistor. this strategy is discussed here but I never got it to work with the Huzzah.
https://hallard.me/esp8266-autoreset/(warning: there is a also danger not mentioned in the article if you capacitively couple. You need to have diodes to clamp the voltage on the reset or CE pin to less than Vcc. otherwise the positive going spike due to the capacitive coupling will effectively double the voltage in reset, and may overvolt the ESP8266.)