{"product_id":"pistep2-quad-stepper-motor-controller-for-raspberry-pi","title":"PiStep2 - Quad Stepper Motor Controller for Raspberry Pi","description":"\u003cp\u003eThe PiStep2 can drive four stepper motors with a Raspberry Pi and comes fully Assembled - no soldering required!\u003c\/p\u003e\n\u003cp\u003eThe HAT works with UniPolar (5-pin) stepper motors and each pin has an associated white LED so you can see the stepper signals going through. Great for debugging!\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eCompatibility\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli id=\"tab-description\" class=\"tab-content\"\u003e\nRaspberry Pi Zero Form Factor - works with all versions of Raspberry Pi with 40-pin GPIO connector**\u003c\/li\u003e\n\u003cli class=\"tab-content\"\u003eWorks with UniPolar (5-pin) stepper motors. \u003cstrong\u003eNot\u003c\/strong\u003e with Bipolar (4-pin) motors.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp style=\"padding-left: 40px;\" data-mce-style=\"padding-left: 40px;\"\u003e\u003cstrong\u003e**\u003c\/strong\u003e the Raspberry Pi 4\/3B+ have a POE connector that collides with one of the motor connectors on this board. We recommend using a GPIO riser with these boards.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003ePower Options\u003c\/strong\u003e\u003c\/p\u003e\n\u003cdiv\u003e\n\u003col\u003e\n\u003cli\u003ePowered from the Raspberry Pi 5V\u003c\/li\u003e\n\u003cli\u003eFrom the 2-pin Terminal (whatever voltage is required for the motors)\u003c\/li\u003e\n\u003cli\u003eMicro-USB - 5V only\u003c\/li\u003e\n\u003c\/ol\u003e\nThis neat little board plugs directly into the Raspberry Pi GPIO header and provides 2 or 4 connectors for small\u003cspan\u003e \u003c\/span\u003estepper motors\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003ePinout is simple:\u003c\/strong\u003e\u003cbr\u003e\n\u003cul\u003e\n\u003cli\u003ePhysical pins 11, 12, 13, 15 for Motor A (GPIO 17, 18, 27, 22)\u003c\/li\u003e\n\u003cli\u003ePhysical pins 7, 22, 18. 16 for Motor B (GPIO 4, 25, 24, 23)\u003c\/li\u003e\n\u003cli\u003ePhysical pins 33, 32, 31, 29 for Motor C (GPIO 13,12,6,5)\u003c\/li\u003e\n\u003cli\u003ePhysical Pins 38, 37, 36, 35 for Motor D (GPIO 20,26,16,19)\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003eEach pin has an associated white LED so you can see the stepper signals going through\u003cbr\u003e\u003cbr\u003e\u003cstrong\u003e\u003cspan\u003ePower Supply Alternatives\u003c\/span\u003e\u003c\/strong\u003e\u003c\/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cstrong\u003eJumper VCC-VSTP\u003cspan\u003e \u003c\/span\u003e\u003c\/strong\u003e(default). Power from the motors is taken from the Raspberry Pi 5V line\n\u003cul\u003e\n\u003cli\u003eMicro-USB into Raspberry Pi. 5V for the Pi and the stepper motors goes through a poly-fuse which can trip if 2 motors are used simultaneously\u003c\/li\u003e\n\u003cli\u003eMicro-USB into the PiStep board. 5V for both the Pi and the stepper motors is provided directly from the 5V USB input so no problems with 2 motors at once\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003c\/li\u003e\n\u003cli\u003e\n\u003cstrong\u003eJumper VSTP-VIN\u003c\/strong\u003e. Power for the motors is provided from the 2-pin screw terminal, so can be any voltage that the steppers can handle. Ensure you use the correct polarity! We recommend to keep it below 12V. You will find that the stepper motors can go up to 9V and will be able to step faster, the higher the voltage that is applied, but there will be some deterioration of the life of the stepper motor at a higher voltage.\u003c\/li\u003e\n\u003c\/ul\u003e\n\u003cp\u003e\u003cbr\u003e\u003cstrong\u003e\u003cspan\u003ePython Programming\u003c\/span\u003e\u003c\/strong\u003e\u003cbr\u003ePlease see the excellent\u003cspan\u003e \u003c\/span\u003eexample here for some pointers. You will need to change the pin numbers as above and also change the speed so it steps at a visible rate. You may also want to remove the print statements to speed it up. The lines underlined below are changed from the original to operate Motor A.\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003e# Use BCM GPIO references\u003cbr\u003e# instead of physical pin numbers\u003cbr\u003eGPIO.setmode(GPIO.BCM)\u003cbr\u003e\u003cbr\u003e# Define GPIO signals to use\u003cbr\u003e# Pins 18,22,24,26\u003cbr\u003e# GPIO24,GPIO25,GPIO8,GPIO7\u003cbr\u003e\u003cspan style=\"text-decoration: underline;\" data-mce-style=\"text-decoration: underline;\"\u003eStepPins = [17,18,27,22]\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e# Set all pins as output\u003cbr\u003efor pin in StepPins:\u003cbr\u003e  print \"Setup pins\"\u003cbr\u003e  GPIO.setup(pin,GPIO.OUT)\u003cbr\u003e  GPIO.output(pin, False)\u003cbr\u003e\u003cbr\u003e# Define some settings\u003cbr\u003eStepCounter = 0\u003cbr\u003e\u003cspan style=\"text-decoration: underline;\" data-mce-style=\"text-decoration: underline;\"\u003eWaitTime = 0.01\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cspan\u003e\u003cstrong\u003eNote\u003c\/strong\u003e: Stepper motors (optional extra) and Raspberry Pi not included\u003c\/span\u003e\u003c\/p\u003e\n\u003c\/div\u003e","brand":"4tronix","offers":[{"title":"Default Title","offer_id":52217434177824,"sku":"ggz1787257957705","price":9.83,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0946\/3231\/3120\/files\/pistep2---quad-stepper-motor-controller-for-raspberry-pi_1.jpg?v=1787257962","url":"https:\/\/www.elmwoodbasket.shop\/products\/pistep2-quad-stepper-motor-controller-for-raspberry-pi","provider":"My Store","version":"1.0","type":"link"}