I/OBus Rewire & Power Problems Resolved.

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 to work.  Reading the analog pin on the PIC 16F876a 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.

As I had allowed myself a slightly longer cable, it seemed reasonable that a combination of this and 78L05 were causing the problems.

I ditched both the 78L05s and wired in a 5v 2A PlugPack adaptor that used to run a Wifi Bridge – plenty of power!

Still the 16F876a processor refused to talk consistently to the I2C.  I checked that the bus was indeed working by plugging in the little i2c eeprom module I tested the original I/O bus with.  That worked no problems.

Looking at the I2C details on the www.sunspot.co.uk site and others, I wondered if the I2C pull ups were anything to do with the problem.  I was using 4k7 and I saw others using values as low as 2k2.

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 I2C bus.

Lesson:  be prepared to tinker with the I2C pullups etc. when using different line lengths and slave devices.

This entry was posted in I/O Bus, I2C and tagged , , . Bookmark the permalink.

4 Responses to I/OBus Rewire & Power Problems Resolved.

  1. voxit says:

    Hi,

    Could you compile Blassic also for linux 2.6, I like to use squidge.
    http://squidge.sourceforge.net/
    but blassic will not run on that version.

    Arie

  2. admin says:

    Hi Arie,
    I’m planning to look at squidge the next chance I get, any tips on building the system?

  3. arie says:

    About I2C there are extenders,
    http://www.voti.nl/shop/p/IC-P82B715-DIP.html
    Up to 30 meters.
    About squidge you can get a pre-compiled version at
    ftp://squidge.hobbybob.info/

    Arie

  4. admin says:

    Re Blassic on squidge (linux2.6)

    I have squidge built, but am still learning my way around it.

    Using the OpenWrt SDK that comes with openwrt / squidge, I have built a test version of blassic. Like my first attempts using midge, this blassic has no trig functions. Also, the extended peek/poke functions have been commented out.

    When I can get the package integrated into the main build, I will be able to get these functions back.

    For now it should work like the vanilla blassic without the SIG/COS/TAN functions.

    Inside the tgz file is a blassic26 ipk file and a libstdc++.so.6 file install the ipkg with opkg and copy the lib file to /usr/lib

    This is UNTESTED (it loads and will ‘print “hello”‘!

    http://www.projectnotes.co.uk/images/blassic26.tgz

    Anybody added a foreign package to squidge?