Jump to content
Electronics-Lab.com Community

usb powered device


Recommended Posts

My project is to create a device that will read temperatures and transmit data to the computer. My plans are to transmit the data through the serial port using the MAX232 and ATMEGA88 microchip. I do not think these are the problems but the serial port does not supply enough power for the application I am using. I want to power up the device using USB. Is it possible to just connect the pins 1 & 4 as V+ and GND to my circuit? If I am not mistaken it is 100mA and 5V supply from PC through USB.

Link to comment
Share on other sites


Why don't you use the USB port for trasmiting the data instead of the RS232 port, here is a PDF doc. that describes how to do that:

URL http://www.atmel.com/dyn/resources/prod_documents/doc2556.pdf

The source code is even there:

http://www.atmel.com/dyn/resources/prod_documents/AVR309.zip

I hope it works.

Link to comment
Share on other sites

You can actually tap the voltage you need from the serial port unless you need a lot of current. AtMega chips only require micro-amps. It is the additional circuitry that requires additional.
Here is a schematic of a 5 volt tap from the serial port.

MP

post-555-14279143167266_thumb.jpg

Link to comment
Share on other sites

Well, if you have to use the serial port for data transmit, then you can use the USB port to power supply your circuit, and 100mA is enough since a wireless receiver does not consume much power as a transmitter.

If you run your Atmel with low frequency (1~4 MHz) and low voltage (2.7~3.3v) it will consume current in nAmps.

More over new USB ports are high power load this means they can supply 500mA.

But trying the circuit given by "MP" won't be useless, try to get rid of any un-necessary elements. Then, maybe 5~7 mA is enough.

Good luck

Link to comment
Share on other sites

...of course, the answer is yes. He can certainly use the USB power pins as a power supply. There is no association between the power pins and the data transmission lines. They are just on the same connector so that they can power the device connected. Current limiting with a resistor is a good idea since you are connecting to the Computer internal electronics.

MP

Link to comment
Share on other sites

As additional information for those who were interested in the serial port information:
The Lynx technology transmit and receive chips use 3 Ma typically and actually 1.5 mA on average. Since I would never take up two ports on the computer to run one device, I would look for a low current consumption device such as this.

MP

post-555-14279143167876_thumb.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
  • Create New...