Block Diagram System Component MCU Sensor USB-to-UART Bridge Power Supply Expanded Interface OLED Display Tactile Button, Buzzer and LED Display PCB Design Product Image PCB Layout Schematic www.espressif.com ESP32-Azure IoT Kit Hardware Design Guide Version 1.0 Espressif Systems Copyright © 2018 About This Guide The ESP32-Azure IoT Kit Hardware Design Guidelines introduces the block diagram, PCB layout and function modules of the development board ESP32-Azure IoT Kit. Release Notes Documentation Change Notification Espressif provides email notifications to keep customers updated on changes to technical documentation. Please subscribe at https://www.espressif.com/en/subscribe. Certification Download certificates for Espressif products from https://www.espressif.com/en/ certificates.! Date Version Release notes 2018.10 V1.0 Initial release. Table of Contents 1. Block Diagram 1 ....................................................................................................................... 2. System Component 2 ............................................................................................................... 2.1. MCU! 2"........................................................................................................................................... 2.2. Sensor! 2"........................................................................................................................................ 2.3. USB-to-UART Bridge! 3"................................................................................................................. 2.4. Power Supply! 3"............................................................................................................................. 2.5. Expanded Interface! 3".................................................................................................................... 2.6. OLED Display! 3"............................................................................................................................. 2.7. Tactile Button, Buzzer and LED Display! 3"..................................................................................... 3. PCB Design 4 ............................................................................................................................ 3.1. Product Image! 4"............................................................................................................................ 3.2. PCB Layout! 5"................................................................................................................................ 4. Schematic 6.............................................................................................................................. ! 1. Block Diagram 1. Block Diagram The block diagram below illustrates the main components of the ESP32-Azure IoT Kit and their interconnections. ! SW1 TXD DM USB CONN VBUS Signal Power I2C SCL I2C SDA Motion Barometer H&T RST RXD Magmeter Light DP BAT CONN USB Bridge Pin Headers/Grove Screen BOOT EN MicroSD Card Charge IC DCDC step dn ESP32 WROVER BZ Espressif ! /81 2018.10 ! 2. System Component" 2. System Component 2.1. MCU The ESP32-Azure IoT Kit is a development board built around the ESP32 chip, which is a single 2.4 GHz Wi-Fi-and-Bluetooth combo chip designed with the TSMC ultra-low-power 40 nm technology. It is designed to achieve the best power and RF performance, showing robustness, versatility and reliability in a wide variety of applications and power scenarios. 2.2. Sensor Component Model Manufacturer Description Motion Sensor MPU6050 InvenSense • Digital-output X-, Y-, and Z-Axis angular rate sensors • Digital-output triple-axis accelerometer ( ±2 g/±4 g/ ±8 g/±16 g) • Integrated 16-bit ADCs enable simultaneous sampling • Digitally-programmable low-pass filter • Orientation detection and signaling Magnetometer MAG3110 NXP • Sensitivity of 0.10 uT • Noise down to 0.25 uT rms • Output Data Rates (ODR) up to 80 Hz Barometer FBM320 Formosa • 300 to 1100 hPa pressure range • 8 cm altitude resolution (RMS) • 8 ms pressure conversion time Sensor (Humidity and Temperature) HTS221 ST • 0 to 100% relative humidity range • Humidity accuracy: ± 3.5% rH, 20 to +80% rH • High rH sensitivity: 0.004% rH/LSB • Temperature accuracy: ± 0.5 °C,15 to +40 °C • Selectable ODR from 1 Hz to 12.5 Hz • Embedded 16-bit ADC Sensor (Light) BH1750FVI ROHM • Illuminance to Digital Converter • Wide range and High resolution (1 - 65535 lx) • Small measurement variation (± 20%) Espressif ! /82 2018.10 ! 2. System Component" 2.3. USB-to-UART Bridge The USB-to-UART Bridge used in the ESP32-Azure IoT Kit is CP2102 USB from Silicon Labs, which supports up to 1 M serial port communication and enables the auto switching between ESP32 boot modes. 2.4. Power Supply Both USB power and lithium battery can be used to power up the board. When the USB power is used, the power supply circuit to the lithium battery is cut off automatically. The step-down DC-DC converter used in the board has a ultra-low quiescent current, which ensures the board can achieve ultra-low power consumption during deep-sleep. Besides, there is also a charge management IC on the board, so the USB port can also be used to charge the lithium battery. 2.5. Expanded Interface The board has 16 through-hole testing points (2.54 mm pitch) to lead out the system power and available module IOs, which can be used to connect pin headers and grove connectors. Besides, there is also a MicroSD slot on the board, which can be used to connect microSD card by SPI bus. 2.6. OLED Display A 0.96” blue and yellow OLED display is installed on the board, which integrates a SSD1306 driver chip and supports communication through I2C bus. 2.7. Tactile Button, Buzzer and LED Display • 1 x system RESET button • 1 x user-defined button, which can be used to switch between ESP32 boot modes • 2 x LED indicators, which can be used to indicate if the board has successfully connected to Wi-Fi network or Azure Cloud • 1 x passive buzzer, which can be used to provide audio feedback Espressif ! /83 2018.10 ! 3. PCB Design 3. PCB Design A four-layer PCB design is used for the ESP32-Azure IoT Kit. The dimension of board is 54 x 75 mm. The draft PCB design can be seen in this section. 3.1. Product Image ! Espressif ! /84 2018.10 ! 3. PCB Design 3.2. PCB Layout ! J4 1 30 RF Antenna Y Motion X Azure WiFi - + CHRG SDBY KEY_EN KEY_IO0 3V3 IO5 IO12 IO13 IO14 IO15 GND IO18 IO19 IO21 IO22 IO23 IO35 IO36 IO39 GND ESP32-AZ U RE-KI T 2018-9-28 V0.8 C1 C14 C19 C2 C20 C21 C22 C23 C24 C25 C26 C27 C28 C29 C3 C30 C31 C32 C33 C34 C4 C5 C6 C7 C8 C9 D1 D12 D13 D2 D3 D4 D5 D6 D7 J1 J2 J3 J5 L1 Q1 Q2 Q3 Q4 Q5 Q6 Q7 R1 R10 R11 R12 R15 R16 R17 R18 R19 R27 R28 R29 R30 R31 R32 R33 R34 R35 R36 R37 R4 R5 R6 R7 R8 R9 SW1 SW2 U1 U10 U11 U12 U2 U3 U6 U8 U9 BZ1 R40 R41 D14 Q8 C16 C36 C37 C38 C39 C40 C41 C42 D10 D11 D8 D9 R2 R20 R21 R22 R24 R3 R38 R39 J4 C16 C36 C37 C38 C39 C40 C41 C42 D10 D11 D8 D9 R2 R20 R21 R22 R24 R3 R38 R39 J5 C1 C14 C19 C2 C20 C21 C22 C23 C24 C25 C26 C27 C28 C29 C3 C30 C31 C32 C33 C34 C4 C5C6 C7 C8 C9 D1 D12 D13 D2 D3 D4 D5 D6 D7 J2 J3 L1 Q1 Q2 Q3 Q4 Q5 Q6 Q7 R1 R10 R11 R12 R15 R16 R17R18 R19 R27R28 R29 R30 R31 R32 R33R34 R35 R36 R37 R4 R5 R6 R7 R8 R9 SW1SW2 U1 U10 U11 U12 U2 U3 U6 U8 U9 BZ1 R40 R41 D14 Q8 J4 J4x1 J4x2 J4x3 J4x4 J4x5 J4x6 J4x7 J4x8 J4x9 J4x10 J4x11 J4x12 J4x13 J4x14J4x15 J5 J5x1 J5x2 J5x3 J5x4 J5x5 J5x6 J5x7 J5x8 J5x9 J5x10 J5x11 J5x12 J5x13 J5x14 J5x15 J5x16 C16 C16x1 C16x2 C36 C36x1 C36x2 C37 C37x1 C37x2 C38 C38x1C38x2 C39 C39x1C39x2 C40 C40x1C40x2 C41 C41x1 C41x2 C42 C42x1 C42x2 D10 D10x1 D10x2 D11 D11x1 D11x2 D8 D8x1 D8x2 D9 D9x1 D9x2 J1 J1x6 J1x7 J1x8 J1x9 R2 R2x1 R2x2 R20 R20x1 R20x2 R21 R21x1 R21x2 R22 R22x1 R22x2 R24 R24x1 R24x2 R3 R3x1 R3x2 R38 R38x1R38x2 R39 R39x1R39x2 J4 J4x14J4x15 J5 J5x1 J5x2 J5x3 J5x4 J5x5 J5x6 J5x7 J5x8 J5x9 J5x10 J5x11 J5x12 J5x13 J5x14 J5x15 J5x16 C1 C1x1C1x2 C14 C14x1 C14x2 C19 C19x1C19x2 C2 C2x1 C2x2 C20 C20x1 C20x2 C21 C21x1 C21x2 C22 C22x1C22x2 C23 C23x1 C23x2 C24 C24x1 C24x2 C25 C25x1 C25x2 C26 C26x1 C26x2 C27 C27x1 C27x2 C28 C28x1 C28x2 C29 C29x1 C29x2 C3 C3x1C3x2 C30 C30x1 C30x2 C31 C31x1 C31x2 C32 C32x1 C32x2 C33 C33x1 C33x2 C34 C34x1 C34x2 C4 C4x1C4x2 C5 C5x1 C5x2 C6 C6x1C6x2 C7 C7x1 C7x2 C8 C8x1 C8x2 C9 C9x1 C9x2 D1 D1x1 D1x2 D12 D12x1 D12x2 D13 D13x1 D13x2 D2 D2x1 D2x2 D3 D3x1 D3x2 D4 D4x1 D4x2 D5 D5x1 D5x2 D6 D6x1 D6x2 D7 D7x1 D7x2 J1 J1x1 J1x2 J1x3 J1x4 J1x5 J1x6 J1x7 J1x8 J1x9 J2 J2x1J2x2 J2x3 J2x4 J3 J3x1 J3x2 J3x3 J3x4 J3x5 J3x6 J3x7 J3x8 J3x9 J3x10 J3x11 J3x12 J3x13 J3x14 J3x15 J3x16 J3x17 J3x18 J3x19 J3x20 J3x21 J3x22 J3x23 J3x24 J3x25 J3x26 J3x27 J3x28 J3x29 J3x30 L1 L1x1L1x2 Q1 Q1x1 Q1x2 Q1x3 Q2 Q2x1 Q2x2 Q2x3 Q3 Q3x1 Q3x2 Q3x3 Q4 Q4x1 Q4x2 Q4x3 Q5 Q5x1 Q5x2 Q5x3 Q6 Q6x1 Q6x2 Q6x3 Q7 Q7x1 Q7x2 Q7x3 R1 R1x1 R1x2 R10 R10x1R10x2 R11 R11x1R11x2 R12 R12x1 R12x2 R15 R15x1R15x2 R16 R16x1R16x2 R17 R17x1 R17x2 R18 R18x1R18x2 R19 R19x1R19x2 R27 R27x1R27x2 R28 R28x1R28x2 R29 R29x1 R29x2 R30 R30x1 R30x2 R31 R31x1 R31x2 R32 R32x1 R32x2 R33 R33x1 R33x2 R34 R34x1 R34x2 R35 R35x1 R35x2 R36 R36x1 R36x2 R37 R37x1 R37x2 R4 R4x1 R4x2 R5 R5x1 R5x2 R6 R6x1R6x2 R7 R7x1R7x2 R8 R8x1R8x2 R9 R9x1R9x2 SW1 SW1x1 SW1x2 SW1x3 SW1x4 SW2 SW2x1 SW2x2 SW2x3 SW2x4 U1 U1x1 U1x2 U1x3 U1x4 U1x5 U1x6 U1x7 U1x8 U1x9 U1x10 U1x11 U1x12 U1x13 U1x14 U1x15 U1x16 U1x17 U1x18 U1x19 U1x20 U1x21 U1x22 U1x23 U1x24 U1x25 U1x26 U1x27 U1x28 U1x29 U1x30 U1x31 U1x32 U1x33 U1x34 U1x35 U1x36 U1x37 U1x38 U1x39 U10 U10x1 U10x2 U10x3 U10x4U10x5U10x6 U11 U11x1 U11x2 U11x3 U11x4 U11x5 U11x6U11x7U11x8U11x9 U11x10 U12 U12x1 U12x2 U12x3 U12x4U12x5 U12x6 U2 U2x1U2x2U2x3U2x4 U2x5 U2x6 U2x7 U2x8 U2x9 U3 U3x1U3x2U3x3 U3x4 U3x5 U6 U6x1 U6x2 U6x3 U6x4 U6x5 U6x6 U6x7 U6x8 U6x9 U6x10 U6x11 U6x12 U6x13 U6x14 U6x15U6x16U6x17U6x18U6x19U6x20U6x21 U6x22 U6x23 U6x24 U6x25 U6x26 U6x27 U6x28 U6x29 U8 U8x1 U8x2 U8x3 U8x4 U8x5 U8x6 U8x7 U8x8 U8x9 U8x10 U8x11 U8x12 U8x13U8x14U8x15U8x16U8x17U8x18 U8x19 U8x20 U8x21 U8x22 U8x23 U8x24 U9 U9x1 U9x2 U9x3 U9x4 U9x5U9x6U9x7U9x8 BZ1 BZ1x1 BZ1x2 BZ1x3 R40 R40x1R40x2 R41 R41x1 R41x2 D14 D14x1 D14x2 Q8 Q8x1 Q8x2 Q8x3 TP1 TP1x1 TP10 TP10x1 TP2 TP2x1 TP3 TP3x1 TP4 TP4x1 TP5 TP5x1 TP6 TP6x1 TP7 TP7x1 TP8 TP8x1 TP9 TP9x1 ESP32 Module OLED Screen Motion Sensor Magnetometer Light Sensor Barometer H&T Sensor Key x 2 Pin Headers /! Grove Buzzer Customer LED X 2 SD Card Slot USB-to-UART Bridge USB Micro-B Charge LED x 2 Battery Connector Espressif ! /85 2018.10 ! 4. Schematic 4. Schematic ! 5 5 4 4 3 3 2 2 1 1 D D C C B B A A ESP32-WROVER USB2UART Power and Battery Charge Vou t= 1. 1 3* ( 1+ R6 / R1 1 )= 3. 3 9V Iset = 500mA (R4 = 2K) Boot ModeDTR RTS EN IO0 1111 10 1 1 01 01 001 0 Flash Boot System Down UART0 Boot Flash Boot IO2 1 1 1 0 IO Connectors BAT+ BAT- ESP_RXD ESP_TXD PIN15 KEY_IO0 LED_WIFI LED_AZURE ESP_EN CP_DTR CP_RTS USB_DP CP_TXD CP_RXD USB_DM CP_RTS CP_DTR ESP_EN CP_RTS CP_DTR KEY_IO0 IO2 CP_DTR CP_RTS CP_TXD ESP_RXD CP_RXD ESP_TXD USB_DM SD_CLK SD_DI SD_CS SD_DO I2C0_SCL I2C0_SDA PERI_PWR PERI_PWR BAT_ADC BAT_ADC IO5 IO12 IO18 IO19 IO21 IO22 IO23 IO35 IO36 IO39 ESP_EN SD_DO IO2 IO35 IO36 IO39 I2C0_SCL I2C0_SDA BUZ_IO27 IO18 IO19 IO21 IO22 IO23 IO5 IO12 IO13 IO14 IO15 SD_CS IO13 SD_CLK IO14 SD_DI IO15 USB_DPSD_CS PIN16 SD_DI PIN23 PIN19 PIN20 PIN21 PIN22 PIN18 PIN17 PIN15 PIN16 PIN17 PIN18 PIN19 PIN22 PIN21 PIN20 PIN23 PIN24 SD_DO PIN24 VBAT VBUS_A VBAT VDD3V3 VDD3V3 VBUS_A VBAT VSYS VBUS VBUS_A VBUS_A VSYS VDD3V3_A VDD3V3_A VBUS_A VBUS_A VDD3V3_A VDD3V3 VDD3V3_A VBAT VDD3V3 LED_WIFI LED_AZURE SD_CS SD_CLK SD_DI SD_DO KEY_IO0 ESP_EN I2C0_SCL I2C0_SDA BUZ_IO27 R8 100K/1% R6 2M/1% TP8 1 J5 CON16-XH-2P54 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 TP4 1 U2 AP5056 TEMP 1 PROG 2 GND 3 VCC 4 BAT 5 STDBY 6 CHRG 7 CE 8 PGND 9 Q3 S8050 Q2 S8050 U6 CP2102 DCD 1 RI 2 GND 3 D+ 4 D- 5 VDD 6 REGIN 7 VBUS 8 RST 9 NC1 10 SUSPEND 11 SUSPEND 12 NC2 13 NC3 14 NC4 15 NC5 16 NC6 17 NC7 18 NC8 19 NC9 20 NC10 21 NC11 22 CTS 23 RTS 24 RXD 25 TXD 26 DSR 27 DTR 28 PGND 29 D2 RED LED H3 Hole_M3 1 C4 0.1uF/10V R2 2K/1% C14 0.1uF/10V R11 1M/1% R9 10K/1% TP2 1 Q7 AO3401 D7 BAT60A D3 YLW-GRN LED R16 10K/1% R15 10K/1% U3 ETA3425 IN 4 GND 2 EN 1 FB 5 LX 3 TP7 1 R5 10K/1% C7 10uF/10V R37 1M/1% R17 0R/1% Q4 S8050 R4 2K/1% J2 CON2-PH-SM4S 1 2 C9 0.1uF/10V TP10 1 TP5 1 D1 BAT60A TP1 1 H1 Hole_M3 1 D5 LESD5D5.0CT1G U1 ESP32-WROVER 3V3 2 IO36 4 IO39 5 IO34 6 IO35 7 IO32 8 IO33 9 IO25 10 IO26 11 IO27 12 IO14 13 IO12 14 IO23 37 IO22 36 TXD0 35 RXD0 34 IO21 33 IO19 31 IO18 30 IO5 29 SD2 17 IO4 26 IO13 16 CLK 20 SD0 21 SD1 22 IO15 23 IO2 24 EN 3 CMD 19 SD3 18 GND 1 GND 15 GND 38 PGND 39 NC2 28 NC1 27 NC 32 IO0 25 C1 22uF/10V C2 10uF/10V TP3 1 R1 10K/1% R7 10K/1% TP9 1 R12 10K/1% Q1 AO3401 H4 Hole_M3 1 D6 LESD5D5.0CT1G D4 LESD5D5.0CT1G R3 2K/1% C5 10uF/10V J1 USB-MICRO-B VBUS 1 GND 5 MT 10 MT 11 D- 2 D+ 3 ID 4 GND 6 GND 7 GND 8 GND 9 R36 2M/1% C3 10uF/10V TP6 1 C6 0.1uF/10V R35 100K/1% R19 47.5K/1%(NC) R18 2K/1% C8 0.1uF/10V L1 2.2uH/2.6A R10 10K/1% H2 Hole_M3 1 Espressif ! /86 2018.10 ! 4. Schematic  5 5 4 4 3 3 2 2 1 1 D D C C B B A A MicroSD Card Sensors I2C Mode, I2C Address: 0x6D Barometer Humidity and temperature sensor Ambient light sensor I2C Mode, I2C Address: 0x5F I2C Mode, I2C Address: 0x23 I2C ADDR: 0x68 I2C ADDR: 0x0E Magnetometer Motion sensor Keys and LEDsOLED Screen I2C ADDR: 0x3C OLED Screen I2C0_SCL I2C0_SDA I2C0_SCL I2C0_SDA I2C0_SCL I2C0_SDA I2C0_SCL I2C0_SDA I2C0_SCL I2C0_SDA LED_AZURE LED_WIFI KEY_IO0 ESP_EN SD_CLK SD_DI SD_CS SD_DO KEY_IO0 SD_CLK SD_DI SD_CS SD_DO I2C0_SCL I2C0_SDA LED_WIFI LED_AZURE I2C0_SCL I2C0_SDA OLED_RST OLED_RST ESP_EN BUZ_IO27 BUZ_IO27 VDD3V3_A VDD3V3_A VDD3V3_A VDD3V3_A VDD3V3_A VDD3V3_A VDD3V3_A VDD3V3_A VDD3V3_A VDD3V3_A VDD3V3_A VDD3V3_A VDD3V3_A VDD3V3_A VDD3V3_A VDD3V3_A VDD3V3 VDD3V3 SD_CS SD_CLK SD_DI SD_DO KEY_IO0 I2C0_SCL I2C0_SDA LED_WIFI LED_AZURE ESP_EN BUZ_IO27 U12 HTS221 VDD 1 SCL 2 DRDY 3 SDA 4 GND 5 CS 6 C29 1uF/10V R30 2K/1% D10 LESD8D3.3CAT5G R32 10K/1% J4 TF-CARD DATA3 2 CMD 3 VDD 4 CLK 5 VSS 6 DATA0 7 DATA1 8 DET 9 G1 10 DATA2 1 G2 11 G3 12 G4 13 C37 1uF/16V C19 0.1uF/10V U8 MPU-6050 AUX_DA 6 NC 3 AUX_CL 7 NC 2 CLKIN 1 NC 4 VLOGIC 8 NC 15 AD0 9 REGOUT 10 FSYNC 11 GND 18 NC 16 INT 12 NC 14 NC 5 CPOUT 20 RESV 22 RESV 21 RESV 19 SDA 24 NC 17 SCL 23 VDD 13 C39 1uF/10V C42 2.2uF/16V C16 0.1uF/10V C20 0.1uF/10V C33 0.1uF/10V D8 LESD8D3.3CAT5G C27 0.1uF/10V C24 2.2nF/50V C36 1uF/16V R41 4.7K/1% D14 BAS321 R20 10K/1% Q6 SI2302DS R22 10K/1% R31 2K/1% R40 1K/1% Q8 S8050 1 3 2 R29 1K/1% C32 0.1uF/10V U11 MAG3110 VDD 2 SDA 6 INT1 9 CAPR 4 SCL 7 VDDIO 8 CAPA 1 NC 3 GND 10 GND 5 C40 0.1uF/10V R28 10K/1% C23 0.1uF/10V C21 0.1uF/10V C25 0.1uF/10V C26 10nF/10V C38 1uF/10V R3310K/1% SW1 SW-TACT-SPST 3 1 2 4 D11 LESD8D3.3CAT5G C31 0.1uF/10V D12 YLW-GRN LED D9 LESD8D3.3CAT5G C22 0.1uF/10V R39 910K/1% R27 10K/1% R3410K/1% R38 10K/1% U9 FBM320 GND 1 CSB 2 SDA 3 VDDIO 6 ADDR 5 SCL 4 GND 7 VDD 8 J3 OLED-SMD-0P7-30P D6 24 D5 23 D4 22 D3 21 D2 20 D1 19 D0 18 E/RD 17 R/W 16 D/C 15 RES 14 CS 13 BS2 12 BS1 11 BS0 10 VDD 9 VSS 8 NC 7 VBAT 6 C2N 5 C1P 4 C2N 3 C2P 2 NC 1 D7 25 IREF 26 VCOMH 27 VCC 28 VLSS 29 NC 30 U10 BH1750FVI VCC 1 ADDR 2 GND 3 SCL 6 DVI 5 SDA 4 R24 10K/1%(NC) C28 1uF/10V R21 10K/1% Q5 SI2302DS BZ1 BUZZER-5020 D13 YLW-GRN LED C41 4.7uF/16V SW2 SW-TACT-SPST 3 1 2 4 C30 0.1uF/10V C34 0.1uF/10V Espressif ! /87 2018.10 Disclaimer and Copyright Notice Information in this document, including URL references, is subject to change without notice. THIS DOCUMENT IS PROVIDED AS IS WITH NO WARRANTIES WHATSOEVER, INCLUDING ANY WARRANTY OF MERCHANTABILITY, NON-INFRINGEMENT, FITNESS FOR ANY PARTICULAR PURPOSE, OR ANY WARRANTY OTHERWISE ARISING OUT OF ANY PROPOSAL, SPECIFICATION OR SAMPLE. All liability, including liability for infringement of any proprietary rights, relating to use of information in this document is disclaimed. No licenses express or implied, by estoppel or otherwise, to any intellectual property rights are granted herein. The Wi-Fi Alliance Member logo is a trademark of the Wi-Fi Alliance. The Bluetooth logo is a registered trademark of Bluetooth SIG. All trade names, trademarks and registered trademarks mentioned in this document are property of their respective owners, and are hereby acknowledged. Copyright © 2018 Espressif Inc. All rights reserved. Espressif IoT Team" www.espressif.com 