using BS2 to control 6V and 12V actuators
trooks
Posts: 228
in BASIC Stamp
I have designed and written all the software command and control code for a unique system using BS2 modules with XBees acting as RF UARTS. At present I can run simulations that use only LEDs as indicators for actual solenoids/actuators.
I now need some kind of hint/pointer/clue as to how I can get from those 20ma LEDs being turned on and off to the actual control of heavy duty solenoids and actuators. It is a long way from a 20 ma I/O pin to actuating a 14 ft/lb solenoid and my efforts to get there have only released much magic smoke.
Any and all help will be much appreciated.
I have searched as best I can and have found nothing in the thousands of threads to get me pointed in the right direction
I now need some kind of hint/pointer/clue as to how I can get from those 20ma LEDs being turned on and off to the actual control of heavy duty solenoids and actuators. It is a long way from a 20 ma I/O pin to actuating a 14 ft/lb solenoid and my efforts to get there have only released much magic smoke.
Any and all help will be much appreciated.
I have searched as best I can and have found nothing in the thousands of threads to get me pointed in the right direction
Comments
BASIC Stamp AND Solenoid
Edit: I took a close look at the thread I referenced and found a couple of wrong things.
1. "What's a Microcontroller", referenced by Mike Green, at least my copy (2.2), doesn't actually say anything about solenoids.2. The link given by Professor Chaos to the Nuts and Volts Column 6 doesn't work any more.
But Loopy's MOSfet advice *is* right on. The L293D from Parallax is good for up to 600mA and includes the diode on the output side.
EndEdit
July 26 edited July 26 Posts: 0FlagVote Up0Vote Down Here is a pointer to a typical thread that discusses that:
BASIC Stamp AND Solenoid
Edit: I took a close look at the thread I referenced and found a couple of wrong things.
1. "What's a Microcontroller", referenced by Mike Green, at least my copy (2.2), doesn't actually say anything about solenoids.2. The link given by Professor Chaos to the Nuts and Volts Column 6 doesn't work any more.
But Loopy's MOSfet advice *is* right on. The L293D from Parallax is good for up to 600mA and includes the diode on the output side.
EndEdit
Tom,
Thanks so much.
I may have been entering my search criteria wrong. Using BS2 and Relay seems not to have been a good choice.
As for #1.) - I have that book and did not find what I need in it.
#2.) - Sometimes the Professors advise is a bit too far behind the times<Grin>
I have always found Loopy's advice to be 'right on'.
Using your search criteria led me to the real eye opener of an optically isolated MOSfet switch. Back in the Dark Ages of medical electronic devices optical isolators were used in abundance. It just never occurred to me to use one to control a switch.
I am going to start replacing LEDs with Part# PVDZ172N from International Rectifier and/or the L293D from Parallax.
Thanks Again,
trooks
Thank You a whole bunch for the tip and some specifics about the TI driver chip.
It's a good thing I always drag my feet when it comes to spending money or I would have already ordered stuff<G>.
I keep telling my mechanical engineer partner to build in a few levers or even a pulley or two where speed is not critical and we could have less of those hulking actuators<VBG>. He is doing as bit better. At least we got those scavenged Caterpillar 18V actuators out of our prototype.
You'd probably be better off starting a new thread rather than adding your question to this one.
Since your question here is nearly the same as the one in your PM, I'll respond here.
I'm pretty sure there are some examples of PBASIC code to control stepper motors around but I don't know where they are.
I personally use the Propeller. While I've done a lot of work controlling stepper motors with the Propeller, my code is presently an absolute mess. I'm too busy with other projects right now to clean it up. What I have worked on is available from my GitHub:
https://github.com/ddegn/CncController
The code is in Spin and PASM. A lot of the code has to do with operating the OLED display I'm using in the project.
There should be code to control steppers in a linear motion and code to control steppers in circular motion but it would take me a while to figure out which program does what.
While I don't think the Basic Stamp is an optimal controller for stepper motors, I'm pretty sure there are examples of using the Basic Stamp to control multiple motors. At the top of the first post in my index (see my signature) is a link to Rich's forum search page. The is what I use to search the forums. It might help you find an example of PBASIC code to control multiple stepper motors.
https://www.parallax.com/product/27115
Now that's the spirit, plug Parallax products!
https://www.parallax.com/downloads/single-relay-board-basic-stamp-code
We also have a version that interfaces to eight relays at once:
https://www.parallax.com/product/27113
The postings about plugging Parallax products caused me to go back and review for new things Parallax is offering since I last did a complete review and there it was.
I now have an order in for a supply of solid state relays from Parallax. I will be using them to drive the off-board relays out in the mechanical stuff.
The pessimistic optimist or the optimistic pessimist in me is going to leave the thread open until I get them and solder them in and run my testing and testing and a bit more testing.
Once we have the product built and a name copyrighted and a demo video or two goes viral Y'all will understand the need for sooo much testing.