Hello all,
I am trying to connect a vibration motor to an arduino nano 33 BLE. I am connecting the motor to D6 and GND. The arduino is powered by the usb to the laptop, which should not be a problem.
But after uploading a code, which I am also uploading here and changing digital pins the motor does not vibrate.
In the first image (#1) the motor is connected GND to pin D5,
but the sketch sets "int motorPin = 6;" .
Thankfully, it didn't burn pin 6.
In the next image (#12) the motor is connected to the collector of a transistor, (I can't see it well), and what I assume is the base of the transistor (I can't see it well) is connected to pin D3 (or D2. I can't. visualize well), and I don't know how it looks in the sketch.
In the next image (#13) on Fritzing the motor is connected to a transistor and the base of the transistor is connected to pin D3 , and I don't know how it looks in the sketch.
In the photo the motor is connected to a transistor and the base of the transistor is connected to pin D8, and I don't know how it looks in the sketch.
I recommend that @stekinho review your project and sketch.