|
Post by raspberryguy on May 9, 2013 18:12:54 GMT -8
Hi,
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.
Any ideas?
|
|
|
Post by SDL on May 9, 2013 19:10:15 GMT -8
Hi RG,
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.
sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- 0b 0c -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- 77
You can see my two BlinkMs and my BMP085 on my test system on the I2C bus.
Let me know if we can be of more help.
BP
|
|
|
Post by raspberryguy on May 13, 2013 10:45:56 GMT -8
Just got back to this last night. It was having the LED on the I2C line that kept things from working. Thank you!
|
|
racky
New Member
Posts: 28
Raspberry Pi: Yes
Other Device: Odroid C2, XU4 and N2, Banana Pi
|
Post by racky on Aug 11, 2016 15:19:04 GMT -8
Can somebody post an example of how the local.py would look to read the BMP085 and present Temp or Pressure?
|
|