{"title":"Motor 2040 - Quad Motor Controller","handle":"motor-2040-quad-motor-controller","url":"/products/motor-2040-quad-motor-controller","description":"\nA compact 4 channel motor+encoder controller, powered by RP2040. It has RGB and per-motor indicator LEDs plus built in voltage and current sensing.\nMotor 2040 is a standalone motor controller for driving motors with encoders attached. Encoder motors can provide feedback to the controller, enabling more precise control over position and velocity - perfect for building a four wheel drive robot rover or buggy (add mecanum omniwheels to go sideways!). We've built the RP2040 chip right into Motor 2040 so you don't need separate microcontroller and driver boards, keeping everything tidy and lightweight.\nWhy limit yourself to vehicular constructs though, you could use it as the brains of any project that involves motors: elaborate pulley systems, 1:12 replicas of It's A Small World or even customisable dials with haptic feedback and programmable endpoints.\nMotor 2040 comes with many useful built-in bells and whistles, such as:\n\nAn addressable RGB LED (AKA Neopixel) for visual feedback and status reports.\nA pair of mono indicator LEDs on each motor channel to show you when and in what direction a motor is moving. This helps visualise what your code is doing and means you can prototype without having motors plugged in!\nA QW/ST connector to make it easy to attach Qwiic or STEMMA QT breakouts - great for adding some sensor smarts.\nSome neat voltage/current/fault sensing features to help prevent motor mishaps.\nIt's supported by a well documented C++/MicroPython motor and encoder library with lots of examples to show you how to use the individual features (and everything together).\n\nMotor 2040 and MMME shims\nWe've designed Motor 2040 to interface easily with our new MMME (Micro Metal Motor Encoder) shims which can be used to upgrade our standard Micro Metal Motors into fancy encoder motors. We also sell motors with MMMEs pre-attached, if you want to skip the soldering.\nOnce your motor has an MMME attached to it you can plug it into Motor 2040 with a 6 pin JST-SH cable. Convenient!\n\nFeatures\n\nPowered by RP2040 (Dual Arm Cortex M0+ running at up to 133Mhz with 264kB of SRAM)\n2MB of QSPI flash supporting XiP\n2 Dual H-Bridge motor drivers (DRV8833)\n4 JST-SH connectors (6 pin) for attaching motors\nWide voltage range for motors and logic (2.7V to 10V)\nOn-board 3V3 regulator with input up to 13.2V (max regulator current output 150mA)\nOnboard voltage, current and fault sensing\nPer motor current limiting (0.5A) *\nPer motor direction indicator LEDs **\nAddressable RGB LED/Neopixel\nReset and BOOT button (the BOOT button can also be used as a user button)\nUSB-C connector for programming and power (3A max)\nQw/ST (Qwiic/STEMMA QT) connector for breakouts\nFully-assembled\nC++/MicroPython libraries\nSchematic\nDimensional drawing\n\nSoftware\nBecause it's a RP2040 board, Motor 2040 is firmware agnostic! You can program it with C/C++, MicroPython or CircuitPython.\nOur C++/MicroPython libraries will help you get the most out of Motor 2040, they're packed with powerful features for working with motors. You'll get best performance using C++, but if you're a beginner we'd recommend using our batteries included MicroPython build for ease of getting started.\n\nDownload Pirate brand MicroPython\nMicroPython API documentation\nMicroPython examples\nC++ examples\nYou can also use CircuitPython on your Motor 2040, if you want access to all the nice conveniences of Adafruit's ecosystem.\n\n\nDownload CircuitPython for Motor 2040 (coming soon)\nGetting Started with CircuitPython\nCircuitPython examples\n\nConnecting Breakouts\nIf your breakout has a QW/ST connector JST-SH to JST-SH cable, or you can easily connect any of our I2C Breakout Garden breakouts with a JST-SH to JST-SH cable; coupled with a Qw/ST to Breakout Garden adaptor.\n\nList of breakouts currently compatible with our C++/MicroPython build.\nPowering Motor 2040\nMotor 2040 can be powered either by plugging the board into a USB-C power source (like a PC or power bank) or by connecting a battery pack to the EXT PWR or VSYS connections. On an unmodified board, you should only have one power source connected at a time, to avoid back-powering your computer or battery.\nIf you want to have two power sources connected at the same time, Motor 2040 has two traces on its underside that you can cut to do this safely.\n\n\nCut EXT PWR to VSYS if you want to provide your motors with a separate power supply (up to 10V) from that used to power the rest of the board. Board power (up to 13.2V) will need to be provided either by USB 5V or VSYS.\n\nCut USB 5V to VSYS if you want to run the board entirely off a separate power supply, without worry of back-powering your computer. Note that this also means the board will not turn on when only connected by USB.\nBelow is a simplified circuit diagram showing the power wiring:\n\nNotes\n\nMeasurements: 52mm x 38mm x 7.7mm (L x W x H). The mounting holes are M2.5 and 2.7mm in from each edge.\n* The current limit of each motor can be disabled by soldering the \"high current\" pads on the rear (doing this will also disable the current monitoring). The maximum supported output current when unlimited is 1.2 A continuous (2 A peak) per motor.\n** The direction indicators for each motor can be disabled by cutting the \"motor LED\" traces on the rear.\nThe pinout of the JST-SH motor connectors is M+, M-, 3v3, A, B, GND.\nMotor 2040 has some extra broken out headers that adventurous roboticists might find useful (note that these are unpopulated and so will require soldering):\n2 sets of headers for connecting analog sensors\n1 set of headers for connecting a serial device, or an 3.3V ultrasonic distance sensor\nUnpopulated screw terminals for supplying external power (10A max continuous current)\nExposed analog, Breakout Garden and debug pins\n\n\n\nAbout RP2040\nRaspberry Pi's RP2040 microcontroller is a dual core ARM Cortex M0+ running at up to 133Mhz. It bundles in 264kB of SRAM, 30 multifunction GPIO pins (including a four channel 12-bit ADC), a heap of standard peripherals (I2C, SPI, UART, PWM, clocks, etc), and USB support.\nOne very exciting feature of RP2040 is the programmable IOs which allow you to execute custom programs that can manipulate GPIO pins and transfer data between peripherals - they can offload tasks that require high data transfer rates or precise timing that traditionally would have required a lot of heavy lifting from the CPU.\n","vendor":"Little Bird","product_type":"physical","in_stock":true,"options":[],"variants":[{"id":2091,"title":"Default Title","sku":"PR-PIM618","price":51.78,"compare_at_price":0.0,"on_sale":false,"in_stock":true,"available_quantity":2,"option1":"Default Title"}]}