How to Program Arduino Nano UNO and Mega 2560
![Arduino Mega UNO NANO MINI](https://www.snapwhole.com/wp-content/uploads/2022/09/All-Arduino.jpg)
Setting up to Program Arduino Nano Mega2560 UNO
Drivers and software changes required to Program
Arduino Platform for your projects
Helpful Links and Settings to setup the Auduino Platform
CH340/g Software Drivers
– Required for UNO, Mega2560, and NANO with CH340 or CH340G
When you connect a Chinese Arduino UNO, Mega3560 or Nano that uses a CH340 or CH340G USB to Serial chip, a driver will be installed, but you will not be able to access the CH340 device, the default driver does not work
Download and Install this driver on your Windows 10 System
Your Windows 10 System will say it has the correct drivers, BUT IT DOES NOT!,
After you install this driver you will be able to communicate with the Mega2560s and Nanos from China that use the CH340 Chip
Software is provided as a convenience, use at your own risk!
Driver will install with a default Serial Speed of 9600,8,n,1
Arduino IDE will over ride this speed during uploads
PL2303 Prolific Driver for Windows 8-10
Arduino Desktop IDE
Install this IDE on your Windows Machine, This is the Core of the Arduino Development System and Your Projects
Arduino Libraries
You will need a lot of libraries for your projects, these are mostly libraries that are required to use different shields and sensors
Most libraries come as ZIP files, To install the driver into the Arduino Library, copy the contents of the ZIP to your Arduino Library folder
The default location for this library on a Windows device is – My Documents\ardurino\library
Links to a few are provided for your convenience
Arduino Nano Upload Timeout Errors
Are you receiving an upload timeout error when uploading the an Arduiono Nano?
Example Error
Sketch uses 6440 bytes (19%) of program storage space. Maximum is 32256 bytes. Global variables use 494 bytes (24%) of dynamic memory, leaving 1554 bytes for local variables. Maximum is 2048 bytes. \Documents\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude - avrdude: Version 6.3-20190619 Copyright (c) 2000-2005 Brian Dean, //www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch Using Port : COM9 Using Programmer : arduino Overriding Baud Rate : 115200 avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00 avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00 avrdude done. Thank you. An error occurred while uploading the sketch This report would have more information with "Show verbose output during compilation"
This error is related to Nanos that use the older boot loader, and I have this issue on all the Nanos I have purchased from China
But it is easy to fix!
In Arduino IDE, Select
Tools -> Board -> Arduino Nano
This will select Arduino Nano as the board to program
Then Select
Tools -> Processor -> ATMega328P – (Old BootLoader)
![](https://www.snapwhole.com/wp-content/uploads/2021/05/ardoldbootloader.jpg)
You will now be able to program the Arduino Nano without receiving this error!
How to Program Arduino Nano UNO and Mega 2560