V-USB on a battery powered device

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Ugly!
Posts: 1
Joined: Sat Jan 15, 2011 12:31 am

V-USB on a battery powered device

Post by Ugly! » Sat Jan 15, 2011 12:32 am

Hi. My project is based on a attiny2313 and a ds1302. It's basically a rellay that opens at specifics times of the day. I'd like to set these times via USB and a PC. The device is battery powered with 2 AA batteries (3V). I don't wan't to powered the device via USB.

I´m not sure how should I interface with the USB port in terms of hardware.

- Can I leave the USB Vcc simple hainging?
- Do I have to wire the USB GND with my device GND?
- Do I have to use 3.6V zenner diodes if I'm powering with the 2x AA batteries?
- Do I have to set the USB_CFG_IS_SELF_POWERED to 1 in the usbconfig-prototype.h

Thanks in advance and best regards.
Mat

Guest

Re: V-USB on a battery powered device

Post by Guest » Sun Jan 16, 2011 8:05 pm

- Can I leave the USB Vcc simple hainging?

Yes, in fact, you should

- Do I have to wire the USB GND with my device GND?

Yes

- Do I have to use 3.6V zenner diodes if I'm powering with the 2x AA batteries?

I don't think you do, but I hope 2x AA batteries work, test it out first

- Do I have to set the USB_CFG_IS_SELF_POWERED to 1 in the usbconfig-prototype.h

You should
Also remember to rename the file "usbconfig.h", not "usbconfig-prototype.h"

Mike J.
Posts: 6
Joined: Mon Dec 13, 2010 4:52 am

Re: V-USB on a battery powered device

Post by Mike J. » Wed Jan 19, 2011 4:31 am

Ugly! wrote:- Do I have to use 3.6V zenner diodes if I'm powering with the 2x AA batteries?

In this case you don't need Z-Diodes, the Voltage is lower than 3.3V.

Post Reply