As seen from the above question, I need to know how to use an Arduino Nano to burn the bootloader onto an Atmega chip. The Arduino website only shows how to do it from an Arduino Uno chip configuration.
Does anyone know what I can do?
-
\$\begingroup\$ Could you add the link to the Arduino bootloader tutorial? \$\endgroup\$Nick Williams– Nick Williams2013年07月09日 15:08:06 +00:00Commented Jul 9, 2013 at 15:08
-
1\$\begingroup\$ And this is why I hate Arduino - slight differences in configuration leave users dumbfounded without step by step instructions. \$\endgroup\$Kurt E. Clothier– Kurt E. Clothier2013年07月09日 17:33:47 +00:00Commented Jul 9, 2013 at 17:33
-
\$\begingroup\$ @KurtE.Clothier - That's because the great majority of the Arduino docs say "do this", not "this is why you do it this way". You wind up with lots of procedural stuff with no explanation as to the why, which is the part that's essential to translating from one piece of hardware to another. \$\endgroup\$Connor Wolf– Connor Wolf2013年07月09日 21:31:30 +00:00Commented Jul 9, 2013 at 21:31
-
3\$\begingroup\$ The only reason to use an Arduino to program another Arduino is "it's 10:30pm Saturday night and my programmer broke." You need a real ISP programmer. Buy a 30ドル Atmel programmer, or a 20ドル pololu/sparkfun/adafruit programmer, or at least a 10ドル eBay programmer. \$\endgroup\$Jon Watte– Jon Watte2013年07月09日 21:52:08 +00:00Commented Jul 9, 2013 at 21:52
2 Answers 2
Here is one of the versions of the tutorial: http://arduino.cc/en/Tutorial/ArduinoToBreadboard
This assumes the ArduinoISP sketch works on a nano. It should if its the nano also has an ATMega328 processor.
Connect the same pins by function as specified for the UNO. D10 to pin 1, D11 to pin 17, D12 to pin 18, and D13 to pin 19. These are the PDIP 28 package pin numbers. You will have to do something to the nano to deactivate reset when programming the bootloader. This is because it's wired to reset whenever anything connects to the serial port, which is great for loading in sketches, but you don't want it to reset when you go to program the bootloader. I believe the tutorial calls for putting a 10uf capacitor on the reset line of the uno. I have also seen versions calling for a resistor 110 ohms on reset to 5V. Disable reset after loading in the ArduinoISP sketch.
You can try the below link..
http://www.martyncurrey.com/?p=633
This schematic works better.
enter image description here
-
\$\begingroup\$ Welcome to EE.SE. Link only answers are discouraged, you should edit some of the relevant points into your answer. \$\endgroup\$David– David2014年10月13日 07:57:41 +00:00Commented Oct 13, 2014 at 7:57