Hey there!
I've bought an arduino nano and now wanted to run my first programm on it. I've already tried some things with an uno, so I'm not a completly beginner.
Now my problem:
I could compile my sketch but when I want to upload it, there comes this alert:
avrdude: ser_open(): can't open device "\.\COM1": Das System kann die angegebene Datei nicht finden.
(means the system can't find my sketch)
I also CAN'T select a port under tools. maybe that's the problem?
COM1 would indicate Windows? If so, check what Windows device manager thinks about your board. Clones often use a different TTL-to-USB chip, most common is the CH340 (although there are others); check what's written on the chip at the underside of the board. You will need to download and install the driver for it; for the CH340, http://www.wch.cn/downloads/CH341SER_ZIP.html, don't worry that it's a Chinese website.
If not Windows, check what your operating system thinks about it.
In this case, you can be sure that's not the correct driver. Although it is the most common for the 3rd party derivative boards, none of the official Arduino boards you would buy from store.arduino.cc use the CH340 USB chip.
The official Nano uses the FTDI FT232R USB chip instead. There are drivers for that in the drivers subfolder of the Arduino IDE, or you can get it from the FTDI website.
But the first thing to do is to see if a device shows up in Windows Device Manager after you plug in your Nano, as sterretje mentioned. If there is a device, then the fix is likely to install the driver. If there is no device, then we can look for another solution.
There was a device in the device manager called FT232R USB UART.
Then the driver was installed. Now I can't see the device anymore. I still cant upload the sketch onto the board, but this time it's different: At least I can choose the port COM 3.
My error now is:
avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 57600
Beim Hochladen des Sketches ist ein Fehler aufgetreten
I order to gather more information that might help us to troubleshoot your problem, I'm going to ask you to post the full output from the upload when in verbose mode.
Please do this:
Select File > Preferences from the Arduino IDE's menus.
Uncheck the checkbox next to Show verbose output during: [ ] compilation
Check the checkbox next to Show verbose output during: [ ] upload.
Click the OK button.
Attempt an upload, as you did before.
After the upload fails, you'll see a button on the right side of the orange bar Copy error messages. Click that button. This copies the full output to the clipboard.
Open a forum reply here by clicking the Reply button.
Click the </> icon on the post composer toolbar. This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press Ctrl+V. This will paste the error output from the upload into the code block.
Move the cursor outside of the code tags before you add any additional text to your reply.
I did exactly what you told me to do.
After attempting an upload, there's this green bar, where the "copy error message" button would pop up. And on the left side there's "Hochladen..." means "Uploading...". So it just won't finish uploading.
Everything I can read now is:
Archiving built core (caching) in: C:\Users\JGOEBHA\AppData\Local\Temp\arduino_cache_951146\core\core_arduino_avr_nano_cpu_atmega328_0c812875ac70eb4a9b385d8fb077f54c.a
Der Sketch verwendet 2096 Bytes (6%) des Programmspeicherplatzes. Das Maximum sind 30720 Bytes.
Globale Variablen verwenden 198 Bytes (9%) des dynamischen Speichers, 1850 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 Bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b57600 -D -Uflash:w:C:\Users\JGOEBHA\AppData\Local\Temp\arduino_build_591269/sketch_may04c.ino.hex:i
avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 57600
Arduino: 1.8.5 (Windows 10), Board: "Arduino Nano, ATmega328P"
Archiving built core (caching) in: C:\Users\JGOEBHA\AppData\Local\Temp\arduino_cache_951146\core\core_arduino_avr_nano_cpu_atmega328_0c812875ac70eb4a9b385d8fb077f54c.a
Der Sketch verwendet 2096 Bytes (6%) des Programmspeicherplatzes. Das Maximum sind 30720 Bytes.
Globale Variablen verwenden 198 Bytes (9%) des dynamischen Speichers, 1850 Bytes für lokale Variablen verbleiben. Das Maximum sind 2048 Bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b57600 -D -Uflash:w:C:\Users\JGOEBHA\AppData\Local\Temp\arduino_build_591269/sketch_may04c.ino.hex:i
avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 57600
Beim Hochladen des Sketches ist ein Fehler aufgetreten
Dieser Bericht wäre detaillierter, wenn die Option
"Ausführliche Ausgabe während der Kompilierung"
in Datei -> Voreinstellungen aktiviert wäre.