- Wed Oct 25, 2023 6:14 am
#244818
Hello Sparkfun and developer community!
I am unable to implement the hookup guide associated with the SparkFun RP2040 mikroBUS Development Board (DEV-18721).: https://learn.sparkfun.com/tutorials/rp ... -guide/all
I am having difficulty implementing the basic Arduino example. I've tried a lot (detailed below) but only get the error "The sensor did not respond. Please check wiring."
Code I'm using (modified per the instructions in the hookup guide):
[*]SparkFun RP2040 mikroBUS Development Board (DEV-18721)
[*]MIKROE Weather Click (SEN-18823)
[*]Various USB cables and various USB ports on three computers to rule out a bad cable / USB port.
I attempted to implement the code example using all combinations of the below to rule out OS and software differences:
[*] Legacy Arduino IDE 1.8 and Arduino IDE 2;
[*] Arduino Mbed OS RP2040 Boards board definitions version 4.0.8 (latest)
[*] macOS, Windows 10 and Linux;
[*] On Linux, updated serial port permissions and also ran post-install sh per instructions on Arduino's website.
[*] On windows, I associated the board with various COM ports in device manager;
[*] All versions of the Sparkfun BME280 Arduino Library provided, from version 1 all the way to the latest.
Additional troubleshooting performed:
[*] Ran the Blink uf2 example and this runs just fine on the development board.
[*] Ran flash_nuke uf2 at multiple times to re-set the board.
[*] Ran PICOPROBE uf2 per the hookup guide.
[*] Ran various implementations of I2C scanners to see if the Weather Click is detected. I2C scanners do not see the click board.
[*] Rather than inserting the Weather Click into the Click connector, I connected the sensor to the development board with jumper cables. I2C scanners don't see the board.
[*] Connected MIKROE LDC1101 Click (SEN-18826) to the board and ran I2C scanners; the board does not show up on scanners.
[*] One at a time, connected a Sparkfun soil moisture sensor, Adafruit light sensor and Adafruit CO2 sensor to the Qwiic connection on the development board. I ran various implementations of the I2C scanner and none of the boards are detected.
The last point was an "a-ha" moment. One I2C bus being DOA is possible, but both I2C buses being DOA at the same time seems really unlikely. I believe I'm doing something wrong in the Arduino sketch. I did a lot of google searching and looked through the SparkFun Forums and wasn't able to figure out what I'm doing wrong.
Any help is greatly appreciated. Thank you!
I am unable to implement the hookup guide associated with the SparkFun RP2040 mikroBUS Development Board (DEV-18721).: https://learn.sparkfun.com/tutorials/rp ... -guide/all
I am having difficulty implementing the basic Arduino example. I've tried a lot (detailed below) but only get the error "The sensor did not respond. Please check wiring."
Code I'm using (modified per the instructions in the hookup guide):
Code: Select all
Hardware being used:
#include <Wire.h>
#include "SparkFunBME280.h"
BME280 mySensor;
void setup()
{
Serial.begin(115200);
while (!Serial){
; // wait for serial port
}
// Set I2C address
mySensor.settings.I2CAddress = 0x76;
Serial.println("Reading basic values from BME280");
Wire.begin();
if (mySensor.beginI2C() == false) //Begin communication over I2C
{
Serial.println("The sensor did not respond. Please check wiring.");
while(1); //Freeze
}
}
void loop()
{
Serial.print("Humidity: ");
Serial.print(mySensor.readFloatHumidity(), 0);
Serial.print(" Pressure: ");
Serial.print(mySensor.readFloatPressure(), 0);
Serial.print(" Alt: ");
//Serial.print(mySensor.readFloatAltitudeMeters(), 1);
Serial.print(mySensor.readFloatAltitudeFeet(), 1);
Serial.print(" Temp: ");
//Serial.print(mySensor.readTempC(), 2);
Serial.print(mySensor.readTempF(), 2);
Serial.println();
delay(50);
}
[*]SparkFun RP2040 mikroBUS Development Board (DEV-18721)
[*]MIKROE Weather Click (SEN-18823)
[*]Various USB cables and various USB ports on three computers to rule out a bad cable / USB port.
I attempted to implement the code example using all combinations of the below to rule out OS and software differences:
[*] Legacy Arduino IDE 1.8 and Arduino IDE 2;
[*] Arduino Mbed OS RP2040 Boards board definitions version 4.0.8 (latest)
[*] macOS, Windows 10 and Linux;
[*] On Linux, updated serial port permissions and also ran post-install sh per instructions on Arduino's website.
[*] On windows, I associated the board with various COM ports in device manager;
[*] All versions of the Sparkfun BME280 Arduino Library provided, from version 1 all the way to the latest.
Additional troubleshooting performed:
[*] Ran the Blink uf2 example and this runs just fine on the development board.
[*] Ran flash_nuke uf2 at multiple times to re-set the board.
[*] Ran PICOPROBE uf2 per the hookup guide.
[*] Ran various implementations of I2C scanners to see if the Weather Click is detected. I2C scanners do not see the click board.
[*] Rather than inserting the Weather Click into the Click connector, I connected the sensor to the development board with jumper cables. I2C scanners don't see the board.
[*] Connected MIKROE LDC1101 Click (SEN-18826) to the board and ran I2C scanners; the board does not show up on scanners.
[*] One at a time, connected a Sparkfun soil moisture sensor, Adafruit light sensor and Adafruit CO2 sensor to the Qwiic connection on the development board. I ran various implementations of the I2C scanner and none of the boards are detected.
The last point was an "a-ha" moment. One I2C bus being DOA is possible, but both I2C buses being DOA at the same time seems really unlikely. I believe I'm doing something wrong in the Arduino sketch. I did a lot of google searching and looked through the SparkFun Forums and wasn't able to figure out what I'm doing wrong.
Any help is greatly appreciated. Thank you!