I have a BMP183 (from Adafruit) and I'm trying to make it work on my Raspberry Pi 2B, but I'm getting the following error:
BMP183 returned ',#randomnumber#, ' instead of 0x55. Communication failed, expect problems
I've tried this code BMP183 both master and threaded.
I tried to modify the PIN in the code in the
def __init__(self) function and I still get the same error.
- CS on CE0 (pin 24), red cable;
- SDI on MOSI (pin 19), orange cable;
- SDO on MISO (pin 21), yellow cable;
- SCK in SCLK (pin 23), green cable;
Is there anything that I did wrong?