This is our set up for wires and such and we've tried everything, from changing out each component, different usb cables, and even the same board, we've been able to get it to work on a UNO R3 but not our Nano 33 BLE Rev 2 Scence.
#include "Arduino_BMI270_BMM150.h"
int motorPin = 3; // digital pin connected to the base of the NPN transistor
int light = 8;
void setup() {
// set the motorPin as an output:
pinMode(motorPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
// turn the motor on with full speed using PWM:
digitalWrite(motorPin, HIGH);
Serial.println("Motor is running at full speed");
digitalWrite(light, HIGH);
Serial.println("light on");
// Add a delay to observe the output in the serial monitor
delay(1000);
}