Servo motor not working when connected to Arduino Nano BLE

Hi, I am a beginner. I am trying to connect a small blue servo motor to my board but it is not working. what is the problem and how can I fix it
I tried both pin 9 and 10 but both not working. all my components are new


Welcome to the forum

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the < CODE/ > icon above the compose window) to make it easier to read and copy for examination

Posting your code using code tags prevents parts of it being interpreted as HTML coding and makes it easier to copy for examination

In my experience the easiest way to tidy up the code and add the code tags is as follows

Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.

Fix the soldering.

You have multiple shorts and opens.

Your code writes the same value to the servo every second so it will never move.

Change one of the values written to 90 and report what happens when you upload the code

NOTE : your soldered joints look terrible and may be causing problems

1 Like

Thank you. if I am not skilled at soldering do I have another option to use the board without soldering the pins?

The soldering must be redone. Adafruit and Sparkfun have good guides, and even young children can learn.

Many medium and large cities have Maker groups, who are happy to help newcomers with technical tasks. Look on line to see if there is one near you, or for similar opportunities.

The pins must be soldered and it must be done properly. Get someone who knows how to do it to show you how or buy a board with the pins already soldered

I realize you are new at this, however you need to understand in this type of project “almost or good enough” won’t work. These are simple devices that need EVERYTHING to be correct. Having two pins shorted is not going to work.

And, Its not clear what pins you are getting power from but it’s not wise to use the board pins. You may get away with it for bench testing but not when you start to load the actuator.

  1. Fix the soldering. Using the board with shorts may damage it;

  2. Fix the sketch. If you tell the servo to go to the same place twice, it will not move;

  3. The Nano 33 BLE is a 3.3V device. Because of that, the 5V pin on the board does not come connected as default (take a good look in “5V pin” topic on This page).

  1. I don’t know where you got your board from, but Arduino site offers the option to buy the boards already with the headings.
1 Like