segunda-feira, 26 de fevereiro de 2018

Programming ESP8266 (ESP-01) USING A UART ESP-01 - Part 2

Welcome back! If you only now joined us and are trying to program ESP-01 with UART ESP-01 I strongly advise you to take a look at Part 1 of our series otherwise, if you have your own way to program ESP-01 you can use it. I'm assuming that you should have finished Part 1 by now and that everything went fine and you are ready to proceed. So let's flash some code into our ESP-01!!

What will we need?

For this, we only will not need anything of special, only basic stuff that you already got like:

  • UART ESP-01 (our hacked version)
  • ESP-01
  • Arduino IDE

Preparation

To program our ESPs we will use Arduino IDE and for that, we need to install nodeMCU boards on it so you will be able to upload the sketch. If you haven't done it yet, you can take a look at this tutorial and see what you should do to install this boards on IDE.

Test your first Arduino program on your ESP-01

After finishing the board's installation, go to Boards menu and select "Generic ESP8266 Module". The normal configuration for an ESP-01 is the following:
Arduino IDE Configuration
  • Flash Mode: DIO
  • Flash Frequency: 40 MHz
  • CPU Frequency: 80MHz
  • Flash Size: 512K
  • Upload Speed: 15200 baud

Is important to say that are some ESP-01 that instead have 512K have 1Mb of Flash Size so it's your responsibility to read products description from the store you buy your ESP-01 and see which flash size it as.

Choose ArduinoISP as a programmer.

In the list of examples ESP8266Wifi, choose WifiScan. Put your ESP in Flashing Mode and then upload the program. Open the Serial Monitor (at 115200 baud). Your ESP-01 now scans your Wifi network and returns the found networks. You should now see something similar to the next image but with your nearby networks.

Sketch output with nearby networks



Sem comentários:

Enviar um comentário