programming ATMEGA328

I want to program a ATMEGA328 wich have already a bootloader on it. I 've found some information, so I know how to set it up, but still one question. To program it with the arduino IDE, I need an usb to serial converter. I don't know the difference between: 1. Breakout Board for FT232RL USB to Serial (Sparkfun) 2. USB Serial Light Adapter (Arduino)

Is one of them a preferred option? Or even another possible option?

WannesNaf:
I want to program a ATMEGA328 wich have already a bootloader on it.
I 've found some information, so I know how to set it up, but still one question.
To program it with the arduino IDE, I need an usb to serial converter. I don’t know the difference between:

  1. Breakout Board for FT232RL USB to Serial (Sparkfun)
  2. USB Serial Light Adapter (Arduino)

Is one of them a preferred option?
Or even another possible option?

Either would work … but for about the same amount of money you can get a USB ISP which is far more powerful/useful.

FTDI cable?

https://www.sparkfun.com/products/9718

https://www.adafruit.com/products/70

I am a bit novice in this. Therefore, I like to program it with the arduino IDE because I am familiar with it. Can I use the solutions given by Nick Gammon and fungus for this? So yes, is there somewhere a toturial available? I already have an arduino UNO but now I want to build a project with the atmega328.

thanks!

WannesNaf:
I am a bit novice in this.
Therefore, I like to program it with the arduino IDE because I am familiar with it.
Can I use the solutions given by Nick Gammon and fungus for this?

Yes. For ISP you just select your programmer in the “Tools->Programmer” menu.
For serial connection you just select the COM port as before.

WannesNaf:
So yes, is there somewhere a toturial available?

There’s hundreds of them, try Google.

WannesNaf:
I already have an arduino UNO but now I want to build a project with the atmega328.

You can use your Uno as an ISP to try things out, there’s
even an option for it in the “Tools->programmer” menu.

Google for “arduino as isp”.

This shows how to use the bootloader and an FTDI cable.

http://www.gammon.com.au/forum/?id=11637

Just keep in mind that if you get an ISP programmer you will probably
still want (need) a serial interface as that is the only way to really communicate from
the host (the system running the IDE) back to the AVR.
i.e. if you want to output data to the IDE serial monitor you will need a serial
interface to talk to the AVR.

I have one of the FTDI cables. It is nice and works fine and uses RTS instead of DTR
for auto reset which I really like, but overall I really don’t like it.
Not because of anything it does, but because of the cable itself.
It is BIG. The cable itself is 5mm in diameter and fairly stiff.
When plugged into a small pcb, it wants to flip it over until you work
the cable or put a book on top of it.
I’d save the money and get something other than the FTDI cable.

IMO, the FTDI cables are way overpriced.
FTDI used to sell them directly for $3.50 now they are going for around $20.
For about $20 you can get a serial interface AND and ISP programmer.

There are cheaper serial interfaces,
but here is a really nice serial interface: http://www.adafruit.com/products/284
The nice thing about this one is that there are some configuration blobs on the bottom
to modify it for future needs. Like say you want to use some 3v stuff in the future…
It also is configurable to use RTS (default) or DTR for auto-reset.
Sparkfun has some that are smaller adapters but they don’t have the reconfigurability.

You can find cheap AVR ISP progammers on ebay.
Just make sure to get one with a 6 pin cable or get a 10 to 6pin adapter.
On ebay you can search for “AVR ISP”, “USBASP”, or “USBtiny”.

Another more advanced alternative is a board like this:

It is an ISP programmer with a built in serial port.
To use the serial port you have to do some wiring but it offers both capabilities.

— bill

WannesNaf: I want to program a ATMEGA328 wich have already a bootloader on it. ... is there somewhere a toturial available? I already have an arduino UNO but now I want to build a project with the atmega328.

This is 100% the tutorial you need: see: http://pdp11.byethost12.com/AVR/ArduinoAsProgrammer.htm

The Arduino Uno you have can be configured to work as an ISP programmer for your Atmega328. The bootloader on the Target AVR is not needed.