ESP8266-EVB-BAT Pinout for Arduino

Started by borzo83, May 09, 2016, 12:35:29 AM

Previous topic - Next topic

borzo83

Is there a Pinout scheme for Arduino IDE, didn't found anything.

Thanks in advance!

LubOlimex

Hey,

The ESP8266-EVB-BAT board communicates via the UART data connection (RX and TX). The guide on how to use Arduino IDE with the board can be found here: https://www.olimex.com/Products/IoT/ESP8266-EVB/resources/ESP8266-EVB-how-to-use-Arduino.pdf

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

borzo83

#2
Thanks for reply.

I found this document and I would like to use the CON1 Connector for my project.


As I found out, the pins from this connector dont match with the physical pinout.
For example GPIO16 is in Arduino IDE Pin 16 and not 7, GPIO0/BUT is 0 and not 16.
I look for a table that translate all 20 Pins from the connector to Arduino IDE. Also it's not clear for me what the pin names means exactly (Im a beginner :), for example ADC or STAT1 etc. What I need is a bunch of normal GPIO's for servo signal, buttons and LED's.

For any help thanks in advance!
Boris

KNK

Quote from: borzo83 on May 09, 2016, 01:06:00 PM
For example GPIO16 is in Arduino IDE Pin 16 and not 7, GPIO0/BUT is 0 and not 16.

You have just answered your own question:
GPIO0   - pin 0
GPIO1   - pin 1
...
GPIO16   - pin 16
ADC   - pin 17

You can't use GPIO6 to GPIO11, because those are used from the Flash. Can't attach a file, but below is the full list of pin definitions:

#define GPIO0 0
#define GPIO1 1
#define GPIO2 2
#define GPIO3 3
#define GPIO4 4
#define GPIO5 5
#define GPIO6 6
#define GPIO7 7
#define GPIO8 8
#define GPIO9 9
#define GPIO10 10
#define GPIO11 11
#define GPIO12 12
#define GPIO13 13
#define GPIO14 14
#define GPIO15 15
#define GPIO16 16

#define ADC 17


// GPIO pin IO index
#define ioGPIO0 3 // SPI_CS2
#define ioGPIO1 10 // SPI_CS1
#define ioGPIO2 4
#define ioGPIO3 9
#define ioGPIO4 2
#define ioGPIO5 1
#define ioGPIO6 N/A // SD_CLK
#define ioGPIO7 N/A // SD_D0
#define ioGPIO8 N/A // SD_D1
#define ioGPIO9 11 // SD_D2
#define ioGPIO10 12 // SD_D3
#define ioGPIO11 N/A // SD_CMD SPI_CS0
#define ioGPIO12 6
#define ioGPIO13 7
#define ioGPIO14 5
#define ioGPIO15 8
#define ioGPIO16 0


/*
ESP8266-EVB definitions

ADC Vbat
GPIO6 to GPIO10 -> flash
GPIO16 FREE
*/
#define EVB_BUTT GPIO0
#define EVB_RELAY GPIO5

#define UART_TXD GPIO1
#define UART_RXD GPIO3

//#define I2C_SCL GPIO14
#define I2C_SCL GPIO4
#define I2C_SDA GPIO2

#define SPI_MISO GPIO12
#define SPI_MOSI GPIO13
#define SPI_CLK GPIO14
#define SPI_CS GPIO15

#define SPI_CS0 GPIO11
#define SPI_CS1 GPIO1
#define SPI_CS2 GPIO0

// chip definitions
#define MTDI GPIO12
#define MTCK GPIO13
#define MTMS GPIO14
#define MTDO GPIO15

#define UTXD GPIO1
#define URXD GPIO3

#define SD_CLK GPIO6
#define SD_CMD GPIO11
#define SD_D0 GPIO7
#define SD_D1 GPIO8
#define SD_D2 GPIO9
#define SD_D3 GPIO10


borzo83

Thank you KNK, this helps me!

I have another question, how can I connect for example a OLED Display from Olimex to the UEXT Connector and make use of the GPIOs, they are blocked than by the display I/O, right?

KNK

If your OLED display is I2C, you can connect multiple I2C devices on the same bus, but you can't use the pins as GPIO