Pages: [1]   Go Down
Author Topic: Programing Atmega without uno in PCB  (Read 581 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What do I have to do to program the uno when it's in a PCB. I would like to get the parts as few as possible and the steps as few as possible. I plan to use the SM atmega. I understand that I have to put the ICSP header on, but is that all I have to do or is that all I have to do to load the bootloader.

My understanding is that I would need to program the bootloader first, through the ICSP. Then connect to the serial "port" of the Arduino through a usb to serial or something like that to download my sketch.

Is there a way I can just compile a file that has the bootloader and my sketch in it? or just program my sketch without the bootloader?

That also makes me wonder what does the arduino compiler create for an output file, and where is it?

If this has been discussed could someone point me in the right direction, I am not sure what key words to use, program generates too many hits to sort through.

Thanks, -Tim
Logged

Switzerland
Offline Offline
Sr. Member
****
Karma: 6
Posts: 375
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Here's some useful links.  There's more in the "Playground" section of these pages.

http://arduino.cc/en/Hacking/BuildProcess
http://arduino.cc/en/Hacking/Bootloader
http://arduino.cc/en/Hacking/Programmer
Logged

Scotland
Offline Offline
God Member
*****
Karma: 11
Posts: 988
Have you had your Arduino fix today?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Connect Ground from uno to Ground on stand alone (pin 7 or 22)
connect uno Rx to pin 2
connect uno Tx to pin 3

upload while holding reset on uno
(remember tio tap reset on standalone when sketch size is shown in IDE)
It should upload to standalone



Drew.
Logged

Drew.
http://www.uk-pcb.co.uk - My UK Based PCB Fab & Assembly Company
Design work undertaken
SMD & Thru-Hole assembly

0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Tinkering in free time
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Drew,

I tried using your instructions, but couldn't make it work. I also tried other variations / permutations:
- connecting the Vcc
- connecting Gnd to Reset on the Uno,
but, but all no luck.

Have you tested on Uno yet? On the tutorials page http://arduino.cc/en/Tutorial/ArduinoToBreadboard there was a note that: "Note that these techniques only work with the Arduino Duemilanove w/ an ATmega328, not the Arduino Uno (or older Arduino boards w/ an ATmega168)." . So it appears that the different boards have quite a different make up.

Thanx
K
Logged

1411 LEVEE LANE, CEDAR HILL, TX 75104
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The links you gave have helped well...
Logged

Get everything you want from online swim store

Pages: [1]   Go Up
Jump to: