The WIOesp IO16 type is based on the ESP32 which provides 16 I/O onboard.
A PCB is developed by GCA which is based on the Wemos D1 Mini ESP32 pin layout. It is compact sized and measures only 66 x 44mm.
Not all GCA Extension Units are 3V3 compatible; Check the documentation.
If 5V I/O is needed: Check the WIO-01 and WIO-02.
The WIO type must be set to IO16.
Feature | Connector | Pin | Remark | Mapped I/O Pins |
---|---|---|---|---|
16 x I/O | IO1 + IO2 | 1-8, 1-8 | 3V3, GCA compatible | |
64 x NeoPixel | NP1 | WS2811 | ||
4 x Servo | servo 1-4 | or, re, br | IO1 pin 1-4 | |
I2C | I2C1 | Displays, Sensors, … | ||
UART | UART1 | ID12LA, RailCom, … (Tx and Rx are swapped) | ||
Stepper motor | IO1 | 1-4 + 5 | 3W Fast is supported, Cal Pin GPIO15. | IO1 pin 1-4 + 5 |
4 x Charlyplexing | IO1 | 1-4, 5-8 | LED signals | IO1 pin 1-8 |
Hall sensor | NP1 | Speed and distance (Mutual exclusive with NeoPixel) |
Note: Mapped I/O pins can not be used as normal I/O in case the mapping option has been activated.
4x onboard or 16x with a PCA9685-Modul over I2C.
The NeoPixel pin will be used as interrupt input for counting the Hall sensor ticks.
Setting the wheel diameter in the locomotive or wagon properties will calculate distance and speed.
Function mapping if the Mobile Coach option is set:
Function | Pin | Description | I/O Configuration |
---|---|---|---|
F0 | fwd=IO2-1, rev=IO2-2 | Front and back lights depending of running direction. | Output |
F1…F6 | IO2-3…IO2-8 | Output or Pulse |
Servo and Pixel functions are standard commands and will work independent of this coach option.
An ID12LA RFID reader can also be connected which is also independent of the coach option.
I2C | Nr. | GP |
---|---|---|
SDA | 14 | SDA |
SCL | 16 | SCL |
I2C | Nr. | GP |
---|---|---|
TX | 20 | TXD |
RX | 18 | RXD |
The Neopixel connector is not pin compatible with the WIO-01 and WIO-02.
NeoPixel | Nr. | GP |
---|---|---|
Data | 13 | GPIO32 |
Battery | Nr. | GP | Remark |
---|---|---|---|
Voltage | 30 | GPIO34 |
Identify | Nr. | GP | Remark |
---|---|---|---|
Identify | 39 | RST | Identifies the WIO at the server. |
Servo | Nr. | GP |
---|---|---|
1 | 7 | GPIO0 |
2 | 9 | GPIO4 |
3 | 27 | GPIO5 |
4 | 11 | GPIO12 |
Nr | Pin | 4-wire | 3-wire | Remark |
---|---|---|---|---|
7 | GPIO0 | IN1 | CLK+ | step, define as output |
9 | GPIO4 | IN2 | DIR+ | define as output |
27 | GPIO5 | IN3 | ENABLE+ | define as output |
11 | GPIO12 | IN4 | - | define as output |
4 | GPIO15 | CAL | CAL | Hall/Reed calibrate sensor. Needs 10k pullup. (Battery check will be disabled.) |
Setting in the signal:
Control: Aspect numbers
Type Multiplex
Cabel | Nr. | GP | Remark |
---|---|---|---|
1 | 7 | GPIO0 | Main signal Adress 1, Distant signal Adress 101 |
2 | 9 | GPIO4 | |
3 | 27 | GPIO5 | |
4 | 11 | GPIO12 | |
1 | 4 | GPIO15 | Main signal Adress 5, Distant signal Adress 105 |
2 | 10 | GPIO16 | |
3 | 12 | GPIO17 | |
4 | 23 | GPIO13 | |
1 | 35 | GPIO26 | Main signal Adress 9, Distant signal Adress 109 |
2 | 33 | GPIO18 | |
3 | 32 | GPIO33 | |
4 | 31 | GPIO19 | |
1 | 29 | GPIO23 | Main signal Adress 13, Distant signal Adress 113 |
2 | 28 | GPIO14 | |
3 | 12 | GPIO27 | |
4 | 10 | GPIO25 |
All I/O used must be defined as an output.
Bank 1, connector I/O1 | ||||
---|---|---|---|---|
Pin | Port | Nr. | GP | Remark |
1 | - | - | - | +3.3V |
2 | - | - | - | Mass |
3 | 1 | 7 | GPIO0 | |
4 | 2 | 9 | GPIO4 | |
5 | 3 | 27 | GPIO5 | |
6 | 4 | 11 | GPIO12 | Must be low at boot. Use as output. |
7 | 5 | 4 | GPIO15 | |
8 | 6 | 10 | GPIO16 | |
9 | 7 | 12 | GPIO17 | |
10 | 8 | 23 | GPIO13 |
Bank 2, connector I/O1 | ||||
---|---|---|---|---|
Pin | Port | Nr. | GP | Remark |
1 | - | - | - | +3.3V |
2 | - | - | - | Mass |
3 | 9 | 35 | GPIO26 | |
4 | 10 | 33 | GPIO18 | SPI SCK |
5 | 11 | 32 | GPIO33 | |
6 | 12 | 31 | GPIO19 | SPI MISO |
7 | 13 | 29 | GPIO23 | SPI MOSI |
8 | 14 | 28 | GPIO14 | |
9 | 15 | 12 | GPIO27 | |
10 | 16 | 10 | GPIO25 |