Go Down

Topic: how to program ATmega328 with Arduino pro mini (Read 510 times) previous topic - next topic

Hi,

I have brought ATmega328P ICs. I want to use those as my arduino board. I already own Arduino pro mini 5v/16MHz.

I want to know how to program the atmega328 with pro mini. I don't want to use external crystal for my projects.

I have seeing examples with other arduino boards, to use arduino as ISP. is it possible with pro mini board.

After flashing the intial bootloader in my mega328, will it possible for me to directly download the code from arduino IDE, if i create a seperate hw.

Help me in this.

Thanks and Regards,
Ashok Kumar Ponnaiah

johnwasser

> I want to know how to program the atmega328 with pro mini. I don't want to use external crystal for my projects.

See "Minimal Circuit (Eliminating the External Clock)" in : http://arduino.cc/en/Tutorial/ArduinoToBreadboard

> I have seeing examples with other arduino boards, to use arduino as ISP. is it possible with pro mini board.

Yes. Use pins 10, 11, 12, and 13; just like on the Arduino UNO.

> After flashing the intial bootloader in my mega328, will it possible for me to directly download the code from arduino IDE, if i create a seperate hw.

Yes.  You will need the same USB-to-Serial cable you use for the Pro Mini.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Thanks johnwasser.

I try and update you.

I have one more question.

Once i programmed the my atmega328P, can i power it with 3.3V?

I have 5v ftdi cable. Is it possible to program with 5v and for normal operation i can use 3.3v(5v ftdi cable won't be used).

Thanks and Regards,
Ashok Kumar Ponnaiah

johnwasser


Once i programmed the my atmega328P, can i power it with 3.3V?

Yes.  An ATmega328 can run at 8 MHz on as little as 2.4V.

See: https://docs.google.com/spreadsheet/ccc?key=0AmrQPFjOzdMsdF9TNFN2Rkp4WTVmeUdMLXdMSDJJU1E#gid=0
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Hi,

I am getting this error. I tried with different ICs. i am getting this error.

avrdude: Recv:
avrdude: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude: initialization failed, rc=-1
avrdude: AVR device initialized and ready to accept instructions
avrdude: Device signature = 0x000000
avrdude: Yikes!  Invalid device signature.
avrdude: Expected signature for ATMEGA328P is 1E 95 0F
avrdude: Send: Q [51]   [20]
avrdude: Recv:
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

avrdude done.  Thank you.

Thanks and Regards,
Ashok Kumar P

johnwasser

Quote
avrdude: Device signature = 0x000000


Looks like it might be a bad connection.  If any of the four data connections is not working you can easily read all 0's or all 1's or random garbage.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Go Up