Serial ports
Newzed
Posts: 2,503
I have a situation where the PC is talking to a peripheral using Visual Basic.
The data the PC receives must be passed to a Stamp.· If I connect the Stamp to a USB port can both ports be used simultaneously?· Does the Stamp receive the VB data from the PC as serin 16.......?
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Try the Stamp Tester
http://hometown.aol.com/newzed/index.html
·
The data the PC receives must be passed to a Stamp.· If I connect the Stamp to a USB port can both ports be used simultaneously?· Does the Stamp receive the VB data from the PC as serin 16.......?
Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Try the Stamp Tester
http://hometown.aol.com/newzed/index.html
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
I have the feeling that I do not really understand what you mean. Do you have an USB to serial adapter to feed your Stamp or are you using a serial connection from PC to the Stamp? Or do you use your USB cable just to power your Stamp.
Lots of questions as you can see. Can you point out a little more what you are doing??
Regards,
Klaus
Jon Williams answered by question - the PC is using the serial port to communicate with a peripheral device.· The Stamp is using the USB port to communicate with the PC via a USB to serial adapter.
Sid
OK, now it is clear to me (takes a while sometimes .
Does this USB to serial adapter give the power for the Stamp as well?
Klaus
PS Hi, Klaus - hoe bent u?
In Holland we say: "how is it going" .
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
No, no power from the USB.
Sid
The only thing I wanted to point out is that Dutch people and American people sometimes say the same things in a different way.
I actually have a datalogger running here on USB power, it draws 40 to 140 mA. It is not a problem for the stability of my datalogger but if I ad other loads (ie 'real' USB devices) to the same port voltage drops from 4.8 to 4.3 Volts. Lucky enough when designing my datalogger I have put in a compensation for supply voltage changes.
I like to power small devices (up to say 150 mA) with USB, mainly because there is a USB hub with free ports on my desk. It's so easy.....
Klaus
The dropoff doesn't seem to affect the Stamp but it does affect the LCD.
Even so, I think the USB-powered Stamp board·is still a very good thing.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Try the Stamp Tester
http://hometown.aol.com/newzed/index.html
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
You can solve a lot of USB power problems if you use a powered hub.
The power does not come from the PC but from a separate power brick (2A for 4 USB ports)
So, USB is NOT really 5 Volt, it is more or less between 4.5 and 5.5 Volts which is not as good as a LM7805 by far .
Regards, Klaus
Thanks for the tip on the FTDI chips. They may give my project a major impuls as it is devellopping.
There is only one thing I could not figure out yet, I will need suitable prototyping boards for 32 pins on 30 mil spacing and I did not find them here in Europe until now. Does Parallax stock them as well?
Thanks again, this is a good tip !!
Klaus
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Try the Stamp Tester
http://hometown.aol.com/newzed/index.html
·
For a DIP you are totally right.
This is for the FTDI chip Jon mentioned earlier in this thread and the pakage is called LQFP-32. It is a square chip of 7x7 mm with 8 pins on each side. This makes the pin spacing 0.8 mm or 30 mil.
So, in case I go on with this and start soldering these miniature pins there will be no beer and no coffee for a couple of days in order to get my hands stable enough )))).
Klaus
I think you can buy adapter sockets for them - not sure.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Try the Stamp Tester
http://hometown.aol.com/newzed/index.html
·
The smalles size I did until now was 50 mil, but that was before I got my glasses and my magnifieing lamp. I have a miniature soldering Iron and 0.5 mm soldering wire for these things.
Unless I find a better way I may have to go this road.
But this FDTI chip is very interesting, you get not only USB power supply but also USB data transfer. I like it !!
Klaus
Here are some prototyping adapters from the LQFP-32 format to DIP format which may be helpful: http://www.epboard.com/eproducts/protoadapter1.htm . Just too bad they're so expensive!
Regards,
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
I just tell you, otherwise some people might miss it, it is only 0.28x0.28".
I'll find a way, this tip from Bruce should work for a prototype but it will give me a 32 pin DIP connector, which is a fairly large shoe for such a small chip.
Klaus
One of the firms that sells FTDI parts, (see their website, no I don't remember it.), sells premade boards. Your choice of either serial I/O, or parallel. But I appllaud Parallax for selling the FTDI parts, they need another dealer. The only ones that FTDI had chosen, until Parallax were a bit odd.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Buck Rogers
www.gregg.levine.name