Why isn't the uploaded code working on arduino uno smd r3

I am a complete newbie in the Arduino world. i bought an Arduino UNO r3 smd edition yesterday, in my first trial I uploaded a code for using servo and it worked, but after that no other code is working, not even the same code that worked yesterday. Blink test doesn't work either, Built-in led lights up but doesn't blink. I have 5-10 different codes, they get verified successfully and even uploads successfully, but doesn't execute.
Here is the most recent one I tried using:

#include <Servo.h>
int servoPin=11;
Servo servo1;

void setup()
{
    servo1.attach(servoPin);
}
void loop()
{
    servo1.write(10);
    delay(3000);
    servo1.write(180);
    delay(3000);
}

I verified it and uploaded it without any errors, but it isn't working after uploading.

Can you post some support in favor of your claim that the sketch has been uploaded?

how do i do that? as i mention on my post i'm new to the Arduino world, i recorded a 60 min video of the process. How do i show it?

After uploading, you will see "Done uploading" message somewhere in the middle of the IDE (Fig-1). You can screen copy the IDE, paste it in the Paint, crop it, save as png/jpeg file and then upload it in the reply post.


Figure-1:

1 Like

Hello zusi

Welcome to the worldbest Arduino forum ever.

The sketch is ok.

Check wiring and post a picture of the hardware setup.

Have a nice day and enjoy coding in C++.

1 Like

Apart from the solder joints, it looks good. I hope there were no short circuits. :hushed:
Do a cross check and load the BlinkWithOutDelay example from the IDE onto the pure Arduino.

Thankfully there was no short circuit and I have tried the without blink example after watching a YT tutorial, but that doesn't work either.
(I am not sure if this could be the reason, but the board I am using is a off-brand board.)

There may not have been a short circuit when you checked but with solder joints like this
image
then there could easily have been in the past

1 Like

If a short circuit did happen, would it damage the board or the servo?

More likely the board

1 Like

Can you help me out with something, see...i bough the board 1day ago and hooked up my servo in a similar way, and it worked but it took a bit of time to start executing the code, than the next day when i hooked it up and uploaded a new code it didn't work. I watched a few tutorial and I with dumb brain pressed the reset button multiple time while it was connected with usb to my laptop. i tried another method which was connecting the rx and gnd port and then connecting it with usb to my laptop. Here's the link of the method i used.

https://www.google.com/search?q=how+to+erase+arduino+uno+memory&oq=how+do+i+erase+arduino+uno+memo&gs_lcrp=EgZjaHJvbWUqCAgCEAAYFhgeMgYIABBFGDkyBggBEEUYQDIICAIQABgWGB4yCAgDEAAYFhgeMgoIBBAAGIYDGIoFMgoIBRAAGIYDGIoF0gEJMzkwNDdqMGo3qAIAsAIA&sourceid=chrome&ie=UTF-8

Something had obviously changed

That would do no harm unless something was already wrong

There really is no need to erase the memory of an Arduino

Let's go back to basics. Try this. Unplug everything except the USB connection to the Uno. Use File/New in the IDE and upload the empty sketch. What happens, what messages do you see in the IDE (post them here), what LEDs, if any, are turned on ?

1 Like


every time i upload a new sketch the on light and L light lights up, and that's it.

Now try the same thing with the Blink sketch and post the results

1 Like

Disconnect everything except USB cable from Arduino UNO. Install IDE 1.8.19 and upload the followng sketch to blink the onboard LED (L). Report the result.

void setup()
{
     pinMode(13, OUTPUT);
}

void loop()
{
     digitalWrite(13, HIGH);
     delay(1000);
     digitalWrite(13, LOW);
     delay(1000);
}
2 Likes


this mssg didn't show up in the 2.something ide

The sketch is well compiled, uploaded and run in my 28-pin DIL type MCU mounted Arduino UNO.

The compilation error message reported in post #20 is slowly folding the clue why your UNO board is not working.

If possible, please get an Arduino UNO with 28-pin DIL type MCU (Fig-1) and then it can be said that your UNO is bad. I have encountered many boards with SMD type MCU, which did not work.
image
Figure-1:

1 Like