Go Down

Topic: Creating a standalone Arduino (Read 1 time) previous topic - next topic

samwhiteUK

Ok, so I basically wanted to experiment with pulling the ATMega 328 from my Uno and using it as standalone on a breadboard, using the minimal setup. This means I have to use the internal clock, so I have appended the following to my boards.txt in my arduino1.0 installation folder:

Code: [Select]
##############################################################

atmega328bb.name=ATmega328 on a breadboard (8 MHz internal clock)

atmega328bb.upload.protocol=arduino
atmega328bb.upload.maximum_size=30720
atmega328bb.upload.speed=57600

atmega328bb.bootloader.low_fuses=0xE2
atmega328bb.bootloader.high_fuses=0xDA
atmega328bb.bootloader.extended_fuses=0x05
atmega328bb.bootloader.path=arduino:atmega
atmega328bb.bootloader.file=ATmegaBOOT_168_atmega328_pro_8MHz.hex
atmega328bb.bootloader.unlock_bits=0x3F
atmega328bb.bootloader.lock_bits=0x0F

atmega328bb.build.mcu=atmega328p
atmega328bb.build.f_cpu=8000000L
atmega328bb.build.core=arduino:arduino
atmega328bb.build.variant=standard


However, when I try to upload, I get the following error:
avrdude: stk500_recv(): programmer is not responding

What do I need to do? The chip works fine on my Uno, so it is not broken. I do not need to upload ArduinoISP, do I? This must be surely just for the bootloader burning, as I will be uploading it to the chip and then immediately overwriting it again?

Can anyone help?

Thanks,

Sam

legwinskij

Have you changed the fuses on atmega328 ?

derek4484

legwinski is correct.  The fuse bytes and the bootloader that come installed on the 328P in an arduino are made to be used in an arduino.  The easiest way to do it, is to just add the external crystal and caps (or a ceramic oscillator) to your standalone circuit.  That way it mimics the arduino fully and it wont be able to tell if its on the arduino board or your home made circuit.  They cost only about $1 online.

samwhiteUK

Yes, but i really wanted to use the minimal setup, and I know this can be done, I just don't understaqnd where the problem is coming from?

You say the easiest method is to add the crystal and capacitors. What are the other methods?

Qtechknow

I think that you should use that boards.txt file, then burn the bootloader.  You could do this by following arduino isp. Upload it to your arduino, connect MISO, MOSI, SCK pins to each other, connect RST to D10, and then burn the bootloader to the atmega on a breadboard.

Go Up