ESP32 Thing Hookup Guide - cchamchi/ESP32 GitHub Wiki

Introduction

SparkFun ESP32๋Š” ์ธ๊ธฐ๋ฅผ ๋Œ์–ด๋˜ ESP8266์˜ Super-charged ๋ฒ„์ „์ธ Espressifโ€™s ESP32๋ฅผ ์œ„ํ•œ ์ข…ํ•ฉ์ ์ธ ๊ฐœ๋ฐœ ํ”Œ๋žซํผ์ด๋‹ค. ESP8266๊ณผ ๊ฐ™์ด, ESP32๋Š” WiFiํ˜ธํ™˜ ๋งˆ์ดํฌ๋กœ ์ปจํŠธ๋กค๋Ÿฌ์— ์ถ”๊ฐ€์ ์œผ๋กœ ๋ธ”๋ฃจํˆฌ์Šค ์ €์—๋„ˆ์ง€(์˜ˆ:BLE, BT4.0)๋ฅผ ์ง€์›ํ•˜๊ณ  SmartI/O ํ•€์ด 30๊ฐœ๋‚˜ ์ง€์›๋œ๋‹ค. ES32์˜ ๊ฐ•๋ ฅํ•œ ๊ธฐ๋Šฅ๊ณผ ๋‹ค์žฌ ๋‹ค๋Šฅํ•จ์€ ์•ž์œผ๋กœ ์—ฌ๋Ÿฌ ํ•ด ๋™์•ˆ IoT๊ธฐ๋ฐ˜์„ ๊ตฌ์ถ•ํ•˜๊ณ  IoT์™€ ์—ฐ๊ฒฐ๋œ ํ”„๋กœ์ ํŠธ๋ฅผ ๋งŒ๋“œ๋Š” ๋ฐ ๋„์›€์„ ์ค„๊ฒƒ์ž…๋‹ˆ๋‹ค.

SparkFun ESP32 Things ๋Š” ESP32๋ฅผ ํฌํ•จํ•˜์—ฌ ํ”„๋กœ๊ทธ๋ž˜๋ฐ, ์‹คํ–‰ ๋ฐ ๊ฐœ๋ฐœ์— ํ•„์š”ํ•œ ๋ชจ๋“  ๊ฒƒ์„ ์ œ๊ณตํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. WiFi/BLE SoC์™ธ์—๋„ FTDIFT232x1x๊ฐ€ ํฌํ•จ๋˜์–ด ์žˆ์–ด USB๋ฅผ ์ง๋ ฌ๋กœ ๋ณ€ํ™˜ํ•˜๊ณ  ์ปดํ“จํ„ฐ์—์„œ ๋งˆ์ดํฌ๋กœ ์ปจํŠธ๋กค๋Ÿฌ๋ฅผ ํ”„๋กœ๊ทธ๋ž˜๋ฐํ•˜๊ณ  ํ†ต์‹ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ ๋ฆฌํŠฌ ํด๋ฆฌ๋จธ ๋ฐฐํ„ฐ๋ฆฌ ์ถฉ์ „๊ธฐ๋ฅผ ๊ฐ–์ถ”๊ณ  ์žˆ์œผ๋ฏ€๋กœ, ESP32ํ”„๋กœ์ ํŠธ๋Š” ์ง„์ • ๋ฌด์„ ์ผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ ๋ณด๋“œ์—๋Š” ๊ฐœ๋ฐœ์— ๋„์›€์ด ๋˜๋Š” ๋ช‡๊ฐœ์˜ LED์™€ ๋ฒ„ํŠผ์ด ํฌํ•จ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

Hardware Overview

Espressifโ€™s ESP32 is one of the most unique microcontrollers on the market. Its laundry list of features include:

  • Dual-core Tensilica LX6 microprocessor
  • Up to 240MHz clock frequency
  • 520kB internal SRAM
  • Integrated 802.11 BGN WiFi transceiver
  • Integrated dual-mode Bluetooth (classic and BLE)
  • 2.2 to 3.6V operating range
  • 2.5 ยตA deep sleep current
  • 32 GPIO
  • 10-electrode capacitive touch support
  • Hardware accelerated encryption (AES, SHA2, ECC, RSA-4096) The ESP32 Thing is designed to surround the ESP32 with everything necessary to run and program the microcontroller, plus a few extra goodies to take advantage of the chipโ€™s unique features.

Peripherals and I/O

The ESP32 features your standard fare of hardware peripherals, including:

  • 18 analog-to-digital converter (ADC) channels
  • 3 SPI interfaces
  • 3 UART interfaces
  • Two I2C interfaces
  • 16 PWM outputs
  • 2 digital-to-analog converters (DAC)
  • Two I2S interfaces And, thanks to the chipโ€™s pin multiplexing feature, those peripherals can be connected to just about any of the 28 broken out I/O pins. That means you decide which pins are RX, TX, MISO, MOSI, SCLK, SDA, SCL, etc.

There are, however, a few hardware features โ€“ namely the ADC and DAC โ€“ which are assigned static pins. The graphical reference below helps demonstrate where you can find those peripherals (click to embiggen!).

One I2C, two of the UART interfaces, and one of the SPI interfaces can be assigned to any pin your project requires.

Input Only Pins: 34-39
Pins 34, 35, 36, 37, 38 and 39 cannot be configured as outputs, but they can be used as either digital inputs, 
analog inputs, or for other unique purposes. Also note that they do not have internal pull-up or pull-down 
resistors, like the other I/O pins.

GPIO pins 36-39 are an integral part of the ultra low noise pre-amplifier for the ADC โ€“ they are wired up to 
270pF capacitors, which help to configure the sampling time and noise of the pre-amp.

Schematic close up of pins 34-39

From the ESP32 Thing Schematic: GPIO 36-39 are tied together with caps. Those and pins 34 and 35 are input only!

Powering the ESP32 Thing

ESP32 Things์— ๋Œ€ํ•œ ๋‘๊ฐ€์ง€ ์ฃผ์š” ์ „๋ ฅ ์ž…๋ ฅ์€ USB์™€ ๋‹จ์ผ ์…€ ๋ฆฌํŠฌ ํด๋ฆฌ๋จธ ๋ฐฐํ„ฐ๋ฆฌ์ž…๋‹ˆ๋‹ค. USB์™€ Lipo๊ฐ€ ๋ณด๋“œ์— ๋ชจ๋‘ ์—ฐ๊ฒฐ๋˜์–ด ์žˆ๋Š” ๊ฒฝ์šฐ์—๋Š” ๋‚ด์žฅํ˜• ์ถฉ์ „ ์ปจํŠธ๋กค๋Ÿฌ๊ฐ€ ์ตœ๋Œ€ 500mA์˜ ์†๋„๋กœ Lipo๋ฐฐํ„ฐ๋ฆฌ๋ฅผ ์ถฉ์ „ํ•ฉ๋‹ˆ๋‹ค.

The ESP32's operating voltage range is 2.2 to 3.6V. Under normal operation the ESP32 Thing will power the chip 
at 3.3V. The I/O pins are not 5V-tolerant! If you interface the board with 5V (or higher) components, you'll 
need to do some level shifting.

The 3.3V regulator on the ESP32 Thing can reliably supply up to 600mA, which should be more than enough overhead for most projects. The ESP32 can pull as much as 250mA during RF transmissions, but weโ€™ve generally measured it to consume around 150mA โ€“ even while actively transmitting over WiFi. The output of the regulator is also broken out to the sides of the board โ€“ the pins labeled โ€œ3V3.โ€ These pins can be used to supply external components.

In addition to USB and battery connectors, the VBAT, and VUSB pins are all broken out to both sides of the board. These pins can be used as an alternative supply input to the Thing. The maximum, allowable voltage input to VUSB is 6V, and VBAT should not be connected to anything other than a LiPo battery. Alternatively, if you have a regulated voltage source between 2.2V and 3.6V, the โ€œ3V3โ€ lines can be used to directly supply the ESP32 and its peripherals.

Assembly Tips

The ESP32 Thing ships without anything soldered into the header pins โ€“ ensuring that you can mold the board to best fit your project. To use the chipโ€™s pins youโ€™ll need to solder something to the I/O and power rail vias broken out to either side of the board.

What you solder to the ESP32 Thingโ€™s I/O pins is completely up to you. The header rows are breadboard-compatible, so you may want to solder male headers in. (Mildly satisfying: the ESP32 Thingโ€™s pair of 20-pin headers means you can get the most out of our 40-pin header strips.)