Wiren Board 4: List of GPIOs
This is the approved revision of this page, as well as being the most recent.
GPIOs for FETs (open-drain outputs)
| terminal block | function | GPIO # | SoM pin | comments |
| ADC1 terminal block | FET/ADC | 17 | 20 @ CON1 | Open-drain output; ADC channel 3 |
| ADC2 terminal block | FET/ADC | 7 | 18 @ CON1 | open-drain output; ADC channel 4 |
| ADC3 terminal block | FET/ADC | 5 | 16 @ CON1 | open-drain output; ADC channel 6 |
| ADC4 terminal block (out) | FET/ADC/DI | 53 | 14 @ CON1 | open-drain output; ADC channel 0; digital input |
| ADC5 terminal block (out) | FET/ADC/DI | 2 | 13 @ CON1 | open-drain output; ADC channel 1; digital input |
| D1 terminal block (out) | FET/DI | 248 | GPIO6@ LAN9514 | open-drain output; "dry contact" input |
| D2 terminal block (out) | FET/DI | 247 | GPIO5@ LAN9514 | open-drain output; "dry contact" input |
| D3 terminal block (out) | FET/DI | 246 | GPIO4@ LAN9514 | open-drain output; "dry contact" input |
| D4 terminal block (out) | FET/DI | 245 | GPIO3@ LAN9514 | open-drain output; dry contact input |
GPIOs on terminal blocks
| terminal block | function | GPIO # | SoM pin | comments |
| ADC4 terminal block (in) | FET/ADC/DI | 123 | GPIO3 @ SC16IS752 | open-drain output; ADC channel 0; digital input |
| ADC5 terminal block (in) | FET/ADC/DI | 1 | 12@CON1 | open-drain output; ADC channel 1; digital input |
| R1 terminal block | GPIO, resistive sensors input | 16 | 19 @ CON1 | ADC channel 7 |
| R2 terminal block | GPIO, resistive sensors input | 6 | 17 @ CON1 | ADC channel 5 (3.3V pull-up (how?)) |
| W1 terminal block | 1-wire/GPIO | 52 | 26 @ CON1 | internal pull-up, 1-wire by default |
| W2 terminal block | 1-wire/GPIO | 50 | 25 @ CON1 | internal pull-up, 1-wire by default |
GPIOs on dry contact inputs
| terminal block | function | GPIO # | SoM pin | comments | |
| D1 terminal block (in) | FET/DI | 36 | 7 @ CON1 | open drain output; "dry contact" input | |
| D2 terminal block (in) | FET/DI | 37 | 8 @ CON1 | open drain output; "dry contact" input | |
| D3 terminal block (in) | FET/DI | 38 | 9 @ CON1 | open drain output; "dry contact" input | |
| D4 terminal block (in) | FET/DI | 39 | 10 @ CON1 | open drain output; "dry contact" input |
GPIOs on relays
| Linux GPIO # | SoM pin | comments |
| 33 | 4@CON1 | Relay 2 |
| 34 | 5@CON1 | Relay 1 |
GPIOs for internal use
| Linux GPIO | ||
| 51 | 27 @ CON1 | ADC MUX A |
| 57 | 22 @ CON1 | ADC MUX B |
| 54 | 21 @ CON1 | ADC MUX C |
| 35 | 6 @ CON1 | 3.3V rail shutdown |
| 3 | 12@CON2 | sc16is752 chip select |
| 25 | 27@CON2 | IRQ sc16is752 |
| 92 | 24 @ CON2 | RFM69H IRQ |
| 4 | 15 @ CON1 | RFM69H chip select |
| 91 | 25 @ CON2 | RFM69H _DIO2 |
| NRF24L01 chip select | ||
| NRF24L01 enable | ||
| 120 | GPIO0 @ SC16IS752 | RS-485 isolated supply enable |
| 124 | GPIO4 @ SC16IS752 | SIM900R power FET |
| 125 | GPIO5 @ SC16IS752 | SIM900R power KEY |
| 249 | GPIO7 @ LAN951x | SIM900R power status (input) |
| 32 | 3@CON1 | watchdog output |
| 60 / PWM2 | 28@CON2 | Buzzer |
| 126 | GPIO6 @ SC16IS752 | Red LED |
| 127 | GPIO7 @ SC16IS752 | Green LED |
GPIOs on extension slot
| Linux GPIO | |||
| 55 | 7 @ CON2 | CE | i2c scl, 3.3V pull-up |
| 56 | 8 @ CON2 | CSN | i2c sda, 3.3V pull-up |
| 23 | 26 @ CON2 | IRQ |
See also GPIO Howto