<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Creating Multi-Purpose I2C Devices with Arduino for use with a Raspberry Pi</title><link>/products/arduino/b/blog/posts/creating-multi-purpose-i2c-devices-with-arduino-for-use-with-a-raspberry-pi</link><description>In a previous post the sending of a single byte using I2C between a Raspberry Pi (master) running a Python 3.7 script and a microcontroller using Arduino libraries was described. In this post a more useful template with multiple byte transfer i...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Creating Multi-Purpose I2C Devices with Arduino for use with a Raspberry Pi</title><link>https://community.element14.com/products/arduino/b/blog/posts/creating-multi-purpose-i2c-devices-with-arduino-for-use-with-a-raspberry-pi</link><pubDate>Sun, 08 Nov 2020 15:54:56 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b2e7f84b-aaa4-41c6-9e10-516b1c083b30</guid><dc:creator>robogary</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Frank - Whats your insights on using a I2C IO expander module , such as a &lt;a class="jive-link-external-small" href="https://learn.adafruit.com/gpio-expander-bonnet" rel="nofollow ugc noopener" target="_blank" title="https://learn.adafruit.com/gpio-expander-bonnet"&gt;https://learn.adafruit.com/gpio-expander-bonnet&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&amp;nbsp; &lt;a class="jive-link-external-small" href="https://www.sparkfun.com/products/13601" rel="nofollow ugc noopener" target="_blank" title="https://www.sparkfun.com/products/13601"&gt;https://www.sparkfun.com/products/13601&lt;/a&gt;&amp;nbsp; &lt;/p&gt;&lt;p&gt;VS &lt;/p&gt;&lt;p&gt;an Arduino Nano as an I2C slave ?&amp;nbsp; &lt;/p&gt;&lt;p&gt;The Nano seems to be a cheaper solution and adds flexibility to filter, DAC, distributed logic, etc,&amp;nbsp; &lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8443&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Creating Multi-Purpose I2C Devices with Arduino for use with a Raspberry Pi</title><link>https://community.element14.com/products/arduino/b/blog/posts/creating-multi-purpose-i2c-devices-with-arduino-for-use-with-a-raspberry-pi</link><pubDate>Sun, 08 Nov 2020 15:10:07 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b2e7f84b-aaa4-41c6-9e10-516b1c083b30</guid><dc:creator>robogary</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Frank - have you invested any more time on this project ? &lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8443&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Creating Multi-Purpose I2C Devices with Arduino for use with a Raspberry Pi</title><link>https://community.element14.com/products/arduino/b/blog/posts/creating-multi-purpose-i2c-devices-with-arduino-for-use-with-a-raspberry-pi</link><pubDate>Thu, 19 Dec 2019 20:30:09 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b2e7f84b-aaa4-41c6-9e10-516b1c083b30</guid><dc:creator>three-phase</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Very interesting read Frank, thanks for posting.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Kind regards&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8443&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Creating Multi-Purpose I2C Devices with Arduino for use with a Raspberry Pi</title><link>https://community.element14.com/products/arduino/b/blog/posts/creating-multi-purpose-i2c-devices-with-arduino-for-use-with-a-raspberry-pi</link><pubDate>Thu, 19 Dec 2019 16:36:31 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b2e7f84b-aaa4-41c6-9e10-516b1c083b30</guid><dc:creator>genebren</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Hi Frank,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Great write-up on using I2C between a Raspberry Pi and an Arduino.&amp;nbsp; I find the I2C bus to be a very good solution for inter-processor communications, having used it for those purposes on a wide variety of projects.&amp;nbsp; I find that it is very useful to bridge between a main processor and a variety of sub processors or even hardware (having used it to communicate to hardware devices, CPLD/FPGAs or other processors).&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Well done!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Gene&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8443&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Creating Multi-Purpose I2C Devices with Arduino for use with a Raspberry Pi</title><link>https://community.element14.com/products/arduino/b/blog/posts/creating-multi-purpose-i2c-devices-with-arduino-for-use-with-a-raspberry-pi</link><pubDate>Thu, 19 Dec 2019 11:52:12 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b2e7f84b-aaa4-41c6-9e10-516b1c083b30</guid><dc:creator>dubbie</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;This looks great. I&amp;#39;d quite like to build a multiprocessor (as in several smaller microcontrollers such as Arduino) for a mobile robot for some time with the idea of using a micro for each function (motor, rangefinders and so on) with a communication link between all the units, in order to be able to work on the individual functional units without having to worry about the rest of the system. I was vaguely thinking about RS232 TTL serial but maybe I2C or SPI might be better. Your blog will be helpful in this aspiration, although I&amp;#39;m not sure how long it might take to convert an aspiration into some type of reality. I seem to always keep getting diverted by interests of the moment.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Dubbie&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8443&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Creating Multi-Purpose I2C Devices with Arduino for use with a Raspberry Pi</title><link>https://community.element14.com/products/arduino/b/blog/posts/creating-multi-purpose-i2c-devices-with-arduino-for-use-with-a-raspberry-pi</link><pubDate>Thu, 19 Dec 2019 11:50:02 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b2e7f84b-aaa4-41c6-9e10-516b1c083b30</guid><dc:creator>neilk</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Nice posting Frank. I&amp;#39;m not a Raspberry user, but I have an interest in ESP8266 to good old Arduino communication. I hadn&amp;#39;t thought of using I2C. It could be very useful to me.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Neil&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8443&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Creating Multi-Purpose I2C Devices with Arduino for use with a Raspberry Pi</title><link>https://community.element14.com/products/arduino/b/blog/posts/creating-multi-purpose-i2c-devices-with-arduino-for-use-with-a-raspberry-pi</link><pubDate>Thu, 19 Dec 2019 09:36:33 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b2e7f84b-aaa4-41c6-9e10-516b1c083b30</guid><dc:creator>shabaz</dc:creator><slash:comments>2</slash:comments><description>&lt;p&gt;Hi Frank,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This is an excellent post for reference, I&amp;#39;ve not used Python for I2C on a Pi before. &lt;/p&gt;&lt;p&gt;Incidentally, whenever I see I2C (or SPI in fact), I always get curious to see what color wires people use : )&lt;/p&gt;&lt;p&gt;I&amp;#39;ve semi-standardized on yellow for clock signals, and green for data, no idea why : ) but it was a great coincidence to see that&amp;#39;s the same color-scheme as on your &amp;#39;scope traces for I2C!&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=8443&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>