I have a atmega168 chip (without bootloader) and a arduino duemilanove (with atmega168+bootloader). My problem is how to get the clean atmega chip programmed. Can I put it in my clean atmega168 in the arduino? I have tried to do that but I think that my atmega 168 don't give any response. What to do?
there are two options one is get a chip with a bootloader or you will need a programer like the avr mkII
here is one at digikey http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=ATAVRISP2-ND
you have to download the sketch called "mega-isp" on the arduino, then in the source you find the instructions about the connections with the atmega168 and arduino.
by default the atmega 168 uses an internal clock at 8mhz, so you only have to wire the vcc and gnd pin.
now start the arduino and upload the firmware using the original avrdude (not the arduino one).
if you want to keep the internal clock you could use the lilypad bootloader else update the fuse and buy an external 16mhz clock (arduino speed) or a 20 mhz clock (the fastest speed for the chip)
I read about it, I have a 16 Mhz cristal and 2 capacitors 22pf. So if I connect the good pins to the atmel 168 like this.
Then the bootloader can be programmed to the atmega168? I have tried this but he is bussy a couple of hours and the LED 7 "7: Programming - In communication with the slave" won't burn.
hi guys... after building first line follower with my old arduino atmega8 board i am thinking of an upgrade to Atmega328. I have bought a fresh Atmega328. wat do i do to make it work with arduino? how do i burn the bootloader? What are the s/w and h/w required? can anyone please give me step by step instruction on how to do it? :-?
i am hoping to create a Arduino Duemilanove by myself on pcb. has anyone got a circuit diagram or schematic which i can use to make?
thanx in advance...
There are many posts around here about how to go about that. Also the Arduino playground has lots of information on programming bootloaders.
However it is far cheaper to just purchase a 328 chip with the bootloader already burned into the chip. Several dealers offer this.
Lefty
thnx lefty but i am residing in India. so finding that pgmed with bootloader is hard. and i want to do on my own... just as a challenge.... i had searched around in the forum on how to do it. but havent got any definite answers... thats y
Can u plz help me out. :-?
one more thing can replace my atmega 8 in my old arduino board with atmega 328 after loading bootloader? it would work same? :-?
one more thing can replace my atmega 8 in my old arduino board with atmega 328 after loading bootloader? it would work same?
I think the pin out is the same for the 328 as the 8, however does your old board have the Arduino auto-reset feature? I think the newer bootloaders like in the 328 are really designed to have the Arduino IDE do the reset to the chip before uploading can start, rather then the used pressing the reset switch. Adding the auto-reset to your older board is not too hard, just a matter of adding a .1mfd chip between the reset pin and the DTR signal at the FTDI chip.
As far as programing blank chips, I use the programmer from ladyada: http://www.adafruit.com/index.php?main_page=product_info&cPath=16&products_id=46
This programmer is already supported directly in the Arduino IDE, so simple to use. No having to figure out how to use AVRDUDE from the command line interface.
Lefty
nope older one doesnt have a auto reset feature...
I am having a AVR ISP
http://robokits.co.in/shop/index.php?main_page=product_info&products_id=52
how to go abt it 4m here? i mean connections and all... :-?
how to go abt it 4m here? i mean connections and all...
Can you try that question again?
Lefty
i meant how i burn it? via that avr isp
anyone can help?
Ha, now it works.
@000
First install avrdude AVR Tutorial - Software setup for Windows
Folow this tutorial AVR Tutorial - AVRDUDE
Yes, it works,
First install avrdude AVR Tutorial - Software setup for Windows
Than follow this tutorial AVR Tutorial - AVRDUDE
And read the manual AVRDUDE: 2.2 Programmers accepting extended parameters
But I've uploaded the bootloader ATmegaBOOT_168_diecimila.hex to my microcontroler, but nothing happened if I put that µC to my arduino Duemilanove, than I can't upload code.
Maybe the fuses aren't set right. Have a look at how I did it.
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1248947057/4#4
Note this only works for the 168, the code for the 328 is different and I haven't posted it yet.