FTDI USB to serial + Arduino breadboard

Hi , I'm trying to upload a code to an Atmega328 with the Uno bootloader on a breadboard using an FTDI USB to serial adapter but i keep getting this error "avrdude: stk500_getsync(): not in sync: resp=0x00" I wired up an LED to the RX pin of the microcontroller and I noticed that the TX LED of the USB serial adapter blinks when I upload the code but the Rx LED of the Atmega doesn't. I used these components in the circuit : 1 power indicator LED. 1 LED hooked to PIN 13 (Standard Blink code) 1 LED hooked to RX pin 2 22 pF and a 16Mhz crystal occilator 1 0.1 uF capacitor hooked to the DTR pin and pin 1 of the atmega 10K resistor hooked to the DTR pin and to +5V I got this USB to serial adapter: ftp://imall.iteadstudio.com/Modules/IM120525005_Foca/DS_IM120525005_Foca.pdf

http://imall.iteadstudio.com/im120525005.html I followed this Tutorial : http://www.instructables.com/id/How-To-Make-The-Easiest-Breadboard-Arduino-UnoE/step3/Section-3-Uploading-Sketches-with-3-Different-USB-/

Hope you guys help me as soon as possible.

I used this tutorial by Nick Gammon and it worked fine.

DO the process as chillitronix shared link.

Before doing Just check IC name you have working with Atmega 328p-PU or Atmega328PU

http://www.instructables.com/id/Bootload-an-ATmega328/step6/ATmega328-PU-workaround/

Follow bellow process If any getting error further

Same. Nothing changed. and my chip is Atmega 328p-PU

Got any resistors in series with these LEDs? Like 1K?

1 power indicator LED. 1 LED hooked to PIN 13 (Standard Blink code) 1 LED hooked to RX pin

Add 0.1uF caps from VCC, AVCC pins to Gnd also.

yeah i wired 280 Ohm resistor to every LED they're working fine. I added the 0.1 uF capacitor but unfortunately nothing seems to change :(

Did you try swapping Rx & Tx?

Oh yeah many many times but nothing

Post a picture of how you have it wired up.

Photo

I wired it exactly this way but on the pin 1 I used a 0.1 uF electorlytic capacitor instead of a ceramic capacitor. Does it make a difference ?

https://www.google.tn/search?q=capacitor+electrolytic&biw=1366&bih=667&source=lnms&tbm=isch&sa=X&ei=V1KVVOnZEc7XaraugfAB&ved=0CAYQ_AUoAQ

No it should be OK to use an Electrolytic but you do need to post a picture of how you have wired it so we can check it is correct.

OK

Your pull up resistor that is supposed to be on reset looks very old and appears to be plugged into one of the serial lines or more likely you have misconnected one of your serial lines to the reset pin.

No it's connected to the reset pin and I tried with a normal 10K ohm resistor but same result

marcovaldor: No it's connected to the reset pin and I tried with a normal 10K ohm resistor but same result

Post a picture that shows that to be the case. The picture you have posted clearly shows the reset pin one connected to the cap, 10K and serial line. (IT could be a shadow).

Also you need a power by pass on both sides of the Atmega328, as per the link I posted in my first post in this thread.

Everything is there

marcovaldor: Everything is there

It isn't in the picture you posted. Post one with it all there?

I remember that when I first did wired the circuit I applied to it a +12V instead of a +5V could this damage some components or maybe the Atmega chip ?

Yes. There is no voltage regulation in that circuit.