{"product_id":"3756-pololu-dual-g2-high-power-motor-driver-24v18-for-raspberry-pi-partial-kit","title":"Pololu Dual G2 High-Power Motor Driver 24v18 for Raspberry Pi (Partial Kit)","description":"\u003cp\u003eThis add-on board makes it easy to control two high-power DC motors with a Raspberry Pi.  Its twin discrete MOSFET H-bridges support a wide \u003cstrong\u003e6.5 V to 36 V\u003c\/strong\u003e operating range and are efficient enough to deliver a continuous \u003cstrong\u003e18 A\u003c\/strong\u003e without a heat sink.  The drivers offer basic current limiting functionality, and they accept ultrasonic PWM frequencies for quieter operation.  The default pin mappings make it easy to get started, but they can be customized for more specialized applications. This version ships as a \u003cstrong\u003epartial kit\u003c\/strong\u003e; all surface-mount components are installed, but the included through-hole connectors are not soldered in.\u003c\/p\u003e\n\u003cbr\u003e\u003ch2\u003eOverview\u003c\/h2\u003e\n\u003ctable class=\"picture_with_caption right\"\u003e\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J8175.1200.jpg?6cbb22243544134e7a0c1e284bfaa702\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id dual g2 high-power motor driver for raspberry pi controlling a pair of motors. data-picture-id=\"0J8175\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J8175.250.jpg?6cbb22243544134e7a0c1e284bfaa702\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\u003c\/table\u003e\n\u003cp\u003eThese G2 dual high-power motor drivers are add-on boards for the Raspberry Pi, featuring pairs of discrete MOSFET H-bridges designed to drive two large brushed DC motors.  They are designed to mount on and plug into compatible Raspberry Pi boards (Model B+ or newer), including the \u003ca href=\"https:\/\/www.pololu.com\/product\/2759\"\u003ePi 3 Model B\u003c\/a\u003e and \u003ca href=\"https:\/\/www.pololu.com\/product\/2760\"\u003eModel A+\u003c\/a\u003e. Four versions are available so you can pick the one with the appropriate operating voltage range and output current capabilities for your project:\u003c\/p\u003e\n\u003ctable style=\"margin-bottom: 1em;\" class=\"active_controller_comparison center\"\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\u003c\/td\u003e\n\t\t\u003cth\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/3754\"\u003e\u003cimg src=\"https:\/\/a.pololu-files.com\/picture\/0J8146.75.jpg?821a91830d3a6d646905b21e9d42bc23\" alt=\"\"\u003e\u003cbr\u003eDual G2 High-\u003cbr\u003ePower Motor Driver\u003cbr\u003e18v22 for Raspberry Pi\u003c\/a\u003e\u003c\/th\u003e\n\t\t\u003cth\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/3750\"\u003e\u003cimg src=\"https:\/\/a.pololu-files.com\/picture\/0J8136.75.jpg?7d81a91028199fd72ab0a32f913496bc\" alt=\"\"\u003e\u003cbr\u003eDual G2 High-\u003cbr\u003ePower Motor Driver\u003cbr\u003e18v18 for Raspberry Pi\u003c\/a\u003e\u003c\/th\u003e\n\t\t\u003cth\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/3756\"\u003e\u003cimg src=\"https:\/\/a.pololu-files.com\/picture\/0J8149.75.jpg?8333cd42f7af680799f31347322d9ef1\" alt=\"\"\u003e\u003cbr\u003eDual G2 High-\u003cbr\u003ePower Motor Driver\u003cbr\u003e24v18 for Raspberry Pi\u003c\/a\u003e\u003c\/th\u003e\n\t\t\u003cth\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/3752\"\u003e\u003cimg src=\"https:\/\/a.pololu-files.com\/picture\/0J8139.75.jpg?f31b561d7d6bfbc41095283e79bdf980\" alt=\"\"\u003e\u003cbr\u003eDual G2 High-\u003cbr\u003ePower Motor Driver\u003cbr\u003e24v14 for Raspberry Pi\u003c\/a\u003e\u003c\/th\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003cth\u003eAbsolute max\u003cbr\u003einput voltage:\u003c\/th\u003e\n\t\t\u003ctd colspan=\"2\"\u003e30 V\u003c\/td\u003e\n\t\t\u003ctd colspan=\"2\"\u003e36 V*\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003cth\u003eMax nominal\u003cbr\u003ebattery voltage:\u003c\/th\u003e\n\t\t\u003ctd colspan=\"2\"\u003e18 V\u003c\/td\u003e\n\t\t\u003ctd colspan=\"2\"\u003e28 V\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003cth\u003eMax continuous\u003cbr\u003ecurrent per channel:\u003c\/th\u003e\n\t\t\u003ctd\u003e22 A\u003c\/td\u003e\n\t\t\u003ctd\u003e18 A\u003c\/td\u003e\n\t\t\u003ctd\u003e18 A\u003c\/td\u003e\n\t\t\u003ctd\u003e14 A\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003cth\u003eDefault active current-\u003cbr\u003elimiting threshold:\u003c\/th\u003e\n\t\t\u003ctd\u003e60 A\u003c\/td\u003e\n\t\t\u003ctd colspan=\"2\"\u003e50 A\u003c\/td\u003e\n\t\t\u003ctd\u003e40 A\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003cth\u003eAvailable with\u003cbr\u003econnectors installed?\u003c\/th\u003e\n\t\t\u003ctd\u003eNo\u003c\/td\u003e\n\t\t\u003ctd\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/3751\"\u003eYes\u003c\/a\u003e\u003c\/td\u003e\n\t\t\u003ctd\u003eNo\u003c\/td\u003e\n\t\t\u003ctd\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/3753\"\u003eYes\u003c\/a\u003e\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp class=\"small center\"\u003e* 40 V if regulator is disconnected\u003c\/p\u003e\n\u003cp\u003eThe minimum operating voltage for all four versions is 6.5 V, while the maximum operating voltages are given in the above table. The board also includes an integrated 5 V, 2.5 A switching step-down regulator that can be used to power the Raspberry Pi it is plugged into, enabling operation from a single power supply.\u003c\/p\u003e\n\u003cp\u003eThe driver’s default configuration uses six GPIO pins to control the motor drivers, making use of the Raspberry Pi’s hardware PWM outputs, and it uses two additional pins to read status outputs from the drivers. However, the pin mappings can be customized if the defaults are not convenient, and pins for current sensing and limiting are accessible on the board for more advanced applications.\u003c\/p\u003e\n\u003ctable class=\"side_by_side_pics\"\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J8143.1200.jpg?07ad0f243667a09be66b39a88d4d6c29\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id dual g2 high-power motor driver or on a raspberry pi. data-picture-id=\"0J8143\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J8143.250.jpg?07ad0f243667a09be66b39a88d4d6c29\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/td\u003e\n\t\t\u003ctd\u003e\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J8153.1200.jpg?15c71a38650c01311f89f69c00506036\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id dual g2 high-power motor driver or on a raspberry pi. data-picture-id=\"0J8153\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J8153.250.jpg?15c71a38650c01311f89f69c00506036\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003eThe board matches the Raspberry Pi HAT (Hardware Attached on Top) mechanical specification, although it does not conform to the full HAT specifications due to the lack of an ID EEPROM. (A footprint for adding your own EEPROM is available for applications where one would be useful; pull-ups on SDA, SCL, and WP are provided.)  It is \u003cem\u003enot\u003c\/em\u003e practical to use this expansion board with the original Raspberry Pi Model A or Model B due to differences in their pinout and form factor.\u003c\/p\u003e\n\u003cp\u003eThese dual motor drivers are also available as \u003ca href=\"https:\/\/www.pololu.com\/category\/218\/pololu-dual-g2-high-power-motor-driver-shields\"\u003eArduino shields\u003c\/a\u003e. For single-channel versions in a more compact form factor, consider our \u003ca href=\"https:\/\/www.pololu.com\/category\/82\/pololu-high-power-motor-drivers\"\u003eHigh-Power Motor Drivers\u003c\/a\u003e. For smaller, lower power, and lower cost alternatives designed for a Raspberry Pi, consider our \u003ca href=\"https:\/\/www.pololu.com\/product\/2755\"\u003eDual MC33926 Motor Driver for Raspberry Pi\u003c\/a\u003e, \u003ca href=\"https:\/\/www.pololu.com\/product\/3758\"\u003eDual MAX14870 Motor Driver for Raspberry Pi\u003c\/a\u003e, and \u003ca href=\"https:\/\/www.pololu.com\/product\/2753\"\u003eDRV8835 Dual Motor Driver for Raspberry Pi\u003c\/a\u003e.\u003c\/p\u003e\n\u003ch2\u003eFeatures common to all versions\u003c\/h2\u003e\n\u003cul\u003e\n\t\u003cli\u003ePWM operation up to 100 kHz\u003c\/li\u003e\n\t\u003cli\u003eMotor indicator LEDs show what the outputs are doing even when no motor is connected\u003c\/li\u003e\n\t\u003cli\u003eIntegrated 5 V, 2.5 A switching step-down voltage regulator powers the Raspberry Pi base for single-supply operation\u003c\/li\u003e\n\t\u003cli\u003e\n\u003ca href=\"https:\/\/github.com\/pololu\/dual-g2-high-power-motor-driver-rpi\"\u003ePython library\u003c\/a\u003e makes it easy to get started using this board as a motor driver expansion board\u003c\/li\u003e\n\t\u003cli\u003eGPIO pin mappings can be customized if the default mappings are not convenient\u003c\/li\u003e\n\t\u003cli\u003eCurrent sensing and limiting pins are exposed for advanced use\u003c\/li\u003e\n\t\u003cli\u003eReverse-voltage protection\u003c\/li\u003e\n\t\u003cli\u003eUndervoltage shutdown\u003c\/li\u003e\n\t\u003cli\u003eShort circuit protection\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003ch2\u003e\nDetails for item #3756\n\u003c\/h2\u003e\n\u003ctable class=\"side_by_side_pics\"\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd style=\"vertical-align: top;\"\u003e\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J8151.1200.jpg?35119b9121c4997b2f39f8e07cc0129a\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id dual g2 high-power motor driver for raspberry pi. data-picture-id=\"0J8151\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J8151.250.jpg?35119b9121c4997b2f39f8e07cc0129a\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/td\u003e\n\t\t\u003ctd style=\"vertical-align: top;\"\u003e\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J8152.1200.jpg?59163f30e64eeb50e5f65ec820172707\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id dual g2 high-power motor driver or for raspberry pi bottom view. data-picture-id=\"0J8152\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J8152.250.jpg?59163f30e64eeb50e5f65ec820172707\"\u003e\u003c\/a\u003e\u003c\/td\u003e\u003c\/tr\u003e\u003c\/table\u003e\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cul\u003e\n\t\u003cli\u003eOperating voltage: 6.5 V to 36 V (absolute maximum; not intended for use with 36 V batteries)\n\t\u003cul\u003e\n\t\t\u003cli\u003eMaximum can be increased to 40 V if regulator is disconnected (see below)\u003c\/li\u003e\n\t\u003c\/ul\u003e\n\u003c\/li\u003e\n\t\u003cli\u003eOutput current: 18 A continuous\u003c\/li\u003e\n\t\u003cli\u003eActive current limiting (chopping) with approximate default threshold of 50 A (can be adjusted lower)\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThis is the \u003cstrong\u003e24v18\u003c\/strong\u003e motor driver, which is a \u003cstrong\u003epartial kit\u003c\/strong\u003e; connectors are included but not soldered in. It can be distinguished from the other versions by its \u003cstrong\u003eblack\u003c\/strong\u003e PCB and the number \u003cstrong\u003e100\u003c\/strong\u003e on top of the six tall silver electrolytic capacitors at the corner of the board.\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption center wide\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 600px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J8150.1200.jpg?9ea3900f0dbaaf0ba2b65cddec7229a0\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"wide zoomable\" data-gallery-pictures=\"[{\" id dual g2 high-power motor driver for raspberry pi with included hardware. data-picture-id=\"0J8150\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J8150.600.jpg?9ea3900f0dbaaf0ba2b65cddec7229a0\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 600px\"\u003e\u003cp\u003ePololu Dual G2 High-Power Motor Driver 24v18 for Raspberry Pi with included hardware.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003eThe following through-hole connectors and mounting hardware are included with the board, which ships with its surface-mount components populated:\u003c\/p\u003e\n\u003cul\u003e\n\t\u003cli\u003eone \u003ca href=\"https:\/\/www.pololu.com\/product\/1037\"\u003e2×20-pin 0.1″ female header\u003c\/a\u003e\n\u003c\/li\u003e\n\t\u003cli\u003ethree \u003ca href=\"https:\/\/www.pololu.com\/product\/2440\"\u003e2-pin 5 mm terminal blocks\u003c\/a\u003e\n\u003c\/li\u003e\n\t\u003cli\u003efour \u003ca href=\"https:\/\/www.pololu.com\/product\/1952\"\u003eM2.5 standoffs\u003c\/a\u003e (11 mm length), \u003ca href=\"https:\/\/www.pololu.com\/product\/1968\"\u003escrews\u003c\/a\u003e, and \u003ca href=\"https:\/\/www.pololu.com\/product\/1967\"\u003enuts\u003c\/a\u003e\n\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eThe \u003ca href=\"https:\/\/www.pololu.com\/product\/1037\"\u003e2×20-pin 0.1″ female header\u003c\/a\u003e should be mounted to the bottom of the board (the side opposite the surface-mount components). Once soldered, this header is used to connect the board to the Raspberry Pi’s 40-pin GPIO header.  Alternatively, if you want to continue to have access to the Raspberry Pi’s 40 GPIO pins while the motor driver board is plugged in, you can install a \u003ca href=\"https:\/\/www.pololu.com\/product\/2748\"\u003estackable 2×20-pin female header\u003c\/a\u003e (not included) instead.\u003c\/p\u003e\n\u003cp\u003eYou can solder the terminal blocks to the six large through-holes to make your motor and motor power connections, or you can solder a \u003ca href=\"https:\/\/www.pololu.com\/product\/965\"\u003e0.1″ male header strip\u003c\/a\u003e (not included) into the smaller through-holes that border these larger holes. Note, however, that the terminal blocks are only rated for 16 A, and each header pin pair is only rated for a combined 6 A, so for higher-power applications, thick wires should be soldered directly to the board.\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J8155.1200.jpg?7b15509eff2d09713c2b4fb30d7dbf20\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id dual g2 high-power motor driver or for raspberry pi bottom view data-picture-id=\"0J8155\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J8155.450.jpg?7b15509eff2d09713c2b4fb30d7dbf20\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\u003c\/table\u003e\n\u003cp\u003e\u003ca href=\"https:\/\/www.pololu.com\/product\/968\"\u003eShorting blocks\u003c\/a\u003e and \u003ca href=\"https:\/\/www.pololu.com\/product\/965\"\u003e0.1″ male headers\u003c\/a\u003e (not included) can be used to make some of the more advanced optional modifications to the board, such as remapping the control pins.\u003c\/p\u003e\n\u003cp\u003eThe motor driver includes six 100 μF or 150 μF electrolytic power capacitors, and there is room to add additional capacitors (e.g. to compensate for long power wires or increase stability of the power supply). Additional power capacitors are usually not necessary, and no additional capacitors are included with this motor driver.\u003c\/p\u003e\n\u003cp\u003eA \u003ca href=\"https:\/\/www.pololu.com\/product\/2797\"\u003eRaspberry Pi\u003c\/a\u003e is \u003cstrong\u003enot included\u003c\/strong\u003e.\u003c\/p\u003e\n\u003ch2\u003eUsing the motor driver board\u003c\/h2\u003e\n\u003ctable class=\"picture_with_caption center\"\u003e\u003ctr\u003e\n\u003ctd\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J8154.1200.jpg?dbc366852703dfd798396832b7d18a23\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id dual g2 high-power motor driver or on a raspberry pi. data-picture-id=\"0J8154\" data-picture-longest_side=\"1200\" src=\"https:\/\/a.pololu-files.com\/picture\/0J8154.450.jpg?dbc366852703dfd798396832b7d18a23\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\u003c\/table\u003e\n\u003ch3\u003ePower\u003c\/h3\u003e\n\u003cp\u003eAn appropriate motor power supply should be connected to the motor driver’s large VIN and GND pads. The board includes a reverse-voltage protection circuit that helps prevent damage in case the motor power supply is connected backward. The reverse-protected input voltage can be accessed for use in other circuits through the two pins labeled VM on the left side of the board. By default, the motor power supply also feeds a 5 V, 2.5 A switching step-down regulator that provides power to the connected Raspberry Pi.\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption right\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 300px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J8169.1200.jpg?d79e61062e8253a0cef2cf380fb63c76\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id the regulator on dual g2 high-power motor driver for raspberry pi. data-picture-id=\"0J8169\" data-picture-longest_side=\"600\" src=\"https:\/\/a.pololu-files.com\/picture\/0J8169.300.jpg?d79e61062e8253a0cef2cf380fb63c76\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 300px\"\u003e\u003cp\u003eDisconnecting the regulator on the Dual G2 High-Power Motor Driver for Raspberry Pi.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003eAn ideal diode circuit on this board prevents reverse current from flowing into the motor driver board’s 5 V supply if the Raspberry Pi is separately powered (for example, through its USB power receptacle). However, starting with the Raspberry Pi 3 Model B+, there is no corresponding ideal diode circuit on the Raspberry Pi’s USB power input, so it is possible for the driver board to backfeed a USB power adapter through the Raspberry Pi. As a result, \u003cins\u003ewe do not recommend connecting external USB power\u003c\/ins\u003e to the Raspberry Pi while it is powered through the motor driver.\u003c\/p\u003e\n\u003cp\u003eBackfeeding is not an issue with older Raspberry Pi versions, which do have a diode circuit on the USB power input. With Raspberry Pi versions prior to the Pi 3 B+, it is safe to have a different power supply connected to the Raspberry Pi through its USB receptacle while the motor driver is connected and powered.\u003c\/p\u003e\n\u003cp\u003eIf you want to power the Raspberry Pi separately, the regulator can be disconnected by cutting two exposed traces on the board: one between the surface-mount pads labeled “VM” and “REG IN”, and another between the two pins by the “REG OUT” label, as shown to the right. On the 24v14 and 24v18 versions, disconnecting the regulator increases the absolute maximum operating voltage of the board to 40 V.\u003c\/p\u003e\n\u003ch3 class=\"clear\"\u003eDefault pin mappings\u003c\/h3\u003e\n\u003cp\u003eThis table shows how the Raspberry Pi’s GPIO pins are used to interface with the motor drivers:\u003c\/p\u003e\n\u003ctable class=\"reference\"\u003e\n\t\u003ctr\u003e\n\t\t\u003cth\u003eRPi\u003cbr\u003eGPIO pin\u003c\/th\u003e\n\t\t\u003cth\u003eMotor driver pin\u003c\/th\u003e\n\t\t\u003cth\u003eDescription\u003c\/th\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd style=\"text-align:center;\"\u003e5\u003c\/td\u003e\n\t\t\u003ctd\u003eMotor 1 \u003cspan class=\"overline\"\u003eFLT\u003c\/span\u003e\n\u003c\/td\u003e\n\t\t\u003ctd rowspan=\"2\"\u003eFault indicator: When the driver channel is functioning normally, this pin should be pulled high by the Raspberry Pi. In the event of a driver fault, \u003cspan class=\"overline\"\u003eFLT\u003c\/span\u003e is driven low. See below for details.\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd style=\"text-align:center;\"\u003e6\u003c\/td\u003e\n\t\t\u003ctd\u003eMotor 2 \u003cspan class=\"overline\"\u003eFLT\u003c\/span\u003e\n\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd style=\"text-align:center;\"\u003e12\u003c\/td\u003e\n\t\t\u003ctd\u003eMotor 1 PWM\u003c\/td\u003e\n\t\t\u003ctd rowspan=\"2\"\u003eMotor speed input: A PWM (pulse-width modulation) signal on this pin corresponds to a PWM output on the corresponding channel’s motor outputs. When this pin is low, the motor brakes low. When it is high, the motor is on. The maximum allowed PWM frequency is 100 kHz.\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd style=\"text-align:center;\"\u003e13\u003c\/td\u003e\n\t\t\u003ctd\u003eMotor 2 PWM\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd style=\"text-align:center;\"\u003e22\u003c\/td\u003e\n\t\t\u003ctd\u003eMotor 1 \u003cspan class=\"overline\"\u003eSLP\u003c\/span\u003e\n\u003c\/td\u003e\n\t\t\u003ctd rowspan=\"2\"\u003eInverted sleep input: This pin is pulled low by default, putting the motor driver channel into a low-current sleep mode and disabling the motor outputs (setting them to high impedance). \u003cspan class=\"overline\"\u003eSLP\u003c\/span\u003e must be driven high to enable the motor channel.\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd style=\"text-align:center;\"\u003e23\u003c\/td\u003e\n\t\t\u003ctd\u003eMotor 2 \u003cspan class=\"overline\"\u003eSLP\u003c\/span\u003e\n\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd style=\"text-align:center;\"\u003e24\u003c\/td\u003e\n\t\t\u003ctd\u003eMotor 1 DIR\u003c\/td\u003e\n\t\t\u003ctd rowspan=\"2\"\u003eMotor direction input: When DIR is low, motor current flows from output A to output B; when DIR is high, current flows from B to A.\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd style=\"text-align:center;\"\u003e25\u003c\/td\u003e\n\t\t\u003ctd\u003eMotor 2 DIR\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003ch3\u003eMotor control options\u003c\/h3\u003e\n\u003cp\u003eWith the PWM pin held low, both motor outputs will be held low (a brake operation). With PWM high, the motor outputs will be driven according to the DIR input. This allows two modes of operation: sign-magnitude, in which the PWM duty cycle controls the speed of the motor and DIR controls the direction, and locked-antiphase, in which a pulse-width-modulated signal is applied to the DIR pin with PWM held high.\u003c\/p\u003e\n\u003cp\u003eIn locked-antiphase operation, a low duty cycle drives the motor in one direction, and a high duty cycle drives the motor in the other direction; a 50% duty cycle turns the motor off. A successful locked-antiphase implementation depends on the motor inductance and switching frequency smoothing out the current (e.g. making the current zero in the 50% duty cycle case), so a high PWM frequency might be required.\u003c\/p\u003e\n\u003ctable class=\"reference\"\u003e\n\t\u003ctr\u003e\n\t\t\u003cth style=\"text-align:center;\" colspan=\"3\"\u003eInputs\u003c\/th\u003e\n\t\t\u003cth colspan=\"2\"\u003eOutputs\u003c\/th\u003e\n\t\t\u003cth rowspan=\"2\"\u003eOperation\u003c\/th\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003cth\u003e\u003cspan class=\"overline\"\u003eSLP\u003c\/span\u003e\u003c\/th\u003e\n\t\t\u003cth\u003eDIR\u003c\/th\u003e\n\t\t\u003cth\u003ePWM\u003c\/th\u003e\n\t\t\u003cth\u003eMxA\u003c\/th\u003e\n\t\t\u003cth\u003eMxB\u003c\/th\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e1\u003c\/td\u003e\n\t\t\u003ctd\u003e0\u003c\/td\u003e\n\t\t\u003ctd\u003ePWM\u003c\/td\u003e\n\t\t\u003ctd\u003ePWM (H\/L)\u003c\/td\u003e\n\t\t\u003ctd\u003eL\u003c\/td\u003e\n\t\t\u003ctd\u003eforward\/brake at speed \u003cem\u003ePWM %\u003c\/em\u003e\n\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e1\u003c\/td\u003e\n\t\t\u003ctd\u003e1\u003c\/td\u003e\n\t\t\u003ctd\u003ePWM\u003c\/td\u003e\n\t\t\u003ctd\u003eL\u003c\/td\u003e\n\t\t\u003ctd\u003ePWM (H\/L)\u003c\/td\u003e\n\t\t\u003ctd\u003ereverse\/brake at speed \u003cem\u003ePWM %\u003c\/em\u003e\n\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e1\u003c\/td\u003e\n\t\t\u003ctd\u003eX\u003c\/td\u003e\n\t\t\u003ctd\u003e0\u003c\/td\u003e\n\t\t\u003ctd\u003eL\u003c\/td\u003e\n\t\t\u003ctd\u003eL\u003c\/td\u003e\n\t\t\u003ctd\u003ebrake low (outputs shorted to ground)\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\t\u003ctr\u003e\n\t\t\u003ctd\u003e0\u003c\/td\u003e\n\t\t\u003ctd\u003eX\u003c\/td\u003e\n\t\t\u003ctd\u003eX\u003c\/td\u003e\n\t\t\u003ctd\u003eZ\u003c\/td\u003e\n\t\t\u003ctd\u003eZ\u003c\/td\u003e\n\t\t\u003ctd\u003ecoast (outputs off)\u003c\/td\u003e\n\t\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003ch3\u003ePWM frequency\u003c\/h3\u003e\n\u003cp\u003eThe motor driver supports PWM frequencies as high as 100 kHz, but note that switching losses in the driver will be proportional to the PWM frequency. Typically, around 20 kHz is a good choice for sign-magnitude operation since it is high enough to be ultrasonic, which results in quieter operation.\u003c\/p\u003e\n\u003cp\u003eA pulse on the PWM pin must be high for a minimum duration of approximately 0.5 µs before the outputs turn on for the corresponding duration (any shorter input pulse does not produce a change on the outputs), so low duty cycles become unavailable at high frequencies.  For example, at 100 kHz, the pulse period is 10 µs, and the minimum non-zero duty cycle achievable is 0.5\/10, or 5%.\u003c\/p\u003e\n\u003ch3\u003eFault conditions\u003c\/h3\u003e\n\u003cp\u003eThe motor driver can detect several fault states that it reports by driving the \u003cspan class=\"overline\"\u003eFLT\u003c\/span\u003e pin low; this is an open-drain output that should be pulled up to your system’s logic voltage.  The detectable faults include short circuits on the outputs, under-voltage, and over-temperature.  All of the faults disable the motor outputs but are not latched, meaning the driver will attempt to resume operation when the fault condition is removed (or after a delay of a few milliseconds in the case of the short circuit fault).  The over-temperature fault provides a weak indication of the board being too hot, but it does not directly indicate the temperature of the MOSFETs, which are usually the first components to overheat, so you should \u003cins\u003enot\u003c\/ins\u003e count on this fault to prevent damage from over-temperature conditions.\u003c\/p\u003e\n\u003ch3\u003eRemapping pins\u003c\/h3\u003e\n\u003cp\u003eAll of the Raspberry Pi’s GPIO pins are broken out along a row of numbered through-holes just below the 40-pin GPIO connector. Each GPIO pin used by the board is connected from this row to the corresponding motor driver pin by a trace on the top side of the board spanning the pair of holes. If you want to remap one of these motor driver pins, you can cut its trace with a knife and then run a wire from the lower hole to a new GPIO pin.\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption center wide\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 600px\"\u003e\u003cimg alt=\"\" class=\"wide\" data-gallery-pictures=\"[{\" id g2 high-power motor driver for raspberry pi remapping example: moving m2dir from gpio pin to data-picture-id=\"0J8170\" data-picture-longest_side=\"599\" src=\"https:\/\/a.pololu-files.com\/picture\/0J8170.600.jpg?79a18a2f5f09fddfbee95906e9635a19\"\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 600px\"\u003e\u003cp\u003eDual G2 High-Power Motor Driver for Raspberry Pi remapping example: moving M2DIR from GPIO pin 25 to pin 27.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003eNote that the default pin mappings were chosen so that the Raspberry Pi’s default GPIO pull-ups and pull-downs match the direction the motor driver pins are or should be pulled (up for \u003cspan style=\"text-decoration: overline\"\u003eSF\u003c\/span\u003e, down for others); if you remap the motor driver pins without paying attention to this, you might encounter issues with pins being pulled the wrong way. See the \u003ca href=\"https:\/\/www.raspberrypi.org\/help\/\"\u003eRaspberry Pi documentation\u003c\/a\u003e for more about the default GPIO states.\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption right\"\u003e\n\u003ctr\u003e\n\u003ctd style=\"max-width: 200px\"\u003e\u003ca href=\"https:\/\/a.pololu-files.com\/picture\/0J8171.1200.jpg?7f24bc0e491d02062d11d7e4062c0fc1\" class=\"noscript-fallback\"\u003e\u003cimg alt=\"\" class=\"zoomable\" data-gallery-pictures=\"[{\" id sensing and limiting pins on the dual g2 high power motor driver for raspberry pi. data-picture-id=\"0J8171\" data-picture-longest_side=\"609\" src=\"https:\/\/a.pololu-files.com\/picture\/0J8171.200.jpg?7f24bc0e491d02062d11d7e4062c0fc1\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\u003cth style=\"max-width: 200px\"\u003e\u003cp\u003eCurrent sensing and limiting pins on the Dual G2 High Power Motor Driver for Raspberry Pi.\u003c\/p\u003e\u003c\/th\u003e\u003c\/tr\u003e\n\u003c\/table\u003e\n\u003ch3\u003eCurrent sensing and limiting\u003c\/h3\u003e\n\u003cp\u003eThe motor driver exposes current sensing and limiting pins that are not connected to the Raspberry Pi, but they are accessible through their own through-holes in case you want to use them in a more advanced application.\u003c\/p\u003e\n\u003cp\u003eThe driver has the ability to limit the motor current through current chopping: once the motor drive current reaches a set threshold, the driver goes into brake mode (slow decay) for about 25 μs before applying power to drive the motor again. This makes it more practical to use the driver with a motor that might only draw a few amps while running but can draw many times that amount (tens of amps) when starting.\u003c\/p\u003e\n\u003cp\u003eOn this board (24v18), the nominal current limiting threshold is set to about 50 A by default. For each motor channel, you can lower the limit by connecting an additional resistor between the VREF pin and the adjacent GND pin; the graph below shows how the current limit relates to the VREF resistor value. For example, adding a 100 kΩ resistor between VREF and GND lowers the current limit to approximately 29 A. Note that the current limiting threshold is not highly precise, and is less accurate at especially low settings (indicated by the dashed portion of the curve).\u003c\/p\u003e\n\u003ctable class=\"picture_with_caption center wide\"\u003e\u003ctr\u003e\n\u003ctd\u003e\u003cimg alt=\"\" class=\"wide\" data-gallery-pictures=\"[{\" id limit vs. vref resistor for the pololu dual g2 high-power motor driver data-picture-id=\"0J8092\" data-picture-longest_side=\"600\" src=\"https:\/\/a.pololu-files.com\/picture\/0J8092.600.png?6763e5b7f115c40404386e0ff66dbe1a\"\u003e\u003c\/td\u003e\n\u003cp\u003e\u003c\/p\u003e\n\u003c\/tr\u003e\u003c\/table\u003e\n\u003cp\u003eThe driver’s current sense pins, labeled CS, output voltages proportional to the motor currents while the H-bridges are driving. The output voltage for this version is about 20 mV\/A plus a small offset, which is typically about 50 mV.\u003c\/p\u003e\n\u003cp\u003eEach CS output is \u003cins\u003eonly active while the corresponding H-bridge is in drive mode\u003c\/ins\u003e; it is inactive (low) when the channel is in brake mode (slow decay), which happens when the PWM input is low or when current limiting is active. Current will continue to circulate through the motor when the driver begins braking, but the voltage on the CS pin will not accurately reflect the motor current in brake mode. The CS voltage is used internally by the motor driver, so to avoid interfering with the driver’s operation, you should \u003cins\u003enot\u003c\/ins\u003e add a capacitor to this pin or connect a load that draws more than a few mA from it.\u003c\/p\u003e\n\u003ch2\u003eReal-world power dissipation considerations\u003c\/h2\u003e\n\u003cp\u003eThe MOSFETs can handle large current spikes for short durations (e.g. 100 A for a few milliseconds), and the driver’s current chopping will keep the average current under the set limit. The peak ratings are for quick transients (e.g. when a motor is first turned on), and the continuous rating is dependent on various conditions, such as the ambient temperature. PWMing the motor will introduce additional heating proportional to the frequency. The actual current you can deliver will depend on how well you can keep the motor driver cool. The driver’s printed circuit board is designed to draw heat out of the MOSFETs, but performance can be improved by adding a heat sink or air flow. For high-current installations, the motor and power supply wires should also be soldered directly instead of going through the supplied terminal blocks, which are rated for up to 16 A.\u003c\/p\u003e\n\u003cp class=\"note_warning\"\u003e\u003cstrong\u003eWarning:\u003c\/strong\u003e This motor driver has no over-temperature shut-off. An over-temperature or over-current condition can cause \u003cstrong\u003e\u003cspan style=\"color: red;\"\u003epermanent damage\u003c\/span\u003e\u003c\/strong\u003e to the motor driver. You might consider using either the driver’s integrated current sense output (with an external ADC) or an \u003ca href=\"https:\/\/www.pololu.com\/product\/2453\"\u003eexternal current sensor\u003c\/a\u003e to monitor your current draw.\u003cbr\u003e\u003cbr\u003eThis product can get \u003cstrong\u003e\u003cspan style=\"color: red;\"\u003ehot\u003c\/span\u003e\u003c\/strong\u003e enough to burn under normal operating conditions. Take care when handling this product and other components connected to it.\u003c\/p\u003e","brand":"Pololu","offers":[{"title":"2-4 Settimane","offer_id":47696686612825,"sku":"POL-3756","price":175.61,"currency_code":"EUR","in_stock":true},{"title":"1 Giorno","offer_id":47885994131801,"sku":"POL-3756\/A","price":175.61,"currency_code":"EUR","in_stock":false}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/0J8150.1200.jpg?v=1705456145","url":"https:\/\/xernuqvalzi.pro\/products\/3756-pololu-dual-g2-high-power-motor-driver-24v18-for-raspberry-pi-partial-kit","provider":"Robot Italy","version":"1.0","type":"link"}