mymyball,
Thanks for the MyWireLib.h and associated files.
I have a couple newbie questions:
- In your script BMP180_Dual_Pressursensors_AH (line 18), your pin declarations confuse me... Sens[1].SCLpinI=4 for example: Arduino UNO defines A4 for the SDA function. Does your script/code redefine UNO pin 4 from default of SDA to SCL?
- Same question for Sens[1].SDApinI=5: are you swapping SDA and SCL pins?
I wired up my UNO to just one BMP180 to get started and simplify the circuit (I will add a second BMP later). My wiring is as follows: BMP SCL pin to UNO A4; BMP SDA pin to UNO A5.
When I loaded the script (unmodified from your source), I see in the COM window the initialization
"SCLPIN for sensor 0: 2
SDAPIN for sensor 0: 3
SCLPIN for sensor 1: 4
SDAPIN for sensor 1: 5" followed by several errors, such as "Timeout: Error: AKS3" (11 times), then
"Sensor 0 calibration data:
AC1 = -256
AC2 = -256
AC3 = -256
AC4 = 65280
AC5 = 65280
AC6 = 65280
B1 = -256
B2 = -256
MB = -256
MC = -256
MD = -256"
Then more errors and calibration values for sensor 1.
Finally, the readings are output as follows:
"Timeout:
Error: AKS3
Timeout:
Error: AKS ReadByte Get
Sensor 0 => Temperature: 12.80 C | Pressure: 1002.78 mbar" which repeats forever, with the identical temp/press values, even if I heat the sensor with my finger or my hot air (breath).
I then reversed my SCL and SDA wires (BMP SCL pin to UNO A5; BMP SDA pin to UNO A4) to see if this fixed some of the errors, but alas, I observed identical results.
Do you have enough detail here to help me know what's going on here?