Serial to USB Coverter Possible With BS2 and Basic Carrier Board
BrianZ
Posts: 28
I have the Basic Stamp 2 with carrier board with serial port, however I don't have a serial port available on my PC. Can anyone tell me if it is possible to simply use some kind of serial to USB cable or converter to use via a USB port, or must I buy a new USB carrier board for the BS2? Any advice or links to hardware I could use would be appreciated. Thanks.
Comments
All you need is the USB to Serial adapter (and a cable of course)
http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/adapter/List/0/SortField/4/ProductID/378/Default.aspx
I haven't used my BS2 for about 15 years, and you can't even find a serial port on a PC these days unless you add it yourself. The newer USB "board of education" is nice, but I can just add a breadboard, so this USB converter is a cheaper solution.
What I want to do is interface with a solenoid valve for precise control of delivering water drops for photography. The solenoid I have in mind uses 24V and about 200ma, so will need a switching interface to protect the stamp from the higher power. I will also need to write a program that can deliver two drops at a time (for collisions) with about 60ms between drops, while opening the valve for approx 10-50ms per drop, and with a way to make that time period selectable. Seems like this should be fairly simple.
Any advice or tips for interfacing or programming are welcome. I already found Nuts&Volts Column#6, which appears to have a good solution for the switching interface. Now I wonder if there is a sample solenoid control program already written somewhere.
Thanks again for your help and saving me some money, which I can now use for the other stuff I still need.
-Brian
The MOSFETS will handle much more current too.
An interesting comment about the current limit of the ULN2803 http://sci.tech-archive.net/Archive/sci.electronics.basics/2005-10/msg00192.html
There are some forum members who do know - maybe they'll chime in...