quantzie Posted October 6, 2006 Report Share Posted October 6, 2006 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. Quote Link to comment Share on other sites More sharing options...
OnOff Posted October 7, 2006 Report Share Posted October 7, 2006 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.pdfThe source code is even there:http://www.atmel.com/dyn/resources/prod_documents/AVR309.zipI hope it works. Quote Link to comment Share on other sites More sharing options...
quantzie Posted October 8, 2006 Author Report Share Posted October 8, 2006 The specifications are to transmit the data through the serial port. Those links are very good though thanks for it. I still can't find whether I can just use the pins 1 & 4 and connect it to my circuit Quote Link to comment Share on other sites More sharing options...
MP Posted October 8, 2006 Report Share Posted October 8, 2006 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 Quote Link to comment Share on other sites More sharing options...
quantzie Posted October 8, 2006 Author Report Share Posted October 8, 2006 The current consumption should be more than 5mA because there will be a wireless receiver connected to the circuit. Comparing circuits, would I need a voltage regulator for connecting the USB as a power source? Quote Link to comment Share on other sites More sharing options...
OnOff Posted October 8, 2006 Report Share Posted October 8, 2006 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 Quote Link to comment Share on other sites More sharing options...
MP Posted October 8, 2006 Report Share Posted October 8, 2006 ...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 Quote Link to comment Share on other sites More sharing options...
MP Posted October 8, 2006 Report Share Posted October 8, 2006 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 Quote Link to comment Share on other sites More sharing options...
quantzie Posted October 9, 2006 Author Report Share Posted October 9, 2006 thanks a lot for the advice!!! I have ordered my components and if i'll have any other problems i'll post :) Quote Link to comment Share on other sites More sharing options...
quantzie Posted October 16, 2006 Author Report Share Posted October 16, 2006 I connected pin 1 to a side of a 1k resistor and pin 4 to the other. Is that the correct method to try it? Quote Link to comment Share on other sites More sharing options...
quantzie Posted October 16, 2006 Author Report Share Posted October 16, 2006 solved it already. no need for reply Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.