Programming ESP-01 with Ardunio Uno
Posted: Fri Feb 22, 2019 12:25 pm
I have a ESP-01 board running under softwareserial library (as the Uno does not have a dedicated serial port for the 8266 board).
I understand I can program it using AT commands with the internal software that comes in the ESP board.
I have successfully produced programs which work with the ESP board using AT commands.
I also know you can program the chip with a new instruction set, based on the Arduino IDE, ie an Arduino program can be loaded on to the ESP chip memory and run without the Arduino being present.
But every example I have seen of programming uses the serial port on pins 0 & 1, which are attached to the USB port on the Uno, so are not available to me!
None of the programming libraries allow me to use softwareserial to select a serial port.
I am using softwareserial to create ports on pins 11 & 12, how can I program the ESP chip using these pins?
I understand that the RST and IO0 ports have to be grounded in sequence, to program the chip, which is already connected to pins 11 &12.
This can be done be the Ardunio, making programming easy, but no one has demonstrated a working programmer. They either use FDIL, USB ports or remove the IDE chip, all of which seem unnecessary, if I already have a working system!
Noone can explain how you can transfer code already compiled through the Arduino IDE, to the ESP chip memory. Code can be separately compiled to a windows directory, so choosing which chip to compile it to should not be a problem.
Also if you can program a chip with a new instruction set, you should be able to download the old one to a file on the windows computer, using Arduino.
This backup would prevent the problems some people have had with programming, when it has not worked and they cannot re-load their original AT command set.
Please help with an explanation as to how to achieve this.
I understand I can program it using AT commands with the internal software that comes in the ESP board.
I have successfully produced programs which work with the ESP board using AT commands.
I also know you can program the chip with a new instruction set, based on the Arduino IDE, ie an Arduino program can be loaded on to the ESP chip memory and run without the Arduino being present.
But every example I have seen of programming uses the serial port on pins 0 & 1, which are attached to the USB port on the Uno, so are not available to me!
None of the programming libraries allow me to use softwareserial to select a serial port.
I am using softwareserial to create ports on pins 11 & 12, how can I program the ESP chip using these pins?
I understand that the RST and IO0 ports have to be grounded in sequence, to program the chip, which is already connected to pins 11 &12.
This can be done be the Ardunio, making programming easy, but no one has demonstrated a working programmer. They either use FDIL, USB ports or remove the IDE chip, all of which seem unnecessary, if I already have a working system!
Noone can explain how you can transfer code already compiled through the Arduino IDE, to the ESP chip memory. Code can be separately compiled to a windows directory, so choosing which chip to compile it to should not be a problem.
Also if you can program a chip with a new instruction set, you should be able to download the old one to a file on the windows computer, using Arduino.
This backup would prevent the problems some people have had with programming, when it has not worked and they cannot re-load their original AT command set.
Please help with an explanation as to how to achieve this.