When I try to upload the example servo knob code this error message pops up
Arduino: 1.8.12 (Windows 10), Board: "Arduino Uno"
Sketch uses 444 bytes (1%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
An error occurred while uploading the sketch
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
pls help and note I'm new to this so.... I might be asking a dumb question
Sketch uses 2028 bytes (6%) of program storage space. Maximum is 32256 bytes.
Global variables use 50 bytes (2%) of dynamic memory, leaving 1998 bytes for local variables. Maximum is 2048 bytes.
C:\Users\ISINDU WICKRAMASEKAR\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\ISINDU WICKRAMASEKAR\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\ISINDU~1\AppData\Local\Temp\arduino_build_340218/sketch_mar30a.ino.hex:i
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\ISINDU WICKRAMASEKAR\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 115200
It came upto this and it was still uploading but it won't go any further.
#include <Servo.h>
Servo servo;
void setup() {
servo.attach(8);
servo.write(0);
delay(2000);
}
void loop(){
servo.write(90);
servo.write(0);
delay(100);
}
Arduino: 1.8.12 (Windows 10), Board: "Arduino Uno"
Sketch uses 2028 bytes (6%) of program storage space. Maximum is 32256 bytes.
Global variables use 50 bytes (2%) of dynamic memory, leaving 1998 bytes for local variables. Maximum is 2048 bytes.
C:\Users\ISINDU WICKRAMASEKAR\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\ISINDU WICKRAMASEKAR\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\ISINDU~1\AppData\Local\Temp\arduino_build_340218/sketch_mar30a.ino.hex:i
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\ISINDU WICKRAMASEKAR\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 115200
An error occurred while uploading the sketch
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
This is the code I used. and the updated error message
If you're using a clone, chances are it uses the CH340 device driver. Do you know if it is installed on your system? If not, search "CH340 download" and download/install the driver. Also, some clones are using an older bootloader (I think the menu sequence is Tools --> Bootloader), so you might trying using the older bootloader. You will need to restart the system for the driver to take effect.
I installed that a while ago
try a differenct USB port.