BLE SENSE REV 2 with SeeedStudio MAX3185K

I am trying to upload this Example code in my Nano BLE Sense Rev 2 and the moment i upload this code it gives me an error that Connected USB Malfunctioned but it works fine for other codes.
Also if i upload the same code to UNO it works perfectly fine


#include <OneWire.h>
#include <DallasTemperature.h>

// Data wire is plugged into port 3 on the Arduino

// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs)
OneWire oneWire(D3);

// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);

void setup(void) {
    Serial.begin(115200);
    sensors.begin();
}

void loop(void) {
    // request to all devices on the bus
    Serial.print("Requesting temperatures...");
    sensors.requestTemperatures(); // Send the command to get temperatures
    Serial.println("DONE");

    Serial.print("Temperature for the device 1 (index 0) is: ");
    Serial.println(sensors.getTempCByIndex(0));
}

Welcome to the forum.

That does not mean anything. The Arduino UNO and the Arduino Nano 33 BLE have completely different hardware (32-bit ARM-Cortex-M) and software architectures (mbedOS).

You will need to do some test and debugging to see whether the library can work with this device.

I have a DALLAS sensor running with a Nano 33 IoT. It is also based on an ARM Cortex-M not the same as the Nano 33 BLE but does not use mbedOS, supports BLE and WiFi.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.