today i will show you how to upload code to the esp8266 microcontroller using the arduino IDE
the one which im using is the esp8266 01
this is a 32 bit microcontroller with a clock speed of 80 mhz, 1mb flash memory and built in wifi, which means that this tiny microcontroller is much faster than an arduino uno. it features 2 gpio pins, rx tx pins for communication, chip enable
and reset pins, and vcc and ground pins.
now to program this module, we can do it either using an arduino, or a usb to serial adapter like this one.
im using this FTDI USB to serial adapter
the esp8266 01 is not a breadboard friendly module, it is best to use male to female jumber wires
the wiring is as follows:
connect vcc and chip enable of the esp to 3.3v of the adapter
connect ground of esp and gpio 0 to ground of the adapter
connect rx to tx and tx to rx
make sure you place the voltage jumper to 3.3v on the serial adapter, as the esp works only on 3.3v logic
once the wiring is done, lets do the programming
first open the arduino IDE, go to preferences, and copy this URL in the additional boards manager URL
http://arduino.esp8266.com/stable/pac...
then go to tools board manager and search and install esp8266, which in my case is already installed
go to examples, esp8266, blink
select board as generic esp8266 module
select com port and upload the code
while uploading you will see the blue light flashing on the esp8266
once uploading is done, remove the GPIO 0 pin and leave it unconnected
connect an LED to GPIO 2 and ground, and if everything went good, the LED should start blinking
Product Links:
FT232 FTDI USB to Serial Programmer: https://bit.ly/2RKAYGk
ESP8266 01 : https://bit.ly/2ZPwLWo
#esp8266 #esp #Arduino