Upload Blink example? No problem. But does not work. On another Laptop it works

Hello dear readers. I am a new member of the Arduino world and was trying to start my journey through all the tutorials. But it seems my computer really hates me. Its my verry first post in this forum so forgive me if i made some beginners mistakes.
Here are the facts and information i collected so far:

Arduino UNO R3 Kit Link: Starter Kit für Arduino UNO R3 mit über 200 Teilen
Installed latest Arduino IDE
Board auto-installed Driver on first connection
Using Windows 8.1 64bit

First i had a avrdude ser_open() can't set com-state for com3 error and went online troubleshooting. By trying other USB ports i realized that i had two USB3 ports on my computers rear side so i plugged in there. Great! No errors anymore. Done uploading.

But the code dont runs correct. I tried the basic blink example and i have no problems/errors uploading. But instead of blinking the led is just permanent on.
Installed Arduino IDE on my GF's Laptop and the code works. Led is blinking and everytime i change the delay-time it blinks faster/slower as intended. It all worked without a problem. Installed IDE, plugged board, uploaded blink, success..
Back on my computer, the board blinks bc it still has the code uploaded from my GF's Laptop. Then i upload the same blink code again but now the LED is just permanently ON.

Using board 'uno' from platform in folder: C:\Users\David\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Using core 'arduino' from platform in folder: C:\Users\David\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.6
Verwendete Bibliotheken erkennen...
"C:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7\\sketch\\Blink.ino.cpp" -o nul
Funktionsprototypen werden generiert...
"C:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7\\sketch\\Blink.ino.cpp" -o "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\builtin\\tools\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Sketch wird kompiliert...
"C:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10607 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR "-IC:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\cores\\arduino" "-IC:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.6\\variants\\standard" "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7\\sketch\\Blink.ino.cpp" -o "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7\\sketch\\Blink.ino.cpp.o"
Bibliotheken werden kompiliert...
Kern wird kompiliert...
Using precompiled core: C:\Users\David\AppData\Local\Temp\arduino-core-cache\core_arduino_avr_uno_ef9d0690eb7676428f5dbc9d61b13d0a.a
Linking everything together...
"C:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/Blink.ino.elf" "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7\\sketch\\Blink.ino.cpp.o" "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/..\\arduino-core-cache\\core_arduino_avr_uno_ef9d0690eb7676428f5dbc9d61b13d0a.a" "-LC:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7" -lm
"C:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/Blink.ino.elf" "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/Blink.ino.eep"
"C:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-objcopy" -O ihex -R .eeprom "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/Blink.ino.elf" "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/Blink.ino.hex"

"C:\\Users\\David\\AppData\\Local\\Arduino15\\packages\\arduino\\tools\\avr-gcc\\7.3.0-atmel3.6.1-arduino7/bin/avr-size" -A "C:\\Users\\David\\AppData\\Local\\Temp\\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/Blink.ino.elf"
Der Sketch verwendet 924 Bytes (2%) des Programmspeicherplatzes. Das Maximum sind 32256 Bytes.
Globale Variablen verwenden 9 Bytes (0%) des dynamischen Speichers, 2039 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 Bytes.
"C:\Users\David\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude" "-CC:\Users\David\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" -v -V -patmega328p -carduino "-PCOM3" -b115200 -D "-Uflash:w:C:\Users\David\AppData\Local\Temp\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/Blink.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\David\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"

         Using Port                    : COM3
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 4.4
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "C:\Users\David\AppData\Local\Temp\arduino-sketch-BCECF3454E4E2439BB6324E8708940F7/Blink.ino.hex"
avrdude: writing flash (924 bytes):

Writing | ################################################## | 100% 0.28s

avrdude: 924 bytes of flash written

avrdude done.  Thank you.

Then i tried something. I took the part of the code responsible for turning the led on out of the picture (Just //deactivated the line of code):

 void loop() {                 
  //digitalWrite(LED_BUILTIN, HIGH);  
  //delay(1000);
  digitalWrite(LED_BUILTIN, LOW);  
  delay(1000);
}

And the LED was off. So i did this, to check if only the first line of the loop code is executed:

void loop() {
  digitalWrite(LED_BUILTIN, LOW);  
  delay(1000);                     
  digitalWrite(LED_BUILTIN, HIGH);  
  delay(1000);
}

But no, the LED is permanent ON again.

I did the same with a external LED and it acts the same as the builtin LED.

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

void loop() {
  digitalWrite(7,HIGH);
  delay(1000);
  digitalWrite(7,LOW);
  delay(1000);
  }

So the pinMode (7,OUTPUT); / pinMode(LED_BUILTIN, OUTPUT); setup code works but the loop code dont..

I was scared that i messed up the bootloader so went back to my GF's Laptop and uploaded the Blink code again. Works fine so i am happy that the bootloader seems to be okay. The code for external LED works too.

What i did so far troubleshooting:

-Unplugged the board and used the Netadapter as powersource. Same behavior.
-Used different USB cable, same result.
-disabled Avira Antivirus and the firewall during IDE installation and uploading code.
-Reinstalled the IDE over 3 times with no different outcome
-Deleted the driver in my device manager and reinstalled the driver. But it is the same driver that
was used on GF's Laptop so i cant see why it should not work on my PC.
-LED's are flashing fast during uploading as normal
-Used reset button on board during all recommended stages to see if it helps. (Did not)
-Noticed that my Arduino IDE in fact can see the Arduino board when plugged in, but there are no
other ports listed. On GF's Laptop i can see at least two other ports that are not the board.
On my PC the IDE has no port listed until i plug in my board and it can see the Arduino UNO board
right away. Maybe unimportant detail, but maybe not? In all set up tutorials and videos i watched
the port list of the IDE always showed multiple unused ports. The device manager only shows my
board when plugged in, no other devices so i think it is what it is.
-Went through over 100 Ask/Answers threads to find a solution but either the problem was not matching my "symptoms" or the solution didn't work.

So here i am, 5 days after getting my Arduino starter Kid and about to just buy a new Laptop because of frustration..

If you have any other ideas, suggestions or you need additional information please let me know. Thank you so much for reading through!

!!!
While writing this, i forgot about my plugged in Arduino board and .... At some point the Led started blinking in 1 second increments as intended. I changed now the delay times to half a second, uploaded and the LED is permanent ON again like after every upload. Now i will wait with the board connected to check if the code starts working again later..

Update: One hour passed and the inbuilt LED is still constantly on. Idk if or how i triggered it the last time to finally work all i did was open the minimized IDE Window to copy the code. I tried to trigger it again by close/open the IDE again, do random stuff & reset the board. no success.
!!!

how was it wired?

TL;DR
provide a short text version

Is it the same windows 10 version on both laptops?

Like in this Video. On the Laptop it worked fine just not on my PC.

I have to check that but my PC is about 5 Years old and the Laptop is about 2 Years old. Could this lead to any Problems?

is this a real arduino or a clone?

I am sorry sir, but i made a lot of tests and wanted you to know what i did so far. The title is the short version. I can upload the blink example without any errors but the LED is just on. (Not blinking)
On another Laptop it works without problems.

It seems to be a original because it works with the same driver on the laptop.

are you sure the upload is successful on the laptop where you see issues?

show us a picture of your circuit

Its exactly the same like in the video i posted. On the Laptop it works fine.
On my PC it does not. And the upload seems to be okay, the avrdude output is in my post and the popup "Done uploading" appears. But however, not even the blink example with the on board LED works.

same USB cable?

Yes same USB cable

can you post a picture of your board just to know if it has a CH340 chip on it?

This is my chip. Was part of the Arduino starter kit linked in my post. ATMEGA 328P



Add a Serial.println to see if it's looping

void setup() {
  pinMode (7,OUTPUT);
  Serial.begin(9600);
}

void loop() {
  digitalWrite(7,HIGH);
  Serial.println(F("High"));
  delay(1000);
  digitalWrite(7,LOW);
Serial.println(F("Low"));
  delay(1000);
  }

OK it's a clone but with the same ATmega16U2 so no other driver needed

I cant make more answers because i signed up today. First day has limits. I changed the picture, yes the rate is 9600.

@J-M-L I cant make new responds for 23 hours!! O.O
To your last post with my chip: Good to know. On my GF's Laptop i was just plug&play it without problems. And it is the same driver used on her Laptop and my PC

I guess we continue troubleshooting tomorrow. Then i can make new answers again. But thank you everyone for trying to figure this out with me.

@apf1979 Yes its the same settings


2023-02-21 17_35_12-Eigenschaften von Arduino Uno (COM3)

First suspect for garbage would be baud rate setting of the serial monitor; is it set to 9600?

But it does not explain the blink problem.

it seems so in the picture

something might be wrong with the USB port...