VideoBar

This content is not yet available over encrypted connections.

Wednesday, November 30, 2016

ESP 32 - getting to Blinky


To get to a blinking LED with the ESP32 and the Arduino-IDE you have to Install all needed Software and also wire up your ESP32 if you not using a development Board.

My CP2102 USB to UART Converter is not capable to provide enough current at the 3.3V Output for the ESP32 so i have to use a voltage regulator (i.e. AMS1117 3.3) with some capacitors (not in the Picture).

ESP32 - sample configuration
And to use the basic example sketch blink.ino we have to install all the Software:

(example using a Ubuntu 16.4 Linux environment):


see https://www.arduino.cc

    Download https://downloads.arduino.cc/arduino-1.6.12-linux64.tar.xz

    mkdir arduino
    cd arduino
    cp ~/Downloads/arduino-1.6.12-linux64.tar.xz .
    tar xJf arduino-1.6.12-linux64.tar.xz
    cd arduino-1.6.12/
    ./install.sh


see https://github.com/espressif/arduino-esp32/blob/master/README.md


    https://github.com/espressif
    https://github.com/espressif/arduino-esp32

    cd hardware
    mkdir espressif
    cd espressif
    git clone https://github.com/espressif/arduino-esp32.git esp32

    cd esp32/tools
    python get.py


After all the Software installation you have to enable the ESP32 to download the new Firmware via UART by pulling GPIO0 to ground (pressing flash button) and also do a reset by pulling EN to ground far a short time.


rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download


Then you can use the Upload the blink.ino sketch via upload Button to your ESP32.

My Arduino Tool Configuration:

Board: ESP32 Dev Module
Flash Frequency: 80ß MHz
Upload Speed: 115200
Port: /dev/ttyUSB0

(If you not using the serial monitor from Arduino-IDE i.e. putty you have to close your tool before uploading).

The GPIO Pin 13 is configured as output and is switched on and off by delay some ms - the LED is blinking. But you have to limit the current used by the LED to protect the GPIO Pin and also the LED by using i.e. a 220 Ohm resistor.

Happy blinking.

Further information on Youtube:

ESP32 - Installing Software:
https://youtu.be/rP9p0MzxSos

ESP32 - Getting to Arduino blinky:
https://youtu.be/_eu39u45XVk










No comments:

Post a Comment