Instructions
4. CODE TRANSMISSION
In the following, we demonstrate the transmisson of the code with the code
example from the ESP8266-library.
To transfer the code to the ESP8266, you have to select the desired code
example from the example menu of the Arduino soware.
The used baudrate (“Upload Speed“ in the menu “Tools“)for the
transmisson should be 115200.
For the use with a TTL-cable:
Separate the power supply (VCC) from the ESP8266 module and connect
them again aerwards. The module should start in the programming mode.
If you do not have any success with this method, you can try the Arduino
method.
In some cases this alternative works better even with the TTL-cable.
For the use with an Arduino:
Separate the power supply (VCC) from the module and set the GPIO0 pin
from 3.3 V to 0 V (GND). Aer that restore the power supply.
As soon as the soware has been transferred, the module can be set again
into the normal operation status.
For this, separate again the current supply, set the GPIO0 pin to 3.3 V and
restore the power supply.
When you have set the module into the programming mode, you can start
the transmisson. Do not forget that you must switch back to the normal
operation status aer the transmisson is nished.
Attention! Before you can transfer the new code to the ESP8266,
you must set the module into the programming mode: