Arduino Nano 33 BLE Sense - 5V Based On A Digital Pin Output

Arduino nano 33 BLE Sense - how to output 0 - 5V based on a digital pin output Official Hardware Nano Family Nano 33 BLE Sense June 4, 2022, 5:55pm 1

Hey, I'm new to arduino and I was wondering how I could power my 5V DC motor with one of my digital output pins. I am having trouble with this because I need 5V for the motor but my board only outputs 3.3V from the digital pins. The reason why I want to use the digital pins is because I want to be able to take advantage of the PWM so that I can change the speed that the motor runs. I saw a booster converter circuit online but I am not sure if I can safely use it with my arduino without damaging the board. I would really appreciate a diagram or example of a possible solution. Thanks.

June 4, 2022, 6:10pm 2

Do you need to run the motor both forward and reverse? If so, you need an "H-bridge" motor driver. You will also need a 5V PSU. You can't run anything more than the tinyest motors from the current an Arduino can supply. Before you buy such a driver, post the specs or a link here so that we can check it is suitable. Avoid drivers based on ancient chips like L293/L298.

If you only need speed control in a single direction, you can simply use a suitable transistor circuit.

To give more detail, you will need to give the forum detailed specs of your motor, particularly the stall current or the winding resistance.

June 4, 2022, 6:23pm 3

Hi, thanks for replying. I only need to run the motor in one direction. I bought the Gikfun 1.5V-6V Type 130 Miniature DC Motors for Arduino from amazon. There might be some more information on this link. I hope this is enough information for now but I will be willing to look more in depth.

June 4, 2022, 6:30pm 4

The second link provided no more information than the first. Neither provided the important stall current or winding resistance. Unfortunately, this is typical of so many vendors who sell to arduino enthusiasts.

Do you have a multimeter? Set it to the 0-200 ohm range and measure the resistance between the motor terminals.

June 4, 2022, 6:35pm 5

Ok, the resulting value was 8.3

June 4, 2022, 6:43pm 6

Ok, great.

So, if you run the motor at 5V, the maximum current the motor can draw will be 5/8.3 = 0.6 Amps. You need a power supply that can comfortably provide that, perhaps rated 0.75A for example.

To control the motor you will need a transistor, plus a few sundry (but vital) components.

Your said the Arduino is a 3.3V model. It's always important to let the forum know exactly what model of Arduino so we can give good advice.

June 4, 2022, 6:44pm 7

Oh sorry, it is a Arduino nano 33 BLE Sense

June 4, 2022, 6:58pm 8

Ok, so the output pins on that Arduino can supply 15mA absolute max. That means 10~12mA max for the safety of the chip. This is quite a lot less than, for example, an Uno which can supply 40mA absolute max, so ~30mA for safety.

That means we have 10~12mA at 3.3V to control a motor which can draw up to 600mA at 5V. We need to choose a transistor that fits these requirements.

June 4, 2022, 7:00pm 9

Use your favorite search engine with the terms "arduino motor control" to find tutorials.

But, stay away from the bad ones that say it is OK to power the motor from the Arduino.

June 4, 2022, 7:06pm 10

Do you know of a transistor I can use and how I should wire the motor up to the transistor and arduino?

June 4, 2022, 9:22pm 11

IRLZ44.

Put 220R or 330R from the Arduino PWM output pin to the gate of the transistor. Put 10K pull-down from the Arduino pin to ground. Connect the motor to 5V and the drain of the transistor. Connect the source of the transistor to ground. This is most important: connect a diode such as 1N4001 across the motor terminals, with the cathode towards 5V. Also a 0.1uF cap across the motor terminals will bea good idea to suppress interference created by the motor.

June 4, 2022, 9:42pm 12

Thank you for your help!

December 1, 2022, 9:42pm 13

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

Topic Replies Views Activity
Use Arduino Nano BLE Sense to control 4 DC motors with external battery General Guidance 14 151 June 13, 2025
Arduino NANO 33 BLE REV 2 SCENCE not working with a vibration motor General Guidance 5 110 August 25, 2025
Arduino nano connection with a vibration motor General Electronics 5 538 August 6, 2024
What should i do to NOT fry my new Arduino nano General Guidance 20 136 February 11, 2026
L298N with Nano 33 BLE Sense motors not working Nano 33 BLE 14 159 August 9, 2025
Unfortunately, your browser is unsupported. Please switch to a supported browser to view rich content, log in and reply.

Tag » Arduino Nano Ble 5v Output