{"id":10193,"date":"2014-06-30T07:22:35","date_gmt":"2014-06-30T07:22:35","guid":{"rendered":"http:\/\/178.62.14.192\/?p=10193"},"modified":"2014-06-30T07:22:35","modified_gmt":"2014-06-30T07:22:35","slug":"using-an-adxl345-accelerometer-on-your-raspberrypi-with-python","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=10193","title":{"rendered":"Using an ADXL345 Accelerometer on your #RaspberryPi with Python"},"content":{"rendered":"<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/i0.wp.com\/1.bp.blogspot.com\/-VyxemY3N778\/U7ATGPDdZ0I\/AAAAAAAAJRc\/nmFIy3lxLnk\/s1600\/2013_03_24_IMG_1453-1024.jpg?resize=560%2C441\" alt=\"\" width=\"560\" height=\"441\" \/><\/p>\n<p>Martin O&#8217;Hanlon has written up a brief tutorial on using this excellent accelerometer from Adafruit. <a href=\"http:\/\/www.stuffaboutcode.com\/2014\/06\/raspberry-pi-adxl345-accelerometer.html\">Read it here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Martin O&#8217;Hanlon has written up a brief tutorial on using this excellent accelerometer from Adafruit. Read it here.<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=10193\">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":false,"_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":[54,50,51],"tags":[],"class_list":["post-10193","post","type-post","status-publish","format-standard","hentry","category-accessories","category-making","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Using an ADXL345 Accelerometer on your #RaspberryPi with Python - 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=10193\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using an ADXL345 Accelerometer on your #RaspberryPi with Python - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"Martin O&#8217;Hanlon has written up a brief tutorial on using this excellent accelerometer from Adafruit. Read it here.Read more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=10193\" \/>\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=\"2014-06-30T07:22:35+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/1.bp.blogspot.com\/-VyxemY3N778\/U7ATGPDdZ0I\/AAAAAAAAJRc\/nmFIy3lxLnk\/s1600\/2013_03_24_IMG_1453-1024.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<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=10193#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=10193\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"Using an ADXL345 Accelerometer on your #RaspberryPi with Python\",\"datePublished\":\"2014-06-30T07:22:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=10193\"},\"wordCount\":28,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=10193#primaryimage\"},\"thumbnailUrl\":\"http:\/\/1.bp.blogspot.com\/-VyxemY3N778\/U7ATGPDdZ0I\/AAAAAAAAJRc\/nmFIy3lxLnk\/s1600\/2013_03_24_IMG_1453-1024.jpg\",\"articleSection\":[\"Accessories\",\"Making\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=10193#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=10193\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?p=10193\",\"name\":\"Using an ADXL345 Accelerometer on your #RaspberryPi with Python - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=10193#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=10193#primaryimage\"},\"thumbnailUrl\":\"http:\/\/1.bp.blogspot.com\/-VyxemY3N778\/U7ATGPDdZ0I\/AAAAAAAAJRc\/nmFIy3lxLnk\/s1600\/2013_03_24_IMG_1453-1024.jpg\",\"datePublished\":\"2014-06-30T07:22:35+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=10193#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=10193\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=10193#primaryimage\",\"url\":\"http:\/\/1.bp.blogspot.com\/-VyxemY3N778\/U7ATGPDdZ0I\/AAAAAAAAJRc\/nmFIy3lxLnk\/s1600\/2013_03_24_IMG_1453-1024.jpg\",\"contentUrl\":\"http:\/\/1.bp.blogspot.com\/-VyxemY3N778\/U7ATGPDdZ0I\/AAAAAAAAJRc\/nmFIy3lxLnk\/s1600\/2013_03_24_IMG_1453-1024.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=10193#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.recantha.co.uk\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using an ADXL345 Accelerometer on your #RaspberryPi with Python\"}]},{\"@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":"Using an ADXL345 Accelerometer on your #RaspberryPi with Python - 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=10193","og_locale":"en_US","og_type":"article","og_title":"Using an ADXL345 Accelerometer on your #RaspberryPi with Python - Raspberry Pi Pod","og_description":"Martin O&#8217;Hanlon has written up a brief tutorial on using this excellent accelerometer from Adafruit. Read it here.Read more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=10193","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2014-06-30T07:22:35+00:00","og_image":[{"url":"http:\/\/1.bp.blogspot.com\/-VyxemY3N778\/U7ATGPDdZ0I\/AAAAAAAAJRc\/nmFIy3lxLnk\/s1600\/2013_03_24_IMG_1453-1024.jpg","type":"","width":"","height":""}],"author":"Michael Horne","twitter_card":"summary_large_image","twitter_creator":"@recantha","twitter_site":"@recantha","twitter_misc":{"Written by":"Michael Horne"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=10193#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=10193"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"Using an ADXL345 Accelerometer on your #RaspberryPi with Python","datePublished":"2014-06-30T07:22:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=10193"},"wordCount":28,"commentCount":1,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=10193#primaryimage"},"thumbnailUrl":"http:\/\/1.bp.blogspot.com\/-VyxemY3N778\/U7ATGPDdZ0I\/AAAAAAAAJRc\/nmFIy3lxLnk\/s1600\/2013_03_24_IMG_1453-1024.jpg","articleSection":["Accessories","Making","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=10193#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=10193","url":"https:\/\/www.recantha.co.uk\/blog\/?p=10193","name":"Using an ADXL345 Accelerometer on your #RaspberryPi with Python - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=10193#primaryimage"},"image":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=10193#primaryimage"},"thumbnailUrl":"http:\/\/1.bp.blogspot.com\/-VyxemY3N778\/U7ATGPDdZ0I\/AAAAAAAAJRc\/nmFIy3lxLnk\/s1600\/2013_03_24_IMG_1453-1024.jpg","datePublished":"2014-06-30T07:22:35+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=10193#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=10193"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=10193#primaryimage","url":"http:\/\/1.bp.blogspot.com\/-VyxemY3N778\/U7ATGPDdZ0I\/AAAAAAAAJRc\/nmFIy3lxLnk\/s1600\/2013_03_24_IMG_1453-1024.jpg","contentUrl":"http:\/\/1.bp.blogspot.com\/-VyxemY3N778\/U7ATGPDdZ0I\/AAAAAAAAJRc\/nmFIy3lxLnk\/s1600\/2013_03_24_IMG_1453-1024.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=10193#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"Using an ADXL345 Accelerometer on your #RaspberryPi with Python"}]},{"@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-2Ep","jetpack-related-posts":[{"id":11601,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=11601","url_meta":{"origin":10193,"position":0},"title":"Interface a gyro and accelerometer with a Raspberry Pi","author":"Michael Horne","date":"12 December 2014","format":false,"excerpt":"Mark Williams is currently running a Kickstarter for a great little sensor add-on board for the Raspberry Pi. It's called the BerryIMU (which stands for Inertial Measurement Unit). He's been writing a series of great articles to support the project. His latest article is all about using a gyro and\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\/ozzmaker.com\/wp-content\/uploads\/2014\/11\/BerryIMUWire.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/ozzmaker.com\/wp-content\/uploads\/2014\/11\/BerryIMUWire.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/ozzmaker.com\/wp-content\/uploads\/2014\/11\/BerryIMUWire.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/ozzmaker.com\/wp-content\/uploads\/2014\/11\/BerryIMUWire.png?resize=700%2C400 2x"},"classes":[]},{"id":2297,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=2297","url_meta":{"origin":10193,"position":1},"title":"Bicycle Dashboard on the Web using a #RaspberryPi","author":"Michael Horne","date":"19 February 2013","format":false,"excerpt":"Jeremy Blythe has been busy. He's created a\u00a0live web bicycle dashboard using his ControlMyPi project. The Pi is carried onboard his bike and then he uses a combination of the Raspberry Pi a 3G dongle the Adafruit Ultimate GPS Breakout and an accelerometer sensor to update a website with a\u2026","rel":"","context":"In &quot;Geeky Techiness&quot;","block_context":{"text":"Geeky Techiness","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=22"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9150,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=9150","url_meta":{"origin":10193,"position":2},"title":"How to use the MMA7455 accelerometer with the #RaspberryPi","author":"Michael Horne","date":"31 March 2014","format":false,"excerpt":"Zach Igielman, a long-time CamJammer, has just started to do video tutorials. His first one is all about using an accelerometer with the Pi and he's chosen to use the MMA7455 which is fairly easy and cheap to get hold of from eBay or from Tandy Online if you'd rather\u2026","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=39"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.tandyonline.co.uk\/media\/catalog\/product\/cache\/1\/image\/9df78eab33525d08d6e5fb8d27136e95\/m\/m\/mma7455-accelerometer.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.tandyonline.co.uk\/media\/catalog\/product\/cache\/1\/image\/9df78eab33525d08d6e5fb8d27136e95\/m\/m\/mma7455-accelerometer.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.tandyonline.co.uk\/media\/catalog\/product\/cache\/1\/image\/9df78eab33525d08d6e5fb8d27136e95\/m\/m\/mma7455-accelerometer.png?resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.tandyonline.co.uk\/media\/catalog\/product\/cache\/1\/image\/9df78eab33525d08d6e5fb8d27136e95\/m\/m\/mma7455-accelerometer.png?resize=700%2C400 2x"},"classes":[]},{"id":3804,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=3804","url_meta":{"origin":10193,"position":3},"title":"Guide to interfacing a Gyro and Accelerometer with a #RaspberryPi","author":"Michael Horne","date":"29 April 2013","format":false,"excerpt":"Mark Williams has written a guide to integrating an inertial measurement unit with his Raspberry Pi. The two chips involved are L3GD20 and LSM3030DLHC.\u00a0Read more here","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":1755,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=1755","url_meta":{"origin":10193,"position":4},"title":"LEGO MINDSTORMS Sensors with the #RaspberryPi \/ @Raspberry_Pi","author":"Michael Horne","date":"2 February 2013","format":false,"excerpt":"A great tutorial on using a Mindstorms sensor (dIMU Accelerometer and Gyroscope for the LEGO MINDSTORMS)\u00a0with a breadboard adapter and a Raspberry Pi. LEGO MINDSTORMS Sensors with the Raspberry Pi | | \/HowTo\/HowTo.","rel":"","context":"In &quot;Accessories&quot;","block_context":{"text":"Accessories","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=54"},"img":{"alt_text":"","src":"\/blog\/wp-content\/uploads\/2013\/02\/Raspberry-Pi-and-LEGO-MINDSTORMS-Sensor-Breadboard-Adapter-300x1691.jpg","width":350,"height":200},"classes":[]},{"id":2272,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=2272","url_meta":{"origin":10193,"position":5},"title":"Interfacing #RaspberryPi with a Wiimote &#8211; additional info","author":"Michael Horne","date":"18 February 2013","format":false,"excerpt":"Just a quick note... you can tell the Wiimote to report, and tell the Pi to read, the state of the accelerometer on the Wiimote so you can work out its orientation. Here's a code snippet from the article: #set Wiimote to report button presses and accelerometer state wm.rpt_mode =\u2026","rel":"","context":"In &quot;Programming&quot;","block_context":{"text":"Programming","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=39"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10193","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=10193"}],"version-history":[{"count":0,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/10193\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}