USB and AC power

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
cinek
Posts: 2
Joined: Sat May 05, 2007 7:49 pm

USB and AC power

Post by cinek » Sat May 05, 2007 8:18 pm

Hi.
I'm developing USB device which should use AC power when unplugged from USB. Here is simplified schematic: http://img159.imageshack.us/my.php?image=test04ra0.gif
What values of diodes and resistors should I use there? Should I compile the driver as USB powered or externally supplied? I'm forced to use LE33 instead of LE35, will 3.3V be fine for data lines?

christian
Objective Development
Objective Development
Posts: 1443
Joined: Thu Nov 09, 2006 11:46 am

Post by christian » Mon May 07, 2007 11:56 am

The LE33 is even better from the USB perspective. We decided for the LE35 because the higher supply voltage allows higher clock rates. This is not so much of a problem with modern AVRs.

You should compile the driver for bus-power because the device CAN draw power from the bus.

In my opinion, you can save the extra 78L05 and send the rectified AC directly into the LE33 (through the schottky diodes, as you suggested), provided that the regulator's power rating is not exceeded. If it is, you might choose a low drop regulator with higher power rating.

For the schottky diodes, look at the catalog of your favorite supplier. Use whatever is cheap and can stand the voltage and current.

Post Reply