Propeller Servo Controller USB controlled by switches?
phil_light
Posts: 7
Hi, I'm completely green to this. I'm simply asking if what I want to do is possible.
I want to control 9 servos. I only need all 9 servos to move from position a to position b and back again (where a & b are identical distances/positions for all 9 servos) by either button push or switch flip. In other words, I'd like to have a control panel with cheap switches on it for each of the 9 servos, and when I flip servo 8's switch, it travels from a to b. Flip the switch to the opposite position and have the servo travel from b to a.
Could I use the Propeller Servo Controller USB product to do this or am I over complicating my needs? I've never even messed with servos before, so there quite possibly is a low tech way to do what I want to do. I'm just trying to figure out where to start.
Thanks!
I want to control 9 servos. I only need all 9 servos to move from position a to position b and back again (where a & b are identical distances/positions for all 9 servos) by either button push or switch flip. In other words, I'd like to have a control panel with cheap switches on it for each of the 9 servos, and when I flip servo 8's switch, it travels from a to b. Flip the switch to the opposite position and have the servo travel from b to a.
Could I use the Propeller Servo Controller USB product to do this or am I over complicating my needs? I've never even messed with servos before, so there quite possibly is a low tech way to do what I want to do. I'm just trying to figure out where to start.
Thanks!
Comments
John Abshier
Post Edited (Mike Green) : 2/3/2010 6:19:35 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon McPhalen
Hollywood, CA
Just as a little background, this is for a model railroad, and I'm looking at using cheap servos to control the turnouts (switching track) on the railroad. There is a product in the hobby called a tortoise switch machine, which is essentially a prepackaged servo with a preset travel distance built in that is controlled by a toggle switch. They're on the order of $15 each minus switches, and I need 9 of them. I'm just exploring whether it's feasible to save a little cash and learn something new by using cheap servos and building a controller for them. So I'm trying to build the switch machines for less than around $140.
I'm off to research more now. Thanks for the help guys!
My reasoning on this is that most of the software is already done (the servo driver) and is essentially what's used in the Servo Controller. Reading the switches and moving the servos is pretty easy stuff. You'll use 18 out of 28 uncommitted I/O pins leaving 10 for all kinds of stuff. At the very least, you could add a display or 9 LEDs or 9 red/green LEDs or track sensors or whatever. If you want to get fancy and save I/O pins for other tasks, you could wire up the 9 switches into a 3x3 matrix and only use 6 I/O pins to scan it.
The only thing I can see as a potential issue (correct me if I'm wrong) is that using the same pulse to control any or all of the servos requires pretty accurate placement/positioning of the servos right?
I might just buy some stuff and start learning/experimenting. I'm sure I can put the board to use in one way or another.
For adjusting a servo where several might be fed by the same control pulse, you'd just position the servo to some known position (usually at 1.5ms), remove the servo "horn" used to attach whatever mechanical linkage you're using, turn it to some other position, then reattach the "horn" to the servo shaft. The servos have spline shafts, so they're not infinitely adjustable, but most mechanical arrangements have some "slop" in them.
By all means experiment. The Protoboard is fairly cheap and, if you get the USB version, all you need is the free software and a source of power to start with it.
Exactly what I was thinking. I could have blocks of switches that normally switch to route trains based on typical routing. All of these things are why I'm thinking that building something vs buying some "dumb" switches is a good investment. Even if it ends up costing as much, I'll get a lot more out of it. Especially in terms of knowledge/learning. It seems very doable, so I'm going to do some more research and hopefully some experimenting soon. I'm reading the propeller manual right now.
I'm sure I'll be around asking questions. Seems like a great forum!
Post Edited (phil_light) : 2/3/2010 9:38:26 PM GMT
Here's a "master thread" of topics on the prop.
http://forums.parallax.com/forums/default.aspx?f=25&m=335240
Here is a book I liked better than the "manual".
http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/PELabsFunBook-v1.1.pdf
I found it easier to understand when getting started.
To reinforce what Jon said, 5VDC needs to go to the center pin of J2. That's J2 on the schematic, it's not silkscreened on the board. This is the 6 pin header above the P0-P7 header which is the 24 pin header. It's actually called "Vext" on the schematic.
The attached pictures show my standalone board with·6VDC 1.8A input soldered directly to the bottom of the servo·power input terminals, and a 5 volt LDO regulator screwed into the terminal block with the output lead wire wrapped and connected to the Vext on the serial input.·Just wanted to make sure no one connected 5VDC input to any of the "P" out "R" buss.·· center terminals of the "P Servo Out" connectors.
Jim
Post Edited (hover1) : 2/4/2010 12:04:02 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Forums RSS Feed!
Gadget Gangster - Share your Electronic Projects
I'm thinking now that if I could just modify this gadget to allow me to select a specific servo to switch, I could avoid the 9 spdt switches. Any thoughts?
I feel like someone who wants to build a cabinet, but the only tools I've even heard of are a hammer and a screwdriver, and I'm not really sure how to use them. You guys know all the tools and how to use them.
I might have missed it somewhere in the thread but just in case I didn't, the USB spec calls for only 500mA of available current for the device. Although some hubs and computers are a little more generous, running all those servos simultaneously with only 500mA will be ugly.
Jim-
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Signature space for rent!
Send $1 to CannibalRobotics.com.
Post Edited (CannibalRobotics) : 2/4/2010 4:00:27 PM GMT
http://www.tamvalleydepot.com/products/octopusservodriver.html
Jim