ESP开发板入门

2024/12/01 21:00:00 open-hardware 共 3689 字,约 11 分钟

光并非太阳的专利,你也可以发光。

手里正好有两块开发板, ESP32 cam和ESP8266, 记录下

https://products.espressif.com/#/product-comparison

Esp8266

img

带有CP2102的ESP模块直接插上USB线即可烧入程序;而带有CH340的ESP模块直接连接电脑为运行内部程序的模式,如果要进入下载程序的模式,需要上电后按住FLASH按键,然后按一下RST键,即可发现电脑识别出了端口。

http://arduino.esp8266.com/stable/package_esp8266com_index.json

CP210x 驱动下载地址

Datasheet

Module ModelESP-12F
PackageSMD22
Size24163(±0.2)mm
CertificationFCCǃCEǃICǃREACHǃRoHS
SPI FlashDefault 32Mbit
InterfaceUART/GPIO/ADC/PWM
IO Port9
UART Baud rateSupport 300 ~ 4608000 bps ˈDefault 115200 bps
Frequency Range2412 ~ 2484MHz
AntennaPCB Antenna
Transmit Power802.11b: 16±2 dBm (@11Mbps) 802.11g: 14±2 dBm (@54Mbps) 802.11n: 13±2 dBm (@HT20, MCS7)
Receiving SensitivityCCK, 1 Mbps : -90dBm CCK, 11 Mbps: -85dBm6 Mbps (1/2 BPSK): -88dBm54 Mbps (3/4 64-QAM): -70dBmHT20, MCS7 (65 Mbps, 72.2 Mbps): -67dBm
Power (Typical Values)Continuous Transmission=>Average˖~71mAˈPeak˖ 500mAModem Sleep: ~20mA Light Sleep: ~2mA Deep Sleep: ~0.02mA
SecurityWEP/WPA-PSK/WPA2-PSK
Power SupplyVoltage 3.0V ~ 3.6VˈTypical 3.3VˈCurrent >500mA
OperatingTemperature-20 ႏ ~ 85 ႏ
Storage Environment-40 ႏ ~ 85 ႏ , < 90%RH

GPIO MAP

|image-20241202000315549|ESP8266 12-E NodeMCU Kit pinout diagram gpios pins| |——|—–|

No.Pin NameFunctional Description
1RSTReset Pin, Active Low
2ADCAD conversion, Input voltage range 0~1V, the value range is 0~1024.
3ENChip Enabled Pin, Active High
4IO16Connect with RST pin to wake up Deep Sleep
5IO14GPIO14; HSPI_CLK
6IO12GPIO12; HSPI_MISO
7IO13GPIO13; HSPI_MOSI; UART0_CTS
8VCCModule power supply pin, Voltage 3.0V ~ 3.6V
9GNDGND
10IO15GPIO15; MTDO; HSPICS; UART0_RTS
11IO2GPIO2; UART1_TXD
12IO0GPIO0;HSPI_MISO;I2SI_DATA
13IO4GPIO4
14IO5GPIO5;IR_R
15RXDUART0_RXD; GPIO3
16TXDUART0_TXD; GPIO1

GPIO PIN for ESP8266

The pins highlighted in green are OK to use. The ones highlighted in yellow are OK to use, but you need to pay attention because they may have unexpected behavior mainly at boot. The pins highlighted in red are not recommended to use as inputs or outputs.

LabelGPIOInputOutputNotes
D0GPIO16no interruptno PWM or I2C supportHIGH at boot used to wake up from deep sleep
D1GPIO5OKOKoften used as SCL (I2C)
D2GPIO4OKOKoften used as SDA (I2C)
D3GPIO0pulled upOKconnected to FLASH button, boot fails if pulled LOW
D4GPIO2pulled upOKHIGH at boot connected to on-board LED, boot fails if pulled LOW
D5GPIO14OKOKSPI (SCLK)
D6GPIO12OKOKSPI (MISO)
D7GPIO13OKOKSPI (MOSI)
D8GPIO15pulled to GNDOKSPI (CS) Boot fails if pulled HIGH
RXGPIO3OKRX pinHIGH at boot
TXGPIO1TX pinOKHIGH at boot debug output at boot, boot fails if pulled LOW
A0ADC0Analog InputX 

ESP32 Cam

Datasheet

SpecContent
SPI FlashDefault 32 Mbit
RAM520 KB SRAM + 4M PSRAM
BluetoothBluetooth 4.2 and Bluetooth Low Energy (BLE)
Wi-Fi802.11 b/g/n
Support InterfaceUART, SPI, I2C, PWM
IO port10
UART Baud RateDefault 115200 bps
Image Output FormatJPEG (OV2640 support only), BMP, GRAYSCALE
Spectrum Range2412~2484MHz
AntennaOnboard PCB, and IPEX connector
Transmit Power802.11b: 17+/- dBm (@11Mbps) 802.11g: 14+/- dBm(@54Mvps) 802.11n:3+/-2 dBM (@MCS7)
Receiving SensitivityCCK, 1 Mbps: -90dBm CCK, 11 Mbps: -85dBm6 Mbps (1/2 BPSK): -88dBm54 Mbps, 72.2 Mbps): -67dBm
Power DissipationFlashlight off: 180mA@5VFlashlight on with maximum brightness: 310mA@5V Deep sleep: minimum power consumption 6mA@5V Modem sleep: minimum up to 20mA@5VLight sleep: minimum up to 6.7mA@5V
SecurityWPA/WPA2/WPA2-Enterprise/WPS
Power Supply Range5V

image-20241201185540504

GPIO MAP

image-20241201185942862

https://randomnerdtutorials.com/esp32-pinout-reference-gpios/

ESP32 C3

https://www.xpstem.com/article/10429

image-20241210131644389

c9faac20708cac523ac86642d8d275bd

开发环境安装

git repo

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

  • Stable release link:

    https://espressif.github.io/arduino-esp32/package_esp32_index.json
    
  • Development release link:

    https://espressif.github.io/arduino-esp32/package_esp32_dev_index.json  
    

details refer to

https://docs.espressif.com/projects/arduino-esp32/en/latest/installing.html

离线安装插件

由于某些网络环境问题,我们可能无法直接从开发板管理器中下载ESP32的开发环境。此时,我们可以选择下载离线包进行安装。以下是具体的步骤:

从可靠的下载源获取ESP32的离线包文件,例如:您可以从这里下载。请确保您下载的版本与您的Arduino IDE版本兼容,并且支持ESP32的2.0.9版本。 下载完成后,打开Arduino IDE,选择“文件”>“首选项”。 在“首选项”窗口中,找到“其他开发板管理地址”选项,并在此处填入您下载离线包的文件路径。 点击“确定”保存更改。

Supported IDEs

Here is the list of supported IDE for Arduino ESP32 support integration.

arduino-logopio-logo
Arduino IDEPlatformIO

文档信息

打赏一下呗

对你有帮助,那就打赏一下吧

扫码支持
扫码打赏,金额随意

相关文章

文章搜索

    Post Tags Cloud

    Table of Contents