image/svg+xml3.3V 1
GPIO2 SDA 3
GPIO3 SCL 5
GPIO4 CLK 7
GND 9
GPIO17 11
GPIO27 13
GPIO22 15
3.3V 17
GPIO10 MOSI 19
GPIO9 MISO 21
GPIO11 SCLK 23
GND 25
2 5V
4 5V
6 GND
8 GPIO14 TX
10 GPIO15 RX
12 GPIO18 PWM
14 GND
16 GPIO23
18 GPIO24
20 GND
22 GPIO25
24 GPIO8 CE0
26 GPIO7 CE1
Raspberry Pi - P1
3.3V UART
1 GND
2 TX
3 3.3V
4 RX
CHB
CHA
IRC
HI DRV
LO DRV
IN
HI DRV
LO DRV
IN
DCMOTOR
Motor Power Supply
Czech Technical University in PragueDepartemet of Control Engineering FEERadek Mečiar and Pavel Píša 2014
Simple DC Motor Control Interface Prototype for Raspberry Pi
GPIO0 ID_SD 27
28 GPIO1 ID_SC
GPIO5 29
30 GND
GPIO6 31
32 GPIO12
GPIO13 33
34 GND
GPIO19 MISO 35
36 GPIO16 CE2
GPIO26 37
38 GPIO20 MOSI
GND 39
40 GPIO21 SCLK
Part of the projectRaspberry Pi Real-Time Control Support and Experiments https://github.com/ppisa/rpi-rt-control/IRC driver is available at https://github.com/ppisa/rpi-rt-control/blob/master/kernel/modules/rpi_gpio_irc_module.cGPIO channel A is connected to GPIO 23 and 24. One for rising and one for faling edge detection.The dashed line connection of IRC channel B to GPIO7 and 8 is alternative for Raspberry Pi 1 A.Solid line to GPIO 26 an 27 is better option for all other variants which does not block SPI interface.