Cannot upload sketch to Atmega328p using FT232RL

Hi

I'm trying to upload a sketch to an Atmega328p using an FT232RL. I've been following this tutorial: 1-Day Project: Build Your Own Arduino Uno for $5 - YouTube

This is how my setup looks:

Basically, the connections are:

  • 16mhz clock to 9 and 10 through 20pF caps
  • red led from 19 (digital pin 13) to 22 (gnd)
  • FT232RL gnd to GND
  • FT232RL vcc to vcc
  • FT232RL tx to 2 (rx)
  • FT232RL rx to 3(tx)
  • FT232RL dtr to 1(rst) through a 100nF cap

The Atmega328p has been bootloaded and it works fine when fitted into an Uno board. When I power on the chip via FTDI232 the red led flashes twice.

However, when I try to upload the sketch it gives the following error:

Using Port                    : COM5
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x9e

I believe the FTDI drivers are up to date and I select COM5 which appears when I connect the FTDI chip to my pc by USB. I've selected the board as Uno.

Does anyone have any ideas on why this is happening?

Thanks

No 0.1uF caps on VCC or AVCC. Need both VCC and AVCC connected to FTDI 5V.

Are both chip Gnds connected to FTDI Gnd? Hard to tell from the picture.

If the above don't fix it, try swapping the wires to pins 2 & 3.

CrossRoads:
No 0.1uF caps on VCC or AVCC. Need both VCC and AVCC connected to FTDI 5V.

Are both chip Gnds connected to FTDI Gnd? Hard to tell from the picture.

If the above don't fix it, try swapping the wires to pins 2 & 3.

Thanks, I tried this but it didn't help.

I've now fixed it - as well as arduino Reset going to DTR (through the cap) I also connected arduino reset to arduino vcc through a 10k resistor and its working fine now. I discovered this here http://wiki.jmoon.co/ft232rl/