I have a FTDI FT232-RL USB to UART and am trying to program an ATMega 168 with the arduino bootloader already burned. I forgot what pins need to be connected to what and looked all over the internet, but can't figure it out. I have txd (pin 1, ftdi) connected to tx (pin 3, avr) rxd(pin 5, ftdi) to rx(pin2, AVR) gnd(pin 7,ftdi) to gnd on the AVR 3.3v out(pin 17, ftdi) to vcc on the AVR and DTR(pin 2, ftdi) to reset(pin 1, AVR.)
When I try to upload a sketch, this causes my mac to tell me that I need to shut it down by holding down the power button. Any suggestions or resources would be greatly appreciated
The previous posters are correct. Pin1 to pin2, pin5 to pin3.
You probably don't want to power the AVR from the FTDI's 3.3V out; it only provides up to 50mA, which is ... close to what a bare AVR probably consumes. USB-powered arduinos have the 3.3V out as a sort of reference voltage (or for a limited number of 3.3V shield components, like 5V-3.3V buffers), and power the AVR directly from the USB voltage.
DTR is not connected directly to reset; there's a capacitor in there as well.
This is all in the schematics posted on the Arduino hardware page, for example:
In a sense. Vccio on the ftdi is a power input, in most cases connected to vcc5i, which is connected to the USB power pin (through a fuse, in the latest arduino versions...)