<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Project Notes &#187; I/O Bus</title>
	<atom:link href="http://projectnotes.co.uk/tag/io-bus/feed/" rel="self" type="application/rss+xml" />
	<link>http://projectnotes.co.uk</link>
	<description>Random Computer, Internet and Electronics Projects</description>
	<lastBuildDate>Fri, 06 Jan 2012 13:43:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>I/OBus Rewire &amp; Power Problems Resolved.</title>
		<link>http://projectnotes.co.uk/2008/10/io-bus-rewire-power-problems-resolved/</link>
		<comments>http://projectnotes.co.uk/2008/10/io-bus-rewire-power-problems-resolved/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 03:27:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[I/O Bus]]></category>
		<category><![CDATA[I2C]]></category>
		<category><![CDATA[16F876A]]></category>

		<guid isPermaLink="false">http://www.projectnotes.co.uk/?p=180</guid>
		<description><![CDATA[I rewired the Router to another scart plug, at the same time, I used an extra 78L05 to power the 5v line on the i/o bus.  Both the new wiring and power arrangements caused problems. The I2C Remote Control refused &#8230; <a href="http://projectnotes.co.uk/2008/10/io-bus-rewire-power-problems-resolved/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I rewired the Router to another <strong>scart</strong> plug, at the same time, I used an extra <strong>78L05</strong> to power the 5v line on the i/o bus.  Both the new wiring and power arrangements caused problems.<span id="more-154"></span></p>
<p>The <strong>I2C</strong> <strong>Remote Control</strong> refused to work.  Reading the analog pin on the <strong>PIC</strong> <strong>16F876a</strong> seemed to work a couple of times after startup but failed after that.  It looked like the power to the 5v rail was still too low.</p>
<p>As I had allowed myself a slightly longer cable, it seemed reasonable that a combination of this and 78L05 were causing the problems.</p>
<p>I ditched both the <strong>78L05</strong>s and wired in a <strong>5v</strong> <strong>2A</strong> <strong>PlugPack</strong> adaptor that used to run a Wifi Bridge &#8211; plenty of power!</p>
<p>Still the <strong>16F876a</strong> processor refused to talk consistently to the <strong>I2C</strong>.  I checked that the bus was indeed working by plugging in the little <strong>i2c</strong> <strong>eeprom</strong> module I tested the original <strong>I/O bus</strong> with.  That worked no problems.</p>
<p>Looking at the <strong>I2C</strong> details on the www.sunspot.co.uk site and others, I wondered if the <strong>I2C</strong> pull ups were anything to do with the problem.  I was using 4k7 and I saw others using values as low as 2k2.</p>
<p>Substituting a pair of 2k2 resistors solved the problem, however, the 5v line dropped below the 5v mark.  Increasing them to 3k2 brought the 5v rail back to just under 5v and the PIC continued to talk to the <strong>I2C</strong> bus.</p>
<p>Lesson:  be prepared to tinker with the <strong>I2C</strong> pullups etc. when using different line lengths and slave devices.</p>
]]></content:encoded>
			<wfw:commentRss>http://projectnotes.co.uk/2008/10/io-bus-rewire-power-problems-resolved/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Router I/O Bus Cable Problem</title>
		<link>http://projectnotes.co.uk/2008/09/router-io-bus-cable-problem/</link>
		<comments>http://projectnotes.co.uk/2008/09/router-io-bus-cable-problem/#comments</comments>
		<pubDate>Tue, 30 Sep 2008 00:29:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[I/O Bus]]></category>
		<category><![CDATA[OpenWrt Midge]]></category>

		<guid isPermaLink="false">http://www.projectnotes.co.uk/?p=172</guid>
		<description><![CDATA[I am going to have to re-wire the router I/O Bus connection.  I opened the router case to investigate giving the I/O Bus it&#8217;s own 5v line &#8211; the little 78L05 regulator is really only capable of supplying 1 usb &#8230; <a href="http://projectnotes.co.uk/2008/09/router-io-bus-cable-problem/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I am going to have to re-wire the router <strong>I/O Bus</strong> connection.  I opened the router case to investigate giving the I/O Bus it&#8217;s own <strong>5v</strong> line &#8211; the little <strong>78L05</strong> regulator is really only capable of supplying 1 usb device.  I was running into power troubles hooking too many things to the I/O bus.<span id="more-148"></span></p>
<p>When I tried to open the case, I found that the wires to the <strong>Scart</strong> Plug had melted themselves into the plastic base of the router!</p>
<div class="wp-caption alignnone" style="width: 350px"><img title="Router Case After the Cables Moulded Themselves to it." src="/images/Router-Base-Cable-Problem.jpg" alt="Router Case After the Cables Moulded Themselves to it." width="340" height="255" /><p class="wp-caption-text">Router Case After the Wires &#39;Moulded&#39; Themselves to it.</p></div>
<p>I thought &#8216;perhaps I had drawn too much power through the wires&#8217;, but the marks at the top of the picture are from the wires to the <strong>LED</strong>s.</p>
<p>I guess the problem is a result of a chemical reaction between the soft plastic of the base and the rubbery style insulation used on the black wires from the &#8216;cheap&#8217; <strong>scart splitter</strong>.</p>
<p>I notice that the scart to scart leads with coloured wires inside seem to be made with a different insulating material.  I&#8217;ll have to re-wire, (using one of these) as when I pulled the wires from the base, several of them left a good portion of insulation behind.</p>
]]></content:encoded>
			<wfw:commentRss>http://projectnotes.co.uk/2008/09/router-io-bus-cable-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Router I2C Interface</title>
		<link>http://projectnotes.co.uk/2008/08/router-i2c-interface/</link>
		<comments>http://projectnotes.co.uk/2008/08/router-i2c-interface/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 19:02:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[I/O Bus]]></category>
		<category><![CDATA[I2C]]></category>
		<category><![CDATA[OpenWrt Midge]]></category>
		<category><![CDATA[Midge]]></category>
		<category><![CDATA[PIC]]></category>

		<guid isPermaLink="false">http://www.projectnotes.co.uk/?p=50</guid>
		<description><![CDATA[These are the I2C Bus Hardware and Software settings I am using with the on OpenWrt Midge router to talk to a PIC 16F876 I2C Slave. I2C Hardware Here is the level shifter I&#8217;m using for the Router (3v) I2C &#8230; <a href="http://projectnotes.co.uk/2008/08/router-i2c-interface/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>These are the <strong>I2C</strong> Bus Hardware and Software settings I am using with the on <strong>OpenWrt</strong> <strong>Midge</strong> router to talk to a PIC <strong>16F876</strong> I2C Slave.<span id="more-43"></span></p>
<h2>I2C Hardware</h2>
<p>Here is the level shifter I&#8217;m using for the Router (3v) I2C interface (5v on Pic and other chips I have)</p>
<pre>                 5v
                |
                |
                R
               4k7
                R
                |
SCL ---+--R220--+-----&gt; 5v SCL
       |
     =====  Use the Same
      ZD\   For the Data
     /3.3\  Line
       |
       |
0v-----+---------------</pre>
<p>The above has so far worked happily with an old philips 2048bit (256 bytes!) eeprom.</p>
<p>Pin Header (for breadboard)</p>
<p>1: 0v</p>
<p>2: 3v</p>
<p>3: 5v</p>
<p>4: KEY NC</p>
<p>5: TX (I/O Bus -&gt; project)</p>
<p>6: RX (project &lt;- I/O Bus)</p>
<p>7: LED3 GPIO8 I2C SDA</p>
<p>8: LED5 GPIO11 I2C SCL</p>
<h2>I2C Software Settings</h2>
<p>In the sunspot.co.uk Midge rom, the default <strong>I2C</strong> port uses different gpio lines.  To use gpio 8 and 11, the file &#8220;/etc/init.d/S99start_i2c&#8221; file needs changing:-</p>
<p>The line containing &#8220;insmod i2c-adm5128&#8243; needs to read &#8220;insmod i2c-adm5120 scl=11 sda=8&#8243;</p>
]]></content:encoded>
			<wfw:commentRss>http://projectnotes.co.uk/2008/08/router-i2c-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I/O Bus Connections</title>
		<link>http://projectnotes.co.uk/2008/08/io-bus-connections/</link>
		<comments>http://projectnotes.co.uk/2008/08/io-bus-connections/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 00:00:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[I/O Bus]]></category>
		<category><![CDATA[OpenWrt Midge]]></category>
		<category><![CDATA[I2C]]></category>

		<guid isPermaLink="false">http://www.projectnotes.co.uk/?p=27</guid>
		<description><![CDATA[These are the Connections I am using on the I/O Bus. The Scart Connector Pins +==============================+ &#124; 1 3 5 7 9 11 13 15 17 19&#124;(21) - - shield &#124; \ &#124; 2 4 6 8 10 12 14 &#8230; <a href="http://projectnotes.co.uk/2008/08/io-bus-connections/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>These are the Connections I am using on the I/O Bus.<span id="more-22"></span></p>
<p>The Scart Connector Pins</p>
<pre>+==============================+
| 1  3  5  7  9  11 13 15 17 19|(21) - - shield
|                               \
|  2  4  6  8  10 12 14 16 18 20 |
+================================+</pre>
<p>Bus Connections &amp; LED I/O Line Use.</p>
<table border="0">
<tbody>
<tr>
<td width="50%">1 LED3 I2C SDA</p>
<p>3 LED5 I2C SCL</p>
<p>5 LED7</p>
<p>7 LED9</p>
<p>9 LED11 LCD RS</p>
<p>11 0v</p>
<p>13 0v</p>
<p>15 +3v</p>
<p>17 +5v</p>
<p>19 Serial TX</td>
<td width="50%">2 LED 4 LCD D4</p>
<p>4 LED6 LCD D5</p>
<p>6 LED8 LCD D6</p>
<p>8 LED10 LCD D7</p>
<p>10 LED12 LCD E</p>
<p>12 0v</p>
<p>14 +3v</p>
<p>16 +5v</p>
<p>18 Reset Input</p>
<p>20 Serial RX</td>
</tr>
</tbody>
</table>
<p>I added extra power lines as the wire used is quite fine.  The extra power and 0v lines are connected at the router, they are not linked on the Bus I/O board to avoid any ground loop.</p>
]]></content:encoded>
			<wfw:commentRss>http://projectnotes.co.uk/2008/08/io-bus-connections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding a Serial Port</title>
		<link>http://projectnotes.co.uk/2008/08/adding-a-serial-port/</link>
		<comments>http://projectnotes.co.uk/2008/08/adding-a-serial-port/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 23:46:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OpenWrt Midge]]></category>
		<category><![CDATA[I/O Bus]]></category>
		<category><![CDATA[Midge]]></category>
		<category><![CDATA[PIC]]></category>

		<guid isPermaLink="false">http://www.projectnotes.co.uk/?p=24</guid>
		<description><![CDATA[Fitting a serial converter and lead insider the I/O Bus box gives us back a socket for other projects and gets the serial converter out of harms way.  Cutting a couple of I/O Bus tracks opens up even more options. &#8230; <a href="http://projectnotes.co.uk/2008/08/adding-a-serial-port/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Fitting a serial converter and lead insider the I/O Bus box gives us back a socket for other projects and gets the serial converter out of harms way.  Cutting a couple of I/O Bus tracks opens up even more options.<span id="more-20"></span></p>
<p>I have been using the 5 port &#8216;scart socket&#8217; I/O Bus simply as a passive backplane.  All of the lines are bussed together and using it simply involves hooking up the correct pins of a scart type plug to the corresponding pins on a circuit.</p>
<p>The <a title="The 5 port I/O Bus made from a scart splitter" href="http://www.projectnotes.co.uk/cheap-io-bus/">I/O bus</a> started life as a cheap breakout box for the Sweex/Edimax Router so that I could hook up different circuits to it without risking physical damage to the router itself &#8211; at least I won&#8217;t be able to break off a component whilst connecting a new circuit.</p>
<p>The Bus simply carries the router led, power (3v and 5v) and serial lines. I have been using a transistor based level converter to connect the router to a PC for uploading new ROM images.</p>
<p>Now that I&#8217;m going to add a PIC Processor and try a bit of communication between the PIC and the Router, it occured to me that it would be useful if I cut the serial lines somewhere on the bus so that I could hook up more than one serial device &amp; converter.</p>
<p>However, there is just room for my level converter or one based on a MAX232 IC (a better idea if you have one handy) where the original scart lead exited the case.</p>
<p>I added the circuit, connecting it to the nearest socket and cut the traces between the serial pins and the rest of the I/O Bus.</p>
<p>Now, if I need to boot the router and upload a new ROM Image or work with the serial port, I plug the router into the first socket.  If I move the router to another socket, I can plug a PIC or whatever into the first socket and upload software to that.</p>
]]></content:encoded>
			<wfw:commentRss>http://projectnotes.co.uk/2008/08/adding-a-serial-port/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

