{"id":2529,"date":"2013-02-28T14:20:26","date_gmt":"2013-02-28T14:20:26","guid":{"rendered":"http:\/\/178.62.14.192\/?p=2529"},"modified":"2017-01-11T11:30:30","modified_gmt":"2017-01-11T10:30:30","slug":"raspberrypi-running-4-5v-stepper-motors-from-gpio","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=2529","title":{"rendered":"Raspberry Pi running 4 5V stepper motors from GPIO"},"content":{"rendered":"<p>I&#8217;ve been playing around with some stepper motors with driver boards that I bought\u00a0<a href=\"http:\/\/www.ebay.co.uk\/itm\/200712530295\">from eBay<\/a>. They have a lot of potential and I&#8217;m planning to use them on an astronomy project&#8230; but more on that later.<\/p>\n<p>The motors were \u00a31.66 each including postage. Not the fastest delivery ever but then they were from Hong Kong.<\/p>\n<p>The actual boards which arrived were much nicer than those pictured on the <a href=\"http:\/\/www.ebay.co.uk\/itm\/200712530295\">eBay lot<\/a> and were manufactured by <a href=\"http:\/\/www.lctech-inc.com\">LC Technology<\/a>. Below is a picture of the actual board and the accompanying stepper motor and cable and <a href=\"http:\/\/www.lctech-inc.com\/Hardware\/Detail.aspx?id=f8364b6f-346b-48dd-af91-0fed4d56dd6c\">here&#8217;s a link to the LC Tech page about the board<\/a>. The stepper motors are all 5V so can be run off the Raspberry Pi&#8217;s 5V power supply pin.<\/p>\n<p><a href=\"\/blog\/wp-content\/uploads\/2013\/02\/a5146d48-6ea5-4935-8284-ee63545f6aad1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2531 alignleft\" src=\"\/blog\/wp-content\/uploads\/2013\/02\/a5146d48-6ea5-4935-8284-ee63545f6aad1-300x291.jpg\" alt=\"a5146d48-6ea5-4935-8284-ee63545f6aad\" width=\"300\" height=\"291\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2013\/02\/a5146d48-6ea5-4935-8284-ee63545f6aad1.jpg?resize=300%2C291&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2013\/02\/a5146d48-6ea5-4935-8284-ee63545f6aad1.jpg?w=573&amp;ssl=1 573w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<div style=\"clear: both;\"><a href=\"\/blog\/wp-content\/uploads\/2013\/02\/450px-Stepper_motor1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2532 alignleft\" src=\"\/blog\/wp-content\/uploads\/2013\/02\/450px-Stepper_motor1-300x225.jpg\" alt=\"450px-Stepper_motor\" width=\"300\" height=\"225\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2013\/02\/450px-Stepper_motor1.jpg?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2013\/02\/450px-Stepper_motor1.jpg?w=450&amp;ssl=1 450w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<div style=\"clear: both;\">Here&#8217;s a video of the boards in action:<\/div>\n<p><iframe loading=\"lazy\" src=\"http:\/\/www.youtube.com\/embed\/TIy_Sniz2QE\" width=\"420\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<div style=\"clear: both;\">And here&#8217;s a still just in case you don&#8217;t want to sit through the video! \ud83d\ude42<\/div>\n<div style=\"clear: both;\"><a href=\"\/blog\/wp-content\/uploads\/2013\/02\/280220131.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2533 alignleft\" src=\"\/blog\/wp-content\/uploads\/2013\/02\/280220131-300x225.jpg\" alt=\"SAMSUNG\" width=\"300\" height=\"225\" srcset=\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2013\/02\/280220131.jpg?resize=300%2C225&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2013\/02\/280220131.jpg?resize=1024%2C768&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2013\/02\/280220131.jpg?w=1120&amp;ssl=1 1120w, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2013\/02\/280220131.jpg?w=1680&amp;ssl=1 1680w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/div>\n<p style=\"clear: both;\">I&#8217;ve built this on a breadboard connected to the GPIO using a <a href=\"http:\/\/www.hobbytronics.co.uk\/raspberry-pi-gpio-breakout-pro\">breakout board from HobbyTronics<\/a>. It&#8217;s almost identical to the Pi Cobbler but has a nifty power light and 3.3v regulator on board. Plus they&#8217;re based in the UK, which helped with the postage at the time.<\/p>\n<div style=\"clear: both;\">As you can probably see, each motor board is run from 4 GPIO pins plus 5V and Ground. I needed male-to-male bell wire for the 4 GPIO connections and male-to-female jumper wires for the power and ground pins that stick up from the board. For those replicating this experiment, your four GPIO wires connect to the pins on the board labelled IN1-IN4. I&#8217;ve yet to find out what the other pins do, and there certainly are a lot of them! Note: the control boards are too wide to plug completely into the breadboard but fortunately you don&#8217;t use all the pins at one end, so all mine are hanging over the edge. This isn&#8217;t great as they tend to pull the breadboard apart a little, but it&#8217;ll do for this experiment.<\/div>\n<p style=\"clear: both;\">The stepper motors are then connected to the boards using a supplied cable. When the motor is working, the LEDs on the control board light up (in sequence, but they&#8217;re going so fast in the video above that you can&#8217;t really tell that).<\/p>\n<p style=\"clear: both;\">I&#8217;ve put the Python code for this experiment on GitHub. The main Motor class was taken from work done by <a href=\"http:\/\/blog.scphillips.com\/\">Stephen Phillips<\/a>\u00a0on his blog. <a href=\"http:\/\/blog.scphillips.com\/2012\/12\/a-python-class-to-move-the-stepper-motor\/\">Here&#8217;s his original post<\/a>. My code is available at\u00a0<a href=\"https:\/\/github.com\/recantha\/stepper-pi\">https:\/\/github.com\/recantha\/stepper-pi<\/a><\/p>\n<p style=\"clear: both;\">There is a main driver script &#8211; test-all-motors.sh &#8211; which fires off 4 parallel runs of the test-motor.py script with 4 different sets of 4 GPIO pins.<\/p>\n<p style=\"clear: both;\">For those interested, I am using the following\u00a0<em>physical pins<\/em> as control pins for the motors: 8,10,12,16 and 18,22,24,26 and 3,5,7,11 and 15,19,21,23. Some of these pins have alternate uses (for example serial tx and rx) but it was necessary to use them as general output pins to get the 16 pins I needed.<\/p>\n<p style=\"clear: both;\"><strong>What&#8217;s next?<\/strong><\/p>\n<p style=\"clear: both;\">Well, at the moment the motors each drive a bit of paper, just to show the movement. However, they have a reasonable amount of torque. So, I&#8217;m hoping to use them to control, hopefully on multiple axis, a webcam and eventually an official camera module. This will form the main part of the hardware for an upcoming astronomy project. The code for this is starting to be built as <a href=\"https:\/\/github.com\/recantha\/spacepi\">a GitHub repository<\/a>.<\/p>\n<div style=\"clear: both;\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been playing around with some stepper motors with driver boards that I bought\u00a0from eBay. They have a lot of potential and I&#8217;m planning to use them on an astronomy project&#8230; but more on that later. The motors were \u00a31.66&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=2529\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[20,50,32,39,45,51],"tags":[],"class_list":["post-2529","post","type-post","status-publish","format-standard","hentry","category-gpio-boards","category-making","category-my-projects","category-programming","category-robotics","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Raspberry Pi running 4 5V stepper motors from GPIO - Raspberry Pi Pod<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=2529\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Raspberry Pi running 4 5V stepper motors from GPIO - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"I&#8217;ve been playing around with some stepper motors with driver boards that I bought\u00a0from eBay. They have a lot of potential and I&#8217;m planning to use them on an astronomy project&#8230; but more on that later. The motors were \u00a31.66&hellip;Read more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=2529\" \/>\n<meta property=\"og:site_name\" content=\"Raspberry Pi Pod\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/recantha\/\" \/>\n<meta property=\"article:published_time\" content=\"2013-02-28T14:20:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-01-11T10:30:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2013\/02\/a5146d48-6ea5-4935-8284-ee63545f6aad1-300x291.jpg\" \/>\n<meta name=\"author\" content=\"Michael Horne\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@recantha\" \/>\n<meta name=\"twitter:site\" content=\"@recantha\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Michael Horne\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=2529#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=2529\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"Raspberry Pi running 4 5V stepper motors from GPIO\",\"datePublished\":\"2013-02-28T14:20:26+00:00\",\"dateModified\":\"2017-01-11T10:30:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=2529\"},\"wordCount\":582,\"commentCount\":11,\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"articleSection\":[\"GPIO boards\",\"Making\",\"My Projects\",\"Programming\",\"Robotics\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=2529#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=2529\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?p=2529\",\"name\":\"Raspberry Pi running 4 5V stepper motors from GPIO - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\"},\"datePublished\":\"2013-02-28T14:20:26+00:00\",\"dateModified\":\"2017-01-11T10:30:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=2529#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=2529\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=2529#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.recantha.co.uk\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Raspberry Pi running 4 5V stepper motors from GPIO\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"name\":\"Raspberry Pi Pod\",\"description\":\"Experiences with the Raspberry Pi micro computer and microcontroller\",\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\",\"name\":\"Raspberry Pi Pod\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1\",\"width\":800,\"height\":337,\"caption\":\"Raspberry Pi Pod\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/recantha\/\",\"https:\/\/x.com\/recantha\",\"https:\/\/www.linkedin.com\/in\/recantha\/\",\"https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\",\"name\":\"Michael Horne\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g\",\"caption\":\"Michael Horne\"},\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Raspberry Pi running 4 5V stepper motors from GPIO - Raspberry Pi Pod","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.recantha.co.uk\/blog\/?p=2529","og_locale":"en_US","og_type":"article","og_title":"Raspberry Pi running 4 5V stepper motors from GPIO - Raspberry Pi Pod","og_description":"I&#8217;ve been playing around with some stepper motors with driver boards that I bought\u00a0from eBay. They have a lot of potential and I&#8217;m planning to use them on an astronomy project&#8230; but more on that later. The motors were \u00a31.66&hellip;Read more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=2529","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2013-02-28T14:20:26+00:00","article_modified_time":"2017-01-11T10:30:30+00:00","og_image":[{"url":"https:\/\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2013\/02\/a5146d48-6ea5-4935-8284-ee63545f6aad1-300x291.jpg","type":"","width":"","height":""}],"author":"Michael Horne","twitter_card":"summary_large_image","twitter_creator":"@recantha","twitter_site":"@recantha","twitter_misc":{"Written by":"Michael Horne","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=2529#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=2529"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"Raspberry Pi running 4 5V stepper motors from GPIO","datePublished":"2013-02-28T14:20:26+00:00","dateModified":"2017-01-11T10:30:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=2529"},"wordCount":582,"commentCount":11,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"articleSection":["GPIO boards","Making","My Projects","Programming","Robotics","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=2529#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=2529","url":"https:\/\/www.recantha.co.uk\/blog\/?p=2529","name":"Raspberry Pi running 4 5V stepper motors from GPIO - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"datePublished":"2013-02-28T14:20:26+00:00","dateModified":"2017-01-11T10:30:30+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=2529#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=2529"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=2529#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Raspberry Pi running 4 5V stepper motors from GPIO"}]},{"@type":"WebSite","@id":"https:\/\/www.recantha.co.uk\/blog\/#website","url":"https:\/\/www.recantha.co.uk\/blog\/","name":"Raspberry Pi Pod","description":"Experiences with the Raspberry Pi micro computer and microcontroller","publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.recantha.co.uk\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.recantha.co.uk\/blog\/#organization","name":"Raspberry Pi Pod","url":"https:\/\/www.recantha.co.uk\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2016\/03\/cropped-PiPod-Logo-v3.png?fit=800%2C337&ssl=1","width":800,"height":337,"caption":"Raspberry Pi Pod"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/recantha\/","https:\/\/x.com\/recantha","https:\/\/www.linkedin.com\/in\/recantha\/","https:\/\/www.youtube.com\/channel\/UCK4F9blabxzmk8Inzhs8tpg"]},{"@type":"Person","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263","name":"Michael Horne","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/479778b0677caadde0ceb54c4129804ef674914607e3ed0998808148357d10d8?s=96&d=mm&r=g","caption":"Michael Horne"},"url":"https:\/\/www.recantha.co.uk\/blog\/?author=1"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2RsaV-EN","jetpack-related-posts":[{"id":2446,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=2446","url_meta":{"origin":2529,"position":0},"title":"#RaspberryPi Python class for controlling 28BJY-48 stepper motor with ULN2003 board","author":"Michael Horne","date":"23 February 2013","format":false,"excerpt":"Stephen Phillips has written an excellent\u00a0piece of Python\u00a0to control a 5V stepper motor from the Raspberry Pi. This worked first time for me and it's formed the basis of a new project that I've\u00a0unimaginatively\u00a0called 'stepper-pi'. The code for stepper-pi is on GitHub.","rel":"","context":"In &quot;GPIO boards&quot;","block_context":{"text":"GPIO boards","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=20"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16755,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=16755","url_meta":{"origin":2529,"position":1},"title":"New HAT to generate motor-control pulses for the Raspberry Pi","author":"Michael Horne","date":"14 April 2017","format":false,"excerpt":"Sean Hegarty has been in touch about a new HAT-format board that he and his company (CNC Design Ltd) have released for the Raspberry Pi. It allows\u00a0clean, fast and accurate pulses to be created using simple ASCII commands. This is especially useful for \"hardware designs\u00a0where a variable frequency pulse is\u2026","rel":"","context":"In &quot;GPIO boards&quot;","block_context":{"text":"GPIO boards","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=20"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/pthat.png?fit=1200%2C900&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/pthat.png?fit=1200%2C900&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/pthat.png?fit=1200%2C900&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/pthat.png?fit=1200%2C900&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.recantha.co.uk\/blog\/wp-content\/uploads\/2017\/04\/pthat.png?fit=1200%2C900&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":1654,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=1654","url_meta":{"origin":2529,"position":2},"title":"Research into Stepper Motors with the #RaspberryPi","author":"Michael Horne","date":"31 January 2013","format":false,"excerpt":"I've decided that my next project with the Pi will involve motors of some sort. At the very least I'd like to work out how to control a motor and have it do... something. I'd like, ideally, to create some kind of remote-controlled vehicle. But, I know this isn't exactly\u2026","rel":"","context":"In &quot;Accessories&quot;","block_context":{"text":"Accessories","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=54"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/i.ebayimg.com\/t\/L298N-Stepper-Motor-Driver-Controller-Board-suit-ARDUINO-RASPBERRY-Pi-\/00\/s\/NTAwWDUwMA%3D%3D\/%24%28KGrHqV%2C%21pcE-v8GkcE%2CBP9pZG%21go%21~~60_12.JPG?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":6816,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=6816","url_meta":{"origin":2529,"position":3},"title":"New product found: @4tronix_uk PiRoCon robot controller for #RaspberryPi","author":"Michael Horne","date":"31 October 2013","format":false,"excerpt":"eBay vendor 4tronix, (@4tronix_uk) who have proved themselves to be very good at customer service (just ask @gadgetoid\u00a0or myself!) and super-fast on delivery have just released the PiRoCon - a GPIO robot controller plugin board. It has the following features: 5V 1.5A regulator to power the robot and the Pi\u2026","rel":"","context":"In &quot;GPIO boards&quot;","block_context":{"text":"GPIO boards","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=20"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":4661,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=4661","url_meta":{"origin":2529,"position":4},"title":"Accessory watch: New boards for the #RaspberryPi ahoy!","author":"Michael Horne","date":"15 June 2013","format":false,"excerpt":"Ahoy... we're not at sea, Mike! Anyway... I always keep an eye out for new boards and here are a couple I've just spotted. GeekRoo All-in-One Breakout Board - ModMyPi - \u00a314.99 The GeekRoo All-In-One Raspberry Pi Breakout Board is one of the most advanced prototyping breakout boards available to\u2026","rel":"","context":"In &quot;GPIO boards&quot;","block_context":{"text":"GPIO boards","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=20"},"img":{"alt_text":"ModMyPi | GeekRoo All-In-One Breakout Board","src":"\/blog\/wp-content\/uploads\/2013\/06\/geerkroo-all-in-one-raspberry-pi-breakout-board-0-498x4981.jpg","width":350,"height":200},"classes":[]},{"id":7621,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=7621","url_meta":{"origin":2529,"position":5},"title":"New #RaspberryPi budget motor controller boards available from @4tronix_uk","author":"Michael Horne","date":"28 January 2014","format":false,"excerpt":"4tronix are now offering a new motor controller board called the MicRoCon. I got one of these in the post the other day and I've soldered it together (very easy) but not had the chance to play with it yet. Here's a list of features (quoted from the 4tronix site):\u2026","rel":"","context":"In &quot;GPIO boards&quot;","block_context":{"text":"GPIO boards","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=20"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/4tronix.co.uk\/store\/resources\/image\/18\/91\/6.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/4tronix.co.uk\/store\/resources\/image\/18\/91\/6.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/4tronix.co.uk\/store\/resources\/image\/18\/91\/6.jpg?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/4tronix.co.uk\/store\/resources\/image\/18\/91\/6.jpg?resize=700%2C400 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2529"}],"version-history":[{"count":1,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2529\/revisions"}],"predecessor-version":[{"id":16217,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2529\/revisions\/16217"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}