<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><div class=""></div><div class=""><br class=""></div><div class="">and the ESP32 MCU pinout like this:</div><div class=""><br class=""></div><div class=""><div class="">New pinout for MCU:</div><div class=""><br class=""></div><blockquote class="" style="margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div class=""><table border="0" cellpadding="0" cellspacing="0" width="1235" class="" style="border-collapse: collapse; width: 1235pt;"><colgroup class=""><col width="65" span="2" class="" style="width: 65pt;"><col width="619" class="" style="width: 619pt;"><col width="94" class="" style="width: 94pt;"><col width="392" class="" style="width: 392pt;"></colgroup><tbody class=""><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl69" width="65" style="height: 15pt; width: 65pt;">Pin</td><td class="xl69" width="65" style="width: 65pt;">Type</td><td class="xl64" width="619" style="width: 619pt;">Function</td><td class="xl64" width="94" style="width: 94pt;">Name</td><td class="xl64" width="392" style="width: 392pt;">Function</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">1</td><td class="xl68">P</td><td class="">Ground</td><td class="xl67">GND</td><td class="">Ground</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">2</td><td class="xl68">P</td><td class="">Power supply.</td><td class="xl67">3.3V</td><td class="">Power supply to ESP32 WROOM32</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">3</td><td class="xl68">I</td><td class="">Chip-enable signal. Active high.</td><td class="xl67">ESP32_EN</td><td class="">"EN" switch</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">4</td><td class="xl68">I</td><td class="">GPIO36, SENSOR_VP, ADC_H, ADC1_CH0, RTC_GPIO0</td><td class="xl67">ADC_IN</td><td class="">ADC in (from 12V vehicle power voltage divider)</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">5</td><td class="xl68">I</td><td class="">GPIO39, SENSOR_VN, ADC1_CH3, ADC_H, RTC_GPIO3</td><td class="xl67">SD_DET</td><td class="">SD Card DETECT</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">6</td><td class="xl68">I</td><td class="">GPIO34, ADC1_CH6, RTC_GPIO4</td><td class="xl67">SP_INT1</td><td class="">VSPI INT 1</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">7</td><td class="xl68">I</td><td class="">GPIO35, ADC1_CH7, RTC_GPIO5</td><td class="xl67">SP_INT2</td><td class="">VSPI INT 2</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">8</td><td class="xl68">I/O</td><td class="">GPIO32, XTAL_32K_P (32.768 kHz crystal oscillator input), ADC1_CH4, TOUCH9, RTC_GPIO9</td><td class="xl67">EXP_1</td><td class="">Expansion GPIO 1</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">9</td><td class="xl68">I/O</td><td class="">GPIO33, XTAL_32K_N (32.768 kHz crystal oscillator output), ADC1_CH5, TOUCH8, RTC_GPIO8</td><td class="xl67">EXP_2</td><td class="">Expansion GPIO 2</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">10</td><td class="xl68">I/O</td><td class="">GPIO25, DAC_1, ADC2_CH8, RTC_GPIO6, EMAC_RXD0</td><td class="xl67">CAN_TXD</td><td class="">CAN, tx to transceiver</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">11</td><td class="xl68">I/O</td><td class="">GPIO26, DAC_2, ADC2_CH9, RTC_GPIO7, EMAC_RXD1</td><td class="xl67">CAN_RXD</td><td class="">CAN, rx from transceiver</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">12</td><td class="xl68">I/O</td><td class="">GPIO27, ADC2_CH7, TOUCH7, RTC_GPIO17, EMAC_RX_DV</td><td class="xl67">SP_CS2</td><td class="">VSPI CS 2 (MCP2515)</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">13</td><td class="xl68">I/O</td><td class="xl63">GPIO14, ADC2_CH6, TOUCH6, RTC_GPIO16, MTMS, HSPICLK, HS2_CLK, SD_CLK, EMAC_TXD2</td><td class="xl67">SD_CLK</td><td class="">SD Card CLK</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">14</td><td class="xl68">I/O</td><td class="">GPIO12, ADC2_CH5, TOUCH5, RTC_GPIO15, MTDI, HSPIQ, HS2_DATA2, SD_DATA2, EMAC_TXD3</td><td class="xl67">SD_DATA2</td><td class="">SD Card DATA2</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">15</td><td class="xl68">P</td><td class="">Ground</td><td class="xl67">GND</td><td class="">Ground</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">16</td><td class="xl68">I/O</td><td class="">GPIO13, ADC2_CH4, TOUCH4, RTC_GPIO14, MTCK, HSPID, HS2_DATA3, SD_DATA3, EMAC_RX_ER</td><td class="xl67">SD_DATA3</td><td class="">SD Card DATA3</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl71" style="height: 15pt;">17</td><td class="xl71">I/O</td><td class="xl65">GPIO9, SD_DATA2, SPIHD, HS1_DATA2, U1RXD</td><td class="">FL_DATA2</td><td class="">SPI flash on ESP-WROOM-32</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl71" style="height: 15pt;">18</td><td class="xl71">I/O</td><td class="xl65">GPIO10, SD_DATA3, SPIWP, HS1_DATA3, U1TXD</td><td class="">FL_DATA3</td><td class="">SPI flash on ESP-WROOM-32</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl71" style="height: 15pt;">19</td><td class="xl71">I/O</td><td class="xl65">GPIO11, SD_CMD, SPICS0, HS1_CMD, U1RTS</td><td class="">FL_CS1</td><td class="">SPI flash on ESP-WROOM-32</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl71" style="height: 15pt;">20</td><td class="xl71">I/O</td><td class="xl65">GPIO6, SD_CLK, SPICLK, HS1_CLK, U1CTS</td><td class="">FL_CLK</td><td class="">SPI flash on ESP-WROOM-32</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl71" style="height: 15pt;">21</td><td class="xl71">I/O</td><td class="xl65">GPIO7, SD_DATA0, SPIQ, HS1_DATA0, U2RTS</td><td class="">FL_DATA0</td><td class="">SPI flash on ESP-WROOM-32</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl71" style="height: 15pt;">22</td><td class="xl71">I/O</td><td class="xl66">GPIO8, SD_DATA1, SPID, HS1_DATA1, U2CTS</td><td class="">FL_DATA1</td><td class="">SPI flash on ESP-WROOM-32</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">23</td><td class="xl68">I/O</td><td class="">GPIO15, ADC2_CH3, TOUCH3, MTDO, HSPICS0, RTC_GPIO13, HS2_CMD, SD_CMD, EMAC_RXD3</td><td class="xl67">SD_CMD</td><td class="">SD Card CMD</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">24</td><td class="xl68">I/O</td><td class="">GPIO2, ADC2_CH2, TOUCH2, RTC_GPIO12, HSPIWP, HS2_DATA0, SD_DATA0</td><td class="xl67">SD_DATA0</td><td class="">SD Card DATA0</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">25</td><td class="xl68">I/O</td><td class="">GPIO0, ADC2_CH1, TOUCH1, RTC_GPIO11, CLK_OUT1, EMAC_TX_CLK</td><td class="xl67">ESP32_IO0</td><td class="">"BOOT" switch</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">26</td><td class="xl68">I/O</td><td class="">GPIO4, ADC2_CH0, TOUCH0, RTC_GPIO10, HSPIHD, HS2_DATA1, SD_DATA1, EMAC_TX_ER</td><td class="xl67">SD_DATA1</td><td class="">SD Card DATA1</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">27</td><td class="xl68">I/O</td><td class="">GPIO16, HS1_DATA4, U2RXD, EMAC_CLK_OUT</td><td class="xl67">MDM_TXD</td><td class="">UART 2, TX to modem</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">28</td><td class="xl68">I/O</td><td class="">GPIO17, HS1_DATA5, U2TXD, EMAC_CLK_OUT_180</td><td class="xl67">MDM_RXD</td><td class="">UART 2, RX from modem</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">29</td><td class="xl68">I/O</td><td class="">GPIO5, VSPICS0, HS1_DATA6, EMAC_RX_CLK</td><td class="xl67">SP_CS1</td><td class="">VSPI CS 1 (MCP2515)</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">30</td><td class="xl68">I/O</td><td class="">GPIO18, VSPICLK, HS1_DATA7</td><td class="xl67">SP_CLK</td><td class="">VSPI CLK</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">31</td><td class="xl68">I/O</td><td class="">GPIO19, VSPIQ, U0CTS, EMAC_TXD0</td><td class="xl67">SP_MISO</td><td class="">VSPI MISO</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl71" style="height: 15pt;">32</td><td class="xl71">-</td><td class="xl65">-</td><td class="xl65">n/a</td><td class="xl65">No connection</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">33</td><td class="xl68">I/O</td><td class="xl63">GPIO21, VSPIHD, EMAC_TX_EN</td><td class="xl67">SP_CS3</td><td class="">VSPI CS3 (MAX7317 I/O expander)</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">34</td><td class="xl68">I/O</td><td class="">GPIO3, U0RXD, CLK_OUT2</td><td class="xl67">CSL_TXD</td><td class="">UART 0, TX to console</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">35</td><td class="xl68">I/O</td><td class="">GPIO1, U0TXD, CLK_OUT3, EMAC_RXD2</td><td class="xl67">CSL_RXD</td><td class="">UART 0, RX from console</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">36</td><td class="xl68">I/O</td><td class="">GPIO22, VSPIWP, U0RTS, EMAC_TXD1</td><td class="xl67">FL_CS2</td><td class="">SPI to external flash, Chip Select</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">37</td><td class="xl68">I/O</td><td class="">GPIO23, VSPID, HS1_STROBE</td><td class="xl67">SP_MOSI</td><td class="">VSPI MOSI</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">38</td><td class="xl68">P</td><td class="">Ground</td><td class="xl67">GND</td><td class="">Ground</td></tr><tr height="15" class="" style="height: 15pt;"><td height="15" class="xl70" style="height: 15pt;">39</td><td class="xl68">P</td><td class="">Ground</td><td class="xl67">GND</td><td class="">Ground</td></tr></tbody></table></div></blockquote><div class=""><br class=""></div></div><div class="">Overall, that gives us two free GPIO directly on the ESP-32 and eight free GPIO on the MAX7317 expander.</div><div class=""><br class=""></div><div class="">If China is OK with that, they’ll finalise the board layout next week and make a couple of development boards to ensure that all the components work as expected.</div><div class=""><br class=""></div><div class=""><div class="">I attached the revised draft schematic (2017-05-01). This one also incorporates the change to the external flash arrangement.</div><div class=""><br class=""></div><div class="">Regards, Mark.</div><div class=""><br class=""></div><div class=""></div></div></body></html>