I have this project based on an Arduino Nano clone, sitting in a physically difficult to reach place. So I want to upload sketch to it using an ESP8266. This is my hardware:
The ESP8266 is running the Transparent bridge firmware (thank you, dacb!!) .
The key to making the sketch upload work seems to be to manually give the Nano a reset signal with a good timing relative to the upload sequence. In one of the comments on
this instructable, user amir_zohaib gives the timing:
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20] <---NOW press the reset once, and hard (atleast on the pro mini) for atleast 100-200ms
avrdude: Send: 0 [30] [20]
(Nota: The critical timing is the end of the reset period, i.e. the release of the button. Press/hold then release at the time indicated above.)
And it works!
My project is now open in front of the computer, so it is easy to do the manual reset while watching the screen. But when the box is assembled and in its location far from my computer, I fail to see how I could be able to do the manual reset.
A better solution would be to control it from the PC, maybe by pulling Arduino reset low by using the ESP8266 GPIO2. But I cannot see that the +++AT commands will allow me to do this.
I am so close to a solution, but cannot figure out how to do the reset. Ideas, anyone?