Post by raspberryguy on May 9, 2013 18:12:54 GMT -8
I've got the raspi server setup on my raspberry pi and I can connect to it from my iPad. I successfully ran the browser test and am now modifying the example code to connect to my I2C BMP085. It isn't connecting. I have an LED connected to the I2C bus and I can see it flicker when I access it.
Well, that's not a lot of information to go on, but let me try to help.
1) We would suggest you take your LED off the I2C bus. It could be loading it down. If you want to see what is going on, try using a BlinkM I2C module like we do in the example. Or wire an LED (with a current limiting resistor!!) to a GPIO pin and pulse it before and after writing and reading the bus.
2) Put some 10K pullup resistors on the I2C bus. It dramatically improved our reliability. Lots of stuff on the web regarding this issue with the Raspberry Pi. We connect to our I2C bus through an Adafruit Pi Cobbler Breakout Kit (we should own stock in those guys) and then through an 4-Channel I2C safe Bit-directional logic converter to make sure we have the levels right. BSS138 Adafruit.
3) Have you tried using i2cdetect to see your I2C bus. Check out your installation if this doesn't work.