Category:ESP32

From ElectroDragon
(Redirected from ESP32)
Jump to: navigation, search

Brief Info

Esp-32 brief.jpg

Schematic, pin definition

Documents

ESP32 Datasheet

Module WROOM-32

ESP32-DevKitC Board

Reference

中文资料

Toolchain

Arduino

Esp32 pinmap.png
cd esp32/tools,  and,  python get.py
  • Install python 2.7, and make sure pyserial installed
  • run arduino blink sketch to test, pin LED 1 will blink esp32 TX pin

ESP-IDF

Reference

Get start

  • create esp folder, and install three parts:
  1. esp-idf # development framwork
  2. xtensa-esp32-elf # toolchain
  3. <myapp-or-anyname> #esp-idf-template example ( turn of wifi, and blink led GPIO4, gpio_set_direction(GPIO_NUM_4, GPIO_MODE_OUTPUT);)
  4. <.. any other your apps>
  • first install all dependencies: sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial

Install toolchain and Clone ESP-IDF

Install toolchain

  • In esp folder:
wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux32-1.22.0-59.tar.gz
unzip toolchain: tar -xzf xtensa*.tar.gz

Install ESP-IDF

Set PATH

Set xtensa PATH

/home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user-name/esp/xtensa-esp32-elf/bin

Set IDF PATH

  • Run a export command for esp-idf and run menu:
export IDF_PATH=~/esp/esp-idf
  • and check if it can work by: printenv IDF_PATH

Set both when boot

  • nano ~/.bashrc, add two lines at bottom
export PATH=$PATH:$HOME/esp/xtensa-esp32-elf/bin
export IDF_PATH=~/esp/esp-idf

Start project

cd ~/esp
cp -r $IDF_PATH/examples/get-started/hello_world .
  • project folder, config it: make menuconfig
  • make and flash with download tool: make flash

Other Interpreter

Reference Link

Site

Application / Project / Showcase

Pages in category "ESP32"

The following 2 pages are in this category, out of 2 total.