{"id":3435,"date":"2013-04-05T21:06:59","date_gmt":"2013-04-05T21:06:59","guid":{"rendered":"http:\/\/178.62.14.192\/?p=3435"},"modified":"2013-04-05T21:06:59","modified_gmt":"2013-04-05T21:06:59","slug":"i2c-communication-between-a-raspberrypi-and-an-arduino","status":"publish","type":"post","link":"https:\/\/www.recantha.co.uk\/blog\/?p=3435","title":{"rendered":"I2C communication between a #RaspberryPi and an #Arduino"},"content":{"rendered":"<p>Micho at Neophob.com has been experimenting with setting up the Raspberry Pi as an I2C master with an Arduino slave.\u00a0<a href=\"http:\/\/neophob.com\/2013\/04\/i2c-communication-between-a-rpi-and-a-arduino\/\">Read more here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Micho at Neophob.com has been experimenting with setting up the Raspberry Pi as an I2C master with an Arduino slave.\u00a0Read more here<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/www.recantha.co.uk\/blog\/?p=3435\">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":[55],"tags":[],"class_list":["post-3435","post","type-post","status-publish","format-standard","hentry","category-arduino"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>I2C communication between a #RaspberryPi and an #Arduino - 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=3435\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"I2C communication between a #RaspberryPi and an #Arduino - Raspberry Pi Pod\" \/>\n<meta property=\"og:description\" content=\"Micho at Neophob.com has been experimenting with setting up the Raspberry Pi as an I2C master with an Arduino slave.\u00a0Read more hereRead more &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.recantha.co.uk\/blog\/?p=3435\" \/>\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-04-05T21:06:59+00:00\" \/>\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=3435#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=3435\"},\"author\":{\"name\":\"Michael Horne\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263\"},\"headline\":\"I2C communication between a #RaspberryPi and an #Arduino\",\"datePublished\":\"2013-04-05T21:06:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=3435\"},\"wordCount\":34,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#organization\"},\"articleSection\":[\"Arduino\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=3435#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=3435\",\"url\":\"https:\/\/www.recantha.co.uk\/blog\/?p=3435\",\"name\":\"I2C communication between a #RaspberryPi and an #Arduino - Raspberry Pi Pod\",\"isPartOf\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/#website\"},\"datePublished\":\"2013-04-05T21:06:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=3435#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.recantha.co.uk\/blog\/?p=3435\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.recantha.co.uk\/blog\/?p=3435#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.recantha.co.uk\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"I2C communication between a #RaspberryPi and an #Arduino\"}]},{\"@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":"I2C communication between a #RaspberryPi and an #Arduino - 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=3435","og_locale":"en_US","og_type":"article","og_title":"I2C communication between a #RaspberryPi and an #Arduino - Raspberry Pi Pod","og_description":"Micho at Neophob.com has been experimenting with setting up the Raspberry Pi as an I2C master with an Arduino slave.\u00a0Read more hereRead more &rarr;","og_url":"https:\/\/www.recantha.co.uk\/blog\/?p=3435","og_site_name":"Raspberry Pi Pod","article_publisher":"https:\/\/www.facebook.com\/recantha\/","article_published_time":"2013-04-05T21:06:59+00:00","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=3435#article","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=3435"},"author":{"name":"Michael Horne","@id":"https:\/\/www.recantha.co.uk\/blog\/#\/schema\/person\/c27c4ef2ee1c18b130f1fcd5dcdbb263"},"headline":"I2C communication between a #RaspberryPi and an #Arduino","datePublished":"2013-04-05T21:06:59+00:00","mainEntityOfPage":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=3435"},"wordCount":34,"commentCount":1,"publisher":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#organization"},"articleSection":["Arduino"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.recantha.co.uk\/blog\/?p=3435#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=3435","url":"https:\/\/www.recantha.co.uk\/blog\/?p=3435","name":"I2C communication between a #RaspberryPi and an #Arduino - Raspberry Pi Pod","isPartOf":{"@id":"https:\/\/www.recantha.co.uk\/blog\/#website"},"datePublished":"2013-04-05T21:06:59+00:00","breadcrumb":{"@id":"https:\/\/www.recantha.co.uk\/blog\/?p=3435#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.recantha.co.uk\/blog\/?p=3435"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.recantha.co.uk\/blog\/?p=3435#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.recantha.co.uk\/blog"},{"@type":"ListItem","position":2,"name":"I2C communication between a #RaspberryPi and an #Arduino"}]},{"@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-Tp","jetpack-related-posts":[{"id":11422,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=11422","url_meta":{"origin":3435,"position":0},"title":"Connect an Arduino to the Raspberry Pi using I2C","author":"Michael Horne","date":"13 November 2014","format":false,"excerpt":"Just a quickie. Here's a comprehensive tutorial for connecting an Arduino to your Pi using the I2C protocol.\u00a0Both sides of the communication is done using C, but it's pretty easy to understand even if all you've ever used is Python. Take a look here.","rel":"","context":"In &quot;Arduino&quot;","block_context":{"text":"Arduino","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=55"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.legomindstormsrobots.com\/wp-content\/uploads\/2014\/11\/RaspberryPiArduinoI2C-02.jpg?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.legomindstormsrobots.com\/wp-content\/uploads\/2014\/11\/RaspberryPiArduinoI2C-02.jpg?resize=350%2C200 1x, https:\/\/i0.wp.com\/www.legomindstormsrobots.com\/wp-content\/uploads\/2014\/11\/RaspberryPiArduinoI2C-02.jpg?resize=525%2C300 1.5x"},"classes":[]},{"id":7904,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=7904","url_meta":{"origin":3435,"position":1},"title":"Connecting an Arduino to the #RaspberryPi using I2C","author":"Michael Horne","date":"17 February 2014","format":false,"excerpt":"There are several ways to connect an Arduino to a Pi. The simplest way is to just plug it into one of the USB sockets on the Pi. Peter Mount, however, needed to do things differently as he was already using his Model A's USB port for something else. So,\u2026","rel":"","context":"In &quot;Arduino&quot;","block_context":{"text":"Arduino","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=55"},"img":{"alt_text":"","src":"https:\/\/reteporg.files.wordpress.com\/2014\/02\/425px-i2c-svg.png?w=350&h=200&crop=1","width":350,"height":200},"classes":[]},{"id":1221,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=1221","url_meta":{"origin":3435,"position":2},"title":"Pi and Arduino [reblog]","author":"Michael Horne","date":"7 January 2013","format":false,"excerpt":"\u00a0 Great summary article from Romilly Cocking of Quick2Wire of the community relationship between the Pi and Arduino as evidenced at the Milton Keynes Raspberry Jam. \u00a0 I'm still a bit unsure about level shifters, SPI and I2C, but I'm hoping that knowledge will come in time when I find\u2026","rel":"","context":"In &quot;Arduino&quot;","block_context":{"text":"Arduino","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=55"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2547,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=2547","url_meta":{"origin":3435,"position":3},"title":"Using a HMC5883L magnetometer\/compass with the #RaspberryPi","author":"Michael Horne","date":"2 March 2013","format":false,"excerpt":"This blog post describes getting an HMC5883L magnetic compass sensor to work with a Raspberry Pi. The pictures below show the sensor breakout board in question. For Arduino Leonardo If you do not have an Arduino, or just want the instructions for the Raspberry Pi, please skip this section. I\u2026","rel":"","context":"In &quot;Arduino&quot;","block_context":{"text":"Arduino","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=55"},"img":{"alt_text":"P1370736","src":"\/blog\/wp-content\/uploads\/2013\/03\/P13707361-300x270.jpg","width":350,"height":200},"classes":[]},{"id":1657,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=1657","url_meta":{"origin":3435,"position":4},"title":"New supplier of bits n pieces for the #RaspberryPi &#8211; BitWizard","author":"Michael Horne","date":"31 January 2013","format":false,"excerpt":"Netherlands-based (and therefore Euro currency) site BitWizard\u00a0are selling some nice modules. For example, breakout boards for the I2C and SPI pins and an LCD and control panel board. Very reasonable shipping costs, too. I looked at their Arduino-compatible bridge adapter (the Raspduino) and, for an Arduino-sized product costing 20 euros,\u2026","rel":"","context":"In &quot;Accessories&quot;","block_context":{"text":"Accessories","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=54"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3976,"url":"https:\/\/www.recantha.co.uk\/blog\/?p=3976","url_meta":{"origin":3435,"position":5},"title":"#RaspberryPi and Rainbowduino make for psychedelic helmet","author":"Michael Horne","date":"9 May 2013","format":false,"excerpt":"Ryan Longo and Michael Vogt have teamed up to create a Daft Punk-inspired helmet powered by a Raspberry Pi and using several I2C-capable Rainbowduinos. Read more about the project here and watch the demonstration video.","rel":"","context":"In &quot;Arduino&quot;","block_context":{"text":"Arduino","link":"https:\/\/www.recantha.co.uk\/blog\/?cat=55"},"img":{"alt_text":"RPI as Network enabled I2C gateway aka. Daft Punk helmet","src":"\/blog\/wp-content\/uploads\/2013\/05\/MG_7652-1024x6821.jpg","width":350,"height":200,"srcset":"\/blog\/wp-content\/uploads\/2013\/05\/MG_7652-1024x6821.jpg 1x, \/blog\/wp-content\/uploads\/2013\/05\/MG_7652-1024x6821.jpg 1.5x, \/blog\/wp-content\/uploads\/2013\/05\/MG_7652-1024x6821.jpg 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3435","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=3435"}],"version-history":[{"count":0,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3435\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.recantha.co.uk\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}