Arduino Forum

Using Arduino => Installation & Troubleshooting => Topic started by: ChickenLittle on Nov 26, 2018, 04:10 pm

Title: Installing drivers on arduino nano
Post by: ChickenLittle on Nov 26, 2018, 04:10 pm
I made a really cool invention with the Arduino Uno but I want to make it smaller.  So I got a Arduino Nano and a really small breadboard and made the exact same thing with the Arduino Nano.  However, when I upload the code I wrote to the Nano the Arduino software said there was a problem uploading the code to the board and it gave me the name of a website.  The website basically said to install drivers.  Then I found a website that told me how to install drivers, https://www.arduino.cc/en/Guide/DriverInstallation.  I followed the instructions but when I get to the device managers listing of electronics I do not see Arduino Nano.

Please tell me how I can install drivers on the Arduino Nano.


Thanks so much.


 
Title: Re: Installing drivers on arduino nano
Post by: ballscrewbob on Nov 26, 2018, 04:32 pm
What software told you to install driver ?
Where did it say to get them ?

Some Nano's use a CH340 driver or CP2102 which are NOT included in the IDE as they are for clones / copies of the Arduino.

Title: Re: Installing drivers on arduino nano
Post by: sterretje on Nov 26, 2018, 06:46 pm
Just a little correction

You do not install drivers on a Nano; you install drivers on a PC to support a Nano.
Title: Re: Installing drivers on arduino nano
Post by: ballscrewbob on Nov 26, 2018, 06:49 pm
Quote
Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.
Stuck in a time loop I see ;)
Title: Re: Installing drivers on arduino nano
Post by: pert on Nov 27, 2018, 09:22 am
Please do this:
Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Nov 28, 2018, 12:07 am
This is the error message I get after I upload the code.

Arduino: 1.8.3 (Windows 10), Board: "Arduino Nano, ATmega328"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\archi\Documents\Arduino\libraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10803 -build-path C:\Users\archi\AppData\Local\Temp\arduino_build_995227 -warnings=none -build-cache C:\Users\archi\AppData\Local\Temp\arduino_cache_858877 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\archi\Documents\Arduino\My_Contest_Project_1\My_Contest_Project_1.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\archi\Documents\Arduino\libraries -fqbn=arduino:avr:nano:cpu=atmega328 -ide-version=10803 -build-path C:\Users\archi\AppData\Local\Temp\arduino_build_995227 -warnings=none -build-cache C:\Users\archi\AppData\Local\Temp\arduino_cache_858877 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\archi\Documents\Arduino\My_Contest_Project_1\My_Contest_Project_1.ino
Using board 'nano' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "C:\Users\archi\AppData\Local\Temp\arduino_build_995227\sketch\My_Contest_Project_1.ino.cpp" -o "nul"
Generating function prototypes...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics  -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "C:\Users\archi\AppData\Local\Temp\arduino_build_995227\sketch\My_Contest_Project_1.ino.cpp" -o "C:\Users\archi\AppData\Local\Temp\arduino_build_995227\preproc\ctags_target_for_gcc_minus_e.cpp"
"C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\Users\archi\AppData\Local\Temp\arduino_build_995227\preproc\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR   "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" "C:\Users\archi\AppData\Local\Temp\arduino_build_995227\sketch\My_Contest_Project_1.ino.cpp" -o "C:\Users\archi\AppData\Local\Temp\arduino_build_995227\sketch\My_Contest_Project_1.ino.cpp.o"
Compiling libraries...
Compiling core...
Using precompiled core
Linking everything together...
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc" -w -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p  -o "C:\Users\archi\AppData\Local\Temp\arduino_build_995227/My_Contest_Project_1.ino.elf" "C:\Users\archi\AppData\Local\Temp\arduino_build_995227\sketch\My_Contest_Project_1.ino.cpp.o" "C:\Users\archi\AppData\Local\Temp\arduino_build_995227/..\arduino_cache_858877\core\core_arduino_avr_nano_cpu_atmega328_0c812875ac70eb4a9b385d8fb077f54c.a" "-LC:\Users\archi\AppData\Local\Temp\arduino_build_995227" -lm
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0  "C:\Users\archi\AppData\Local\Temp\arduino_build_995227/My_Contest_Project_1.ino.elf" "C:\Users\archi\AppData\Local\Temp\arduino_build_995227/My_Contest_Project_1.ino.eep"
"C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy" -O ihex -R .eeprom  "C:\Users\archi\AppData\Local\Temp\arduino_build_995227/My_Contest_Project_1.ino.elf" "C:\Users\archi\AppData\Local\Temp\arduino_build_995227/My_Contest_Project_1.ino.hex"
Sketch uses 4852 bytes (15%) of program storage space. Maximum is 30720 bytes.
Global variables use 261 bytes (12%) of dynamic memory, leaving 1787 bytes for local variables. Maximum is 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 -PCOM4 -b57600 -D -Uflash:w:C:\Users\archi\AppData\Local\Temp\arduino_build_995227/My_Contest_Project_1.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                    : COM4
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: ser_open(): can't open device "\\.\COM4": The system cannot find the file specified.



avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.

Thanks so much.
Title: Re: Installing drivers on arduino nano
Post by: ballscrewbob on Nov 28, 2018, 12:10 am
CODE TAGS ( </> ) ?

Also please supply the output if you use the OLD BOOTLOADER option.

Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Nov 28, 2018, 12:27 am
When I use code tags I exceed the forums limit of 9000 characters.  But when you go into device manager do you install the drivers for: USB Serial port (com6) to have it upload to the board correctly.


Thanks so much.
Title: Re: Installing drivers on arduino nano
Post by: pert on Nov 28, 2018, 12:29 am
If it's on COM6 then you need to select Tools > Port > COM6 in the Arduino IDE.
Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Nov 28, 2018, 12:37 am
The port is com 6 on the Arduino IDE
Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Nov 28, 2018, 01:48 am
I think I install drivers on the one that says USB serial port com 6 because when I unplug the USB port connected to my project the one that says USB serial port com 6 disappears.  Am I right do I install drivers on the one that says USB serial port com 6.


Thanks so much.
Title: Re: Installing drivers on arduino nano
Post by: ballscrewbob on Nov 28, 2018, 02:57 am
The drivers do not care what the COM port number is.
Any items that use that same driver can be on a different port if they wish.
The driver is for the HARDWARE not the port number.

Quick example is your computer mouse.
You probably only installed one driver for it but you can plug it into other usb ports and it is still the same mouse...It just used the same driver on another usb port..

Title: Re: Installing drivers on arduino nano
Post by: pert on Nov 28, 2018, 04:54 am
If you have really do have Tools > Port > COM6 selected, then there's some glitch in the OS or the Arduino IDE. I remember a couple reports of this, but not what the resolution was. I recommend searching the forum and reading through the results until you find one:
https://www.google.com/search?q=avrdude+"can't+open+device"+site:http://forum.arduino.cc&domains=http://forum.arduino.cc&tbs=qdr:y,sbd:1&source=lnt&sa=X&biw=2144&bih=1206 (https://www.google.com/search?q=avrdude+"can't+open+device"+site:http://forum.arduino.cc&domains=http://forum.arduino.cc&tbs=qdr:y,sbd:1&source=lnt&sa=X&biw=2144&bih=1206)
Title: Re: Installing drivers on arduino nano
Post by: sterretje on Nov 28, 2018, 04:57 am
If the arduino is recognised as a COM port, there is no need to install the driver.

Did you try the 'old bootloader' option as suggested in reply #6 ?

By the way, the output that you posted refers to com 4.

PS
You also have 'verbose output during compilation' enabled. If you disable that, the output that you posted will be significantly shorter.

Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Nov 28, 2018, 05:26 pm
When I tell it to update the driver for com 6 it says the best driver for the serial port com 6 is already on my computer.  What should the driver I install be.


Thanks so much.
Title: Re: Installing drivers on arduino nano
Post by: pert on Nov 28, 2018, 05:57 pm
Forget about the driver. The problem has nothing to do with a driver.
Title: Re: Installing drivers on arduino nano
Post by: sterretje on Nov 28, 2018, 07:09 pm
Did you try the 'old bootloader' option as suggested in reply #6 ?
Just realised that that will not help if the port does not exist.
Title: Re: Installing drivers on arduino nano
Post by: ArduinoTechs on Nov 29, 2018, 02:15 pm
use the old bootloader option from the processor dropdown list and update the driver using device manager.
if error still persists switch to another pc and install the drivers there.
or just use Bluino or Arduino droid on android to upload the code once u compile the code(i recommend Bluino Loader).
or something might be wrong with ur Nano
 just search google for "CH341g driver download" .
if problem still persists msg me personally
Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Jan 03, 2019, 08:17 pm
Please can someone tell me how I can upload my code to my Arduino Nano I have been trying for weeks and I cannot figure it out please tell me I want to enter it in a competition and the competition has a deadline so please tell me how I can upload the code to the Arduino Nano.

Thanks so much.
Title: Re: Installing drivers on arduino nano
Post by: ballscrewbob on Jan 03, 2019, 08:21 pm
@ChickenLittle

Would be useful to tell us more about your particular issue ?
What have you tried as that saves us guessing or going over what you might have already done ?
Did you read this whole post as there were some great tips in it ?


Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Jan 04, 2019, 11:58 pm
Someone please write back I do not know what to do.
Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Jan 05, 2019, 01:31 am
Yes @ballscrewbob I read every comment in this post and did what they said to do but it still does not work and I tried to install drivers for the nano but it says that the most recent version of drivers is already on my computer.  So I do not know how to get the code to upload to my board.  Please tell me how I can upload the code to the nano.

Thanks so much.
Title: Re: Installing drivers on arduino nano
Post by: sterretje on Jan 05, 2019, 02:35 am
Is the error stay the same during al your attempts or did it change?

Code: [Select]
avrdude: ser_open(): can't open device "\\.\COM4": The system cannot find the file specified.


If not, post the new error messge that you get.

What does device manager say under Port (COM and LPT) ? A clone on my system says USB-Serial CH340 (COM18); the com port on your system will probably be different.
Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Jan 07, 2019, 06:33 pm
Yes the error message is the same and in the device manager it says mine says USB-Serial CH340 (COM5) which is the port it is currently plugged in to if I plug it into com 4 it says USB-Serial CH340 (COM4).


Thanks so much.
Title: Re: Installing drivers on arduino nano
Post by: ballscrewbob on Jan 07, 2019, 11:34 pm
It is NOT plugged into a COM PORT it emulates one.
There is a major difference...

Real Arduinos use the VID&PID etc so the computer knows what it should represent as a COM port.

The CH340 based boards are different in that respect and can change the COM number depending on the USB port they are plugged into.

Title: Re: Installing drivers on arduino nano
Post by: sterretje on Jan 08, 2019, 05:08 am
In the IDE you need to select the port that windows shows in device manager after you connect the board. Did you?

So if device manager states COM4, select COM4 in the IDE.

After a failed upload, are the available com ports in the IDE and device manager still the same? Or did they change?

Although antivirus software usually will not result in "not found", it might be worth a try to temporarily disable your antivirus software and see if that solves the problem.
Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Jan 08, 2019, 09:59 pm
@ArduinoTechs I installed ch341g driver but now what do I do how do I have it help me upload the code.

Thanks so much.
Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Jan 08, 2019, 10:13 pm
@ballscrewbob are you saying the problem is the board because if you are I do not think it is the board because I bought the board from the official Arduino website and I have another Nano from Newark element 14 and when I upload the code to that board I get the same area so I do not think it is the board.  However, I am not sure if you are saying it is the board.  Could you please clarify.


Thanks so much.
Title: Re: Installing drivers on arduino nano
Post by: ballscrewbob on Jan 08, 2019, 11:11 pm
I had to read the whole post as it is getting a little long.

OK so you have an OFFICIAL NANO.

In that case when you installed the IDE the correct drivers should have been installed unless you had any errors or warnings during the IDE install that we do not know about ?

That you can see the correct port both in device manager and the IDE would indicate no issues so not sure anymore why you say you need a new driver.

It looks like driver wise and port wise you are good to start uploading.

If what I said above is all true then its time to move onto uploading a sketch.

Title: Re: Installing drivers on arduino nano
Post by: sterretje on Jan 09, 2019, 04:45 am
I had that same stupid problem yesterday when using a programmer on my Win7 system; AVRdude could not find the port although it was visible in both device manager and IDE and selected in the IDE.

A reboot solved the issue for me; must be a Windows thing ;)
Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Jan 09, 2019, 06:54 pm
So are you saying to reboot my computer sterretje.

Thanks so much.
Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Jan 09, 2019, 07:38 pm
I restarted and updated my computer the Arduino IDE also said updates were available for the boards so I updated that to and I still get the same error message when I upload my code.

Thanks so much.
Title: Re: Installing drivers on arduino nano
Post by: ballscrewbob on Jan 10, 2019, 03:13 pm
Do you get the same error if you just have the NANO connected (removed from your other PCB) with NOTHING else connected to the board using either the OLD or the new bootloader ?

Beginning to suspect it may be something you have or had connected to the board.
A schematic might also be useful for your project at this time too.





Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Jan 10, 2019, 11:00 pm
No I still get the same error when I upload the code to the Nano when it is not connected to anything.  Also I never drew a schematic for my project.


Thanks so much.
Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Jan 12, 2019, 12:15 am
When I change the Processor to ATMege328P(Old Bootloader) instead of ATMega328P I get the error message "port busy"
Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Jan 17, 2019, 09:39 pm
Someone please tell me how to get the code on to my board should I try using a different computer?

Thanks.
Title: Re: Installing drivers on arduino nano
Post by: sterretje on Jan 18, 2019, 04:15 pm
When I change the Processor to ATMege328P(Old Bootloader) instead of ATMega328P I get the error message "port busy"
It might still have been busy with a previous attempt to upload.

Someone please tell me how to get the code on to my board should I try using a different computer?
Of course you can and should try. Do you still get the "comX not found" error?

And buy another Nano; nobody knows what you have done with this one except you. Try that one without connecting it to your circuit.

And provide a schematic; I know you did not make one but make one now so we can have an idea what possibly can be / can have gone wrong.
Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Jan 18, 2019, 10:20 pm
Okay I will buy another Arduino NANO.
Title: Re: Installing drivers on arduino nano
Post by: ChickenLittle on Jan 23, 2019, 01:47 am
Actually never mind I fixed the problem without getting another board.

So thanks to everyone for your help.
Title: Re: Installing drivers on arduino nano
Post by: pert on Jan 23, 2019, 02:45 am
ChickenLittle please take a minute to describe your solution. That will help anyone else who has the same problem in the future and finds this thread. The information will also help us to do a better job providing support.
Title: Re: Installing drivers on arduino nano
Post by: muhammadroman on May 06, 2019, 05:51 pm
how to instal driver
Title: Re: Installing drivers on arduino nano
Post by: ballscrewbob on May 06, 2019, 06:55 pm
@muhammadroman

Could you read the posts at the top of the forum sections please.
So little information in your post does not always get you the best answers.

Bob.