Difference between revisions of "Category:ESP32"

From ElectroDragon
Jump to navigation Jump to search
(Brief Info, Schematic, pin definition)
 
(3 intermediate revisions by the same user not shown)
Line 47: Line 47:
 
File:Esp32_devkitc_v4-sch-20180607a.jpg | devkitc devlopment board V4  
 
File:Esp32_devkitc_v4-sch-20180607a.jpg | devkitc devlopment board V4  
 
</gallery>
 
</gallery>
 
== Toolchain ==
 
=== Arduino ===
 
[[File:Esp32 pinmap.png|thumbnail]]
 
* in arduino hardware folder, mkdir espressif
 
* cd espressif and git clone https://github.com/espressif/arduino-esp32.git esp32
 
* Install binary toolchain
 
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
 
* [https://github.com/espressif/esp-idf Espressif IoT Development Framework], [https://github.com/espressif/esp-idf-template esp-idf-template, and template]
 
* [https://github.com/espressif/esp-idf/blob/master/docs/linux-setup.rst Linux setup]
 
==== Windows Setup Guide ====
 
* Download Mwing from here https://dl.espressif.com/dl/esp32_win32_msys2_environment_and_toolchain-20180110.zip
 
* Unzip to '''C:''' should work like '''c:\msys32\mingw32.exe''', and make '''dir mkdir -p ~/esp'''
 
* Git clone ESP-IDF by commands: '''cd ~/esp''' and '''git clone --recursive https://github.com/espressif/esp-idf.git'''
 
* Set PATH: create file '''export_idf_path.sh''' at folder '''C:/msys32/etc/profile.d/''', add line '''export IDF_PATH="C:/msys32/home/user-name/esp/esp-idf"''', notice to replace the '''user-name'''
 
* Copy code hello_world -> '''cd ~/esp''' and '''cp -r $IDF_PATH/examples/get-started/hello_world .'''
 
* Config serial port '''cd ~/esp/hello_world''' and '''make menuconfig''', for example config port to COM3 in windows -> '''Serial flasher config > Default serial port'''
 
* '''make flash''' or '''make monitor'''
 
 
==== Linux Setup Guide ====
 
===== Get start =====
 
* create '''esp''' folder, and install three parts:
 
# esp-idf # development framwork
 
# xtensa-esp32-elf # toolchain
 
# <myapp-or-anyname> #esp-idf-template example ( turn of wifi, and blink led GPIO4,  gpio_set_direction(GPIO_NUM_4, GPIO_MODE_OUTPUT);)
 
# <.. 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
 
* latest xtensa file is ->    https://dl.espressif.com/dl/xtensa-esp32-elf-linux32-1.22.0-61-gab8375a-5.2.0.tar.gz
 
Install ESP-IDF
 
* In esp folder: git clone --recursive https://github.com/espressif/esp-idf.git
 
* init submodules, in esp-idf folder -> git submodule update --init
 
 
===== Set PATH for linux =====
 
Set xtensa PATH
 
* Option 1-directly add PATH to enviornment: export PATH=$PATH:$HOME/esp/xtensa-esp32-elf/bin
 
* more details see on http://www.electrodragon.com/w/Category:Linux#PATH
 
* Verify by command: '''printenv PATH''', it should print
 
/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 =====
 
* clone example template: in esp folder git clone into myapp folder: git clone https://github.com/espressif/esp-idf-template.git myapp
 
* or copy:
 
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 ===
 
* [https://github.com/Nicholas3388/LuaNode Luanode]
 
* [https://github.com/micropython/micropython-esp32 Micropython]
 
 
  
 
== Documents ==
 
== Documents ==
Line 153: Line 85:
 
* WROOM32-U 32Mbit - backside blue dot
 
* WROOM32-U 32Mbit - backside blue dot
 
* WROOM32-U 128Mbit -backside white dot
 
* WROOM32-U 128Mbit -backside white dot
 +
 +
[[category: ESP]]
 +
[[category: Topics]]

Latest revision as of 00:39, 24 October 2019

Specification and ordering information

Name and order Type Specification Features Datasheet Price Stock Status
ESP32-S0WD IC, 5x5, Sample Wi-Fi+BT, Single core 2
ESP32-D0WDQ6 IC, 6x6, MP Wi-Fi+BT, Dual core 2.4
ESP32-D0WD IC, 5x5, Sample Wi-Fi+BT, Dual core 2.4
ESP32-D2WD IC, 5x5, Sample Wi-Fi+BT, Dual core, Flash embedded 2.8
ESP32-PICO-D4 IC, 7x7 Wi-Fi+BT, Dual core, peripheral circuits embedded SIP File:Esp32-pico-d4 datasheet en.pdf 4.5 Latest Rev-1
ESP-WROOM-32D Module ESP32-D0WD embedded + 4 MB SPI Flash + PCB Antenna
ESP-WROOM-32 Module MP ESP32-D0WDQ6 + 4 MB SPI Flash + PCB Antenna 3.5 Latest hardware, not latest firmware, you can update by yourself
ESP32-DevKitC Dev. Board MP ESP-WROOM-32 embedded 10
ESP32-WRover Module 4 MB SPI Flash + 4 MB PSRAM + PCB Antenna PSRAM 4
ESP32-WRover-I Module 4 MB SPI Flash + 4 MB PSRAM + IPEX PSRAM 4
ESP-WROVER-KIT Dev. Board MP LCD, USB-JTAG PSRAM 35

All Certifications

Brief Info, Schematic, pin definition

  • Brief Info
Esp-32 brief.jpg
  • Development board Schematic

Documents

ESP32 Datasheet

Module WROOM-32

ESP32-DevKitC Board

Reference

中文资料

ESP32-PICO

Reference Link

Site

Application / Project / Showcase

Version Reference Only

  • WROOM32-D 32Mbit - front top blue dot
  • WROOM32-D 128Mbit - front top green dot
  • WROOM32-U 32Mbit - backside blue dot
  • WROOM32-U 128Mbit -backside white dot

Pages in category "ESP32"

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