I just finished reading Electronics for Dummies and feel dumber than ever.
The last chapter was the most interesting. It showed how to build a robot using 2 servos as propulsion; even showed how to modify the gears so they spin all the way around without doing that quarter turn thing.
AND, get this, the servos can be linked to a Basic Stamp, which in turn can be programmed to do things by simple computer language.
Furthermore, servo motors, a type of “stepper” motor, can turn slowly for those who like slow running.
Has anyone looked into using servos as propulsion power for locomotives and perhaps even programming them to run computer-directed sequences (that can be changed up any time you like)?
I think this is definitely something worth investigating. Just wish my layout was complete so I have more time to tool around with this stuff. I’m chompin’ at the bit!
The main problem with a stepper motor is that fact that they are not designed to do a continuous revolution -but 15 degree ‘nudges’… Other than that there is no real reason why you should not try. I have seen ‘modified’ servos used as winch motors on model boats -but other than that I am only familar with the 1/4 turn type.
Both Torby and I have done some programming for ‘embedded systems’ -but this was in Forth-79 in my case and PolyForth in his.
regards
ralph
Ralph,
They can EASILY be modified to do continuous revolutions.
That was my point.
Just unscrew the casing
Remove center gear
Remove output gear
set the potentiometer for the center position using pliers
Remove the ridge on the top side of the output gear using an X-acto blade or nippers
File down the remaining ridge
Remove metal retaining ring from under the output gear using small screwdriver
Remove potentiometer shaft clip
Place metal retaining ring back into output gear
Replace output hear on its seat, resting over the potentiometer
Replace middle gear and ensure all gears mesh properly
Add grease if needed
Replace the cover
And, you’re now good to go.
2 or more servos can be used in tandom
(as many as you need)
THe servos can be plugged into a Basic Stamp BOD
A computer interface can be worked up with the BASIC stamp editor to give your locomotive virtually any commands
David…
If you read the post I was refering to stepper motors… I am well aware that Servo Units can be modified for continuous rotation -hence their use as anchor winches. I would also doubt the ‘duty cycle’ of such motors for use in model loco usage. Most of my locos are powered by 6V pump motors rated at 100% duty and they get pretty warm!
regards
ralph
I’m no expert, but I have a little experience with servos modified to turn continuously. For many years I’ve used them to activate cameras onboard high power rockets. The small ones I used could run for hours on two AAA batteries.
Servos are not really stepper motors, they are geared motors. Stepper motors move in distinct increments.
If you used a servo for motive power, you’d probably want one of the larger ones with a lot of torque. I don’t know how well they’d do at low speeds. The ones I use lack power below a certain voltage.
Thanks, Icepuck. Those sites has my mouth watering to do some experimenting. The true potential of robotics has not, IMO, been fully explored in model trains.
I picked up a Robot magazine in the bookstore the other day and marvelled at the creations teens were doing with robotic parts. The young kids are on the cutting edge of this stuff and may have some of us older farts beat be a stretch.
I’m looking over the bot kits in the Parrallax and Jameco sites. They’re about $100 and sound like a wonderful way to get into this hobby and combine it somehow with model railroads in the garden. I shall try to figure out how these bots can go inside a locomotive and looks some flanged wheels up to them.
Later, I’d like to add some other features like voice programming. For example, tell the train to stop, reverse, uncouple, etc etc
The robotstore has a 10 amp h-bridge and stepper motor controllers that can be used with a basic stamp. Go to the downloads on parallax and download the basic stamp manual version 2.0. You should be able to get some ideas by looking at some of the code examples in the pdf. If you do decide buy one, buy a bs1, if you do smoke a port you wont be out much.
www.imagesco.com sells a speach recognition board that can be added to whatever you want.hope this helps.
-dh
Thanks! Helps a bunch. I’m also gonna join a robotics forum and mine the knowledge of the geek teen populace[:D]
I have been tinkering with a remote control for an electric loco. I got a remote key-fob and receiver on ebay for about $15. Its good for about 100 ft or so, more than enough for most garden layouts. The one I found has 4 pushbuttons that trigger 4 outputs on the receiver,. I was going to use those as inputs to either a Basic Stamp or a Picaxe (Picake is a knock-off of the stam, but they sell for $3-$10 instead of $40). I plan to let one button signal a speed increase, another a decrease and the third a panic stop. A momentum functions should be easy to program into the Stamp.
There are now many sources for continous rotation servos, usually for robots. Thye come in several sizes and ought to make a nice power source for a small loco.
This is one of those part-time projects fo rme- I tinker with it from time to time.
Ron,
I’m not sure our community has realized the potential that is out there to power our locomotives, to program microprocessors and to bypass trackpower, R/C companies who market stuff to our hobby, and proprietary systems like DCC, DCS, TMCC, etc.
Motorboats, ground vehicle and aircraft are all doing it. It’s just a matter of time before it kicks into our more traditional and conservative hobby.
It’s all about giving you, the user, control and choices rather than receiving the dictims from the powers that be.
It is entirely possible to create a perfectly good and low cost R/C system using high frequency RF keyfob transmitters on the (approximate) 400 Mhz band. These low cost items have operating criteria imposed by the FCC when used with toys, that is incompatible with the way we operate our trains. Therefore, no manufacturer is going to risk the wrath of the FCC by marketing a product on a commercial basis that is illegal to use. It could be done of course using the 900 Mhz band that is legal in the USA, Canada and Japan but illegal anywhere else.
Can you explain some of the limits that make this illegal? For train use we only need a range of 100 feet or so, and I dont see anything more complicated than a simple toy like an R/C car… The fob I have has 4 buttons, the receiver has 4 outputs that come on with each button press. I was going to use each press of the A button to increase speed, each press of B to decrease, including going into reverse. And that leaves C for a panic stop, and D for a whistle.
Hello Ron. When the 400 Mhz band is used for models the FCC mandates that the TX transmit for no longer than one second and no more frequently than once every ten seconds. By all means build one for your own use. They work just fine in our environment. BUT, don’t even consider using them commercially for model trains. The FCC have already come down hard on one entrepreneur who tried just that.
David - The community as a whole may not have realized the potential for microcontroller operation of model railroad equipment and such, but I, for one, have been working with it for several years.
Have a look at an article I wrote a bit over 2 years ago on using a very inexpensive microcontroller called a PICAXE to control a small locomotive. I have several of these running on my railway under internal battery power and they work very nicely!
To get to the article go to http://davebodnar.com/ and click on “Robot Train Project”
It is quite complete and should give you all of the information that you might need to get started.
dave
Dave,
This is cool. I’ve bookmarked your page and intend to read every bit. Didn’t know there was anyone else interested in this stuff (most folks like “ready-out-of-box”; which just suits the train companies fine. But most don’t know there’s other fun ways to run trains. Using a microprocessor gives you unlimited freedoms. You can even mimic a flywheel’s “coasting” effect for stopping.
I envision sharing programs over the forums once this idea gets going. There’s quite an active community of “robotics” types on several other forums who are really doing some neat things. I’m happy to see you are getting involved in this aspect. I hope to do so myself.
David - I am pleased that you found the information interesting. I have been spending a good bit of my time doing such things since I retired from my occupation in the “real world” - now I get to do what I want to do and have fun to boot!
If you are interested in the robot train article have a look at the other things I have been developing on my other web site:
http://www.trainelectronics.com/
Most of these devices have been written up in some detail at
http://www.lsol.com/
Enjoy!
dave
When I got my first bs1 ver.d(when it first came out), I modified one of the example programs in the book that came with it. I was using a push button to control the direction of a servo. I had at the time an old rc speed controller, the kind that used the servo signal from the reciever to run the drive motor. So as a crude test I tried it and it worked, it was a little rough to operate but it worked.After reading some of the above posts for today I got to thinking… why couldn’t something like this work for ruuning a train? All off-the-shelf parts and a few hours programming, who knows what might happen:)
-dh