How do I copy from my Arduino Uno SMD (with a surface-mount version of ATmega328P) onto a separate through-hole ATmega328 (pre-bootloaded) so I can construct my first project without incorporating my Arduino into it?
I’m not sure I understand your question. Are you asking how to download your code (that works on your Arduino) onto the “naked” ATmega (preloaded with the Arduino bootloader) ? If that’s the case then your project is a lot like a [“Pro” Arduino, it lacks the normal Arduino’s USB-serial converter. So you’d load it just like you’d load a “Pro” Arduino (not copy from Arduino to ATmega). Get a separate USB-serial converter, either a cable or A breakout board, and connect that to the ATmega’s serial pins. SF sells a couple of these converters, with a slight difference between them (I forget what that difference is).
Be sure to get one with the right voltage, one that matches your ATmega supply (3.3 or 5 V).
http://www.sparkfun.com/products/9873
http://www.sparkfun.com/products/9716
http://www.sparkfun.com/products/9718
http://www.sparkfun.com/products/9717](http://www.sparkfun.com/products/10915)
Thanks for the reply Mee n Mac: I will clarify my question. I am new to this. I have built my first project on an Arduinio Uno with an ATmega328P surface-mount chip. I want to produce my first project and free up my Arduino for further projects. What is the best way for me to reproduce my stellar project without incorporating my Arduino Uno into the project permanently. Unless that is the most effective way. As a side note, I do have a prebooted ATmega328 pin-based chip available but no clue how to utilize it or program it from my Arduino. I am unfamiliar with the Arduino Pro but will look at what you have provided. Would it be more efficient to get another Arduino with a pin-based chip to pop it out and replace with another? What other options do I have? Thanks for any replies
You could get hold of a MAX232 and hook up your 328 chip with Bootloader on a breadboard. Either that, or use your Arduino as an ISP and program the chip that way. Not very difficult and opens up many other chips in the family to use.
Excellent ! You are using the Arduino platform for what it's best suited for ... as a development tool to breadboard and prove your design works before transistioning it to a more cost effective implementation ... which in turn frees up your Arduino to use for the next project. Kudos !TSmithA10:
Thanks for the reply Mee n Mac: I will clarify my question. I am new to this. I have built my first project on an Arduinio Uno with an ATmega328P surface-mount chip. I want to produce my first project and free up my Arduino for further projects.
Best is relative to your needs. If all you ever intend to do is this one project, then there's no driving reason to move it off your Arduino to something else. If you plan to do other things then you have 2 basic choices, make your own board and mount an MCU or perhaps buy a board with the MCU, and the minimum of external support circuitry needed to make it run, already incorporated. This saves you time and some $$s (this is the rationale behind the "Pro" Arduinos).TSmithA10:
What is the best way for me to reproduce my stellar project without incorporating my Arduino Uno into the project permanently. Unless that is the most effective way.
If you already have a sketch that works for you I think your present course is a good one. I'll just mention that if you don't want to layout and make your own board to house the ATMega and whatever other circuitry is needed, then the "Pro" Arduinos are a good halfway step. The PCB is done and parts mounted on it. Granted you'll pay some extra $$s for that convience. Were it me ... and it's a one off thing I'm making ... I'd save the time and effort and use a "Pro" for that convience it provides. If you have some other requirements that a "Pro" can't do, then it's a different story.TSmithA10:
As a side note, I do have a prebooted ATmega328 pin-based chip available but no clue how to utilize it or program it from my Arduino. I am unfamiliar with the Arduino Pro but will look at what you have provided. Would it be more efficient to get another Arduino with a pin-based chip to pop it out and replace with another?
Mee n Mac: Thank you for your detailed answer. I will definitely look at the “Pro” and try that route. Very helpful response and much appreciated.