From: Pavel Pisa Date: Mon, 10 Oct 2016 08:24:30 +0000 (+0200) Subject: RPi DC motor control: update schematic diagram to match FPGA version alternative. X-Git-Url: http://rtime.felk.cvut.cz/gitweb/ert_linux_web.git/commitdiff_plain/aec536fc03ddc2ac8f33e1854cd0e62d9abf2421 RPi DC motor control: update schematic diagram to match FPGA version alternative. Signed-off-by: Pavel Pisa --- diff --git a/rpi-motor-control/rpi-mc-wwrap-schema.pdf b/rpi-motor-control/rpi-mc-wwrap-schema.pdf index e0022cc..3c1fae1 100644 Binary files a/rpi-motor-control/rpi-mc-wwrap-schema.pdf and b/rpi-motor-control/rpi-mc-wwrap-schema.pdf differ diff --git a/rpi-motor-control/rpi-mc-wwrap-schema.svg b/rpi-motor-control/rpi-mc-wwrap-schema.svg index 585cbe8..a110345 100644 --- a/rpi-motor-control/rpi-mc-wwrap-schema.svg +++ b/rpi-motor-control/rpi-mc-wwrap-schema.svg @@ -18,7 +18,7 @@ sodipodi:docname="rpi-mc-wwrap-schema.svg">image/svg+xml3.3V 1 + sodipodi:nodetypes="cc" />3.3V 1 + GPIO2 SDA 3 + xml:space="preserve" + style="font-size:9.59999943px;font-style:normal;font-weight:normal;text-align:end;line-height:125%;letter-spacing:0px;word-spacing:0px;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans" + x="96.865646" + y="-416.69208" + id="text14951" + sodipodi:linespacing="125%" + transform="scale(0.90835374,-1.1008927)">GPIO2 SDA 3 + GPIO3 SCL 5 + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="101.2088" + y="-382.31726" + id="text14955" + sodipodi:linespacing="125%" + transform="scale(0.86968251,-1.1498449)">GPIO3 SCL 5 + GPIO4 CLK 7 + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="88.110718" + y="-420.45081" + id="text14959" + sodipodi:linespacing="125%" + transform="scale(1,-1)">GPIO4 CLK 7 + GND 9 + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="87.965408" + y="-401.31641" + id="text14967" + sodipodi:linespacing="125%" + transform="scale(1,-1)">GND 9 + GPIO17 11 + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="88.176346" + y="-382.18207" + id="text14971" + sodipodi:linespacing="125%" + transform="scale(1,-1)">GPIO17 11 + GPIO27 13 + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="88.059158" + y="-363.04767" + id="text14979" + sodipodi:linespacing="125%" + transform="scale(1,-1)">GPIO27 13 + GPIO22 15 + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="88.129471" + y="-343.9133" + id="text14983" + sodipodi:linespacing="125%" + transform="scale(1,-1)">GPIO22 15 + 3.3V 17 + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="88.110718" + y="-324.77893" + id="text14987" + sodipodi:linespacing="125%" + transform="scale(1,-1)">3.3V 17 + GPIO10 MOSI 19 + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="87.965408" + y="-305.64456" + id="text14991" + sodipodi:linespacing="125%" + transform="scale(1,-1)">GPIO10 MOSI 19 + GPIO9 MISO 21 + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="88.176346" + y="-286.51016" + id="text14999" + sodipodi:linespacing="125%" + transform="scale(1,-1)">GPIO9 MISO 21 + GPIO11 SCLK 23 + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="88.059158" + y="-267.37579" + id="text15003" + sodipodi:linespacing="125%" + transform="scale(1,-1)">GPIO11 SCLK 23 + GND 25 + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:end;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:end;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="88.129471" + y="-248.24138" + id="text15007" + sodipodi:linespacing="125%" + transform="scale(1,-1)">GND 25 + 2 5V + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="136.04614" + y="-477.96844" + id="text15011" + sodipodi:linespacing="125%" + transform="scale(1,-1)">2 5V + 4 5V + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="136.28055" + y="-458.84906" + id="text15015" + sodipodi:linespacing="125%" + transform="scale(1,-1)">4 5V + 6 GND + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="136.07896" + y="-439.72986" + id="text15019" + sodipodi:linespacing="125%" + transform="scale(1,-1)">6 GND + 8 GPIO14 TX + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="136.09772" + y="-420.61053" + id="text15023" + sodipodi:linespacing="125%" + transform="scale(1,-1)">8 GPIO14 TX + 10 GPIO15 RX + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="135.69461" + y="-401.49121" + id="text15027" + sodipodi:linespacing="125%" + transform="scale(1,-1)">10 GPIO15 RX + 12 GPIO18 PWM + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="135.69461" + y="-382.37195" + id="text15031" + sodipodi:linespacing="125%" + transform="scale(1,-1)">12 GPIO18 PWM + 14 GND + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="135.69461" + y="-363.25269" + id="text15035" + sodipodi:linespacing="125%" + transform="scale(1,-1)">14 GND + 16 GPIO23 + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="135.69461" + y="-344.13336" + id="text15039" + sodipodi:linespacing="125%" + transform="scale(1,-1)">16 GPIO23 + 18 GPIO24 + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="135.69461" + y="-325.0141" + id="text15043" + sodipodi:linespacing="125%" + transform="scale(1,-1)">18 GPIO24 + 20 GND + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="136.04614" + y="-305.89478" + id="text15047" + sodipodi:linespacing="125%" + transform="scale(1,-1)">20 GND + 22 GPIO25 + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="136.04614" + y="-286.77548" + id="text15051" + sodipodi:linespacing="125%" + transform="scale(1,-1)">22 GPIO25 + 24 GPIO8 CE0 + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="136.04614" + y="-267.65619" + id="text15055" + sodipodi:linespacing="125%" + transform="scale(1,-1)">24 GPIO8 CE0 + 26 GPIO7 CE1 + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="136.04614" + y="-248.53688" + id="text15059" + sodipodi:linespacing="125%" + transform="scale(1,-1)">26 GPIO7 CE1 + Raspberry Pi - P1 + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="65.548203" + y="-500.16644" + id="text15063" + sodipodi:linespacing="125%" + transform="scale(1,-1)">Raspberry Pi - P1 + 3.3V UART + style="fill:none;stroke:#000000;stroke-width:1.91359997;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" + d="m 218.18377,417.87464 0,76.64187 -202.891937,0 0,-153.12601 71.787229,0 0,-0.0591" + id="path15073" + inkscape:connector-curvature="0" />3.3V UART + 1 GND -2 TX + style="fill:none;stroke:#000000;stroke-width:1.91359997;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" + d="m 229.77759,568.25992 -59.30687,0 0,-131.09025 -26.89433,0" + id="path15940" + inkscape:connector-curvature="0" + sodipodi:nodetypes="cccc" />1 GND + 3 3.3V + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="240.90816" + y="-545.26514" + id="text15011-7" + sodipodi:linespacing="125%" + transform="scale(1,-1)">2 TX + 4 RX -CHB + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="240.90816" + y="-525.92609" + id="text15011-3" + sodipodi:linespacing="125%" + transform="scale(1,-1)">3 3.3V + CHA -IRC + xml:space="preserve" + style="font-size:9.60000038px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans" + x="240.90816" + y="-506.5871" + id="text15011-74" + sodipodi:linespacing="125%" + transform="scale(1,-1)">4 RX + HI DRV + id="path16831" + d="m 530.40079,383.03142 0,-6" + style="fill:none;stroke:#000000;stroke-width:2.4000001;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />CHB + +CHA + +IRC + +HI DRV + LO DRV + id="g1346" + transform="matrix(0.44601962,0,0,-0.44601962,-18.39748,622.79411)" + style="fill:#000000;fill-opacity:1;stroke:none">LO DRV + IN + id="g1356" + transform="matrix(0.44601962,0,0,-0.44601962,-18.39748,622.79411)" + style="fill:#000000;fill-opacity:1;stroke:none">IN + HI DRV + inkscape:connector-curvature="0" + id="path1374" + style="fill:none;stroke:#000000;stroke-width:1.91359997;stroke-linecap:round;stroke-linejoin:bevel;stroke-miterlimit:7.71137094;stroke-opacity:1;stroke-dasharray:none" + d="m 495.86314,360.53457 22.30098,0" />HI DRV + LO DRV + id="g1546" + transform="matrix(0.44601962,0,0,-0.44601962,-18.39748,622.79411)" + style="fill:#000000;fill-opacity:1;stroke:none">LO DRV + IN + id="g1556" + transform="matrix(0.44601962,0,0,-0.44601962,-18.39748,622.79411)" + style="fill:#000000;fill-opacity:1;stroke:none">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 +DCMOTOR -Motor Power Supply -Czech Technical University in PragueDepartemet of Control Engineering FEERadek Mečiar and Pavel Píša 2014 -RPi Motor Control Interface Prototype + id="path6168" + style="fill:none;stroke:#000000;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:10;stroke-opacity:1;stroke-dasharray:none" + d="m 880,1620 -167.7305,0" + sodipodi:nodetypes="cc" />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. \ No newline at end of file