Separate power supply

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
Sigma Relief
Posts: 1
Joined: Thu Apr 15, 2010 5:00 am

Separate power supply

Post by Sigma Relief » Thu Apr 15, 2010 5:24 am

I am on my 2nd V-USB project for what essentially amounts to a battery powered high power stepper motor controller. The catch is the USB interface is optional and usually will not be present. I know this will cause some issues with software when I go to implement USB control, but for now, I'm working on board layout for the +5V rail. I don't know the finer points of the USB protocol, but my first thought is to simply leave the +5V from the PC unconnected. To my knowledge, the PC does not monitor the +5V rail for anything other than over current conditions, so it shouldn't care where the 3.3V logic is coming from. Please let me know If I am missing anything.

PHermansson
Posts: 10
Joined: Tue Oct 07, 2008 11:44 am

Re: Separate power supply

Post by PHermansson » Thu Apr 15, 2010 8:24 am

There is a setting in usbconfig.h (I think) about "self-powered" device.
I would try to use this, and connect the USB 5V to a I/O-pin. That can then be used in the code detect if USB is connected or not.

Post Reply