ATMEGA328P-AU + FT232RL USB Not Recognized [solved]

I had some small ATMEGA328P-AU PCBs made with FT232RL for usb communication.





Note: the two conjoined pads are intentional.

I loaded the bootloader prior to solder of ATMEGA using the following video:

I used a variation using a Arduino as the programmer. Everything looked good and I had a successful bootload with a happy LED blinking.

I plugged in my newly assembled board and my computer won't recognize the USB port:

Video of power on: http://www.stievenart.com/arduino/ATMEGA328 BOOT.mp4

Steady power light in yellow, A few flashes of blue from RX/TX LEDs and computer tone finding new hardware.

Supporting schematic of above ATMEGA Board:
ATMEGA + FTDI Schematic.pdf (66.8 KB)

Is this a FTDI driver problem?

Please read and use link How to get the best out of this forum - Development Tools / IDE 1.x - Arduino Forum.

Did You make any prototype verifying the project before ordering boards?

No helper like downloading unknown files.

Please replace the pictures of the boards with schematics. Not common circuits calls for datasheet links.

These are my own custom designed boards and the link is to a PDF schematic made by my own hand. The schematic PDF and video are files on my stievenart.com server. I am not sure where I went wrong.

Yes but did You make a prototype using a proto board or similar before making circuit boards?

Looking at etched circuit boards is useless for checking the integrity of the design. A criminal detective solving a murder case might take on something like that but forum helpers will not.

That can be either a software issue as well as a hardware issue.

I have no reason to remove the images. I put the pictures there just to give potential responses a frame of reference where I am at on my project currently.

No one can question where I am at on my project currently.

Yes, I made breadboards of the bootloader and had working connection before solder:

This is the first constructive part of this conversation.

Have you installed the FTDI drivers?

The bypass/filter caps look further away from the chip than ideal, but not THAT far.
Except maybe the 3.3V OUT on pin17? Where's that going?

This is a layout that worked:


I didn't realize this was a thing. I have never had to use new drivers with new USB devices.

I will have a look at your schematics... they look very simular to mine.

The 3V3 out on the FT232RL is a linear output from the 5V in to the FT232RL. I am using to 3V3 power the buffer between the ATMEGA and an XBee. I am also using the 3V to power the XBee. The ATMEGA is powered directly by the 5V USB input.

Sparkfun has thorough instruction covering Installing FTDI Drivers. I wasn't sure if this was required.

22mm apart... the CAPs and the FTDI (orange) are on my ground side of the PCB. The FTDI gets it's power from the top and the caps send the power to the top side.

Shouldn't the FTDI driver installation be part of the IDE installation? The official classic Nano uses the FTDI chip and is, as far as I know, supported out-of-the box.

The 3.3V output from an FTDI is only good for 50mA.
I don't think that's enough to comfortably power an XBee Module (although there are "many" Xbee modules...)

I would do some basic checks

Power supply reaching chips @ 0v, 5v ok ?

Processor running ? ( scope near x’tal)

22pF caps around crystal ( could not see those on PCB )

Soldered connections to chips - all made to the pins ?

Too late now but …

When i make a PCB I would bring the icsp pins out so I can , if needed boot load in situ , if possible I’d bring the Tx rx and reset pins out too - all helps fault finding . Bring a spare digital out too - then you can check with blink sketch . Make a clip on test and coding board ??

unfortunately , in my experience , it’s not unusual for mistakes to have been made in laying out even the most simple of boards .

Bad example !!

I checked that all of the FT232RL has +5V and all of the GNDs on the chip are grounded.

Those small 3-pin cans have the caps buit inside of them... I found this out recently and did a PSA at: Never stop learning... [resonators/crystals/oscillators]

If you are sure that is what you have and have set the bootloader to suit .

Errors in the bootloader, crystal speed, or atmega328 wiring in general should NOT prevent the ft2323rl from being recognized by the PC. It's a totally independent chip.

(careful debugging technique would imply connecting up JUST the ft232 circuitry to start with, and confirming that it is detected and operates in loopback, BEFORE adding the other components. If you have more boards and parts, you could still try that. (admitedly, that's more difficult with a double-sided SMT board.))

I figured it out. After trying trying several other schematics for USB to FT232RL, with no success. I realized the only common thing was the FT232RL itself. I soldered a new FT232RL from another supplier and it works. I bought 10pcs in 2020 from a Chinese supplier off eBay for $20USD. Not a single one of the 10pcs tested correctly.



I attached an XBee and was able to communicate with XCTU through the new FT232RL.

Westfw, you were right!

I tested out the whole schematic on breadboard using one of my "long distance" XBee's and it sputtered out. I ended up adding a 3.3v AMS1117 to convert from 5v. I centered my FT232RL on the PCB and flanked it with the capacitors.