Thanks Mel, very helpful! Wish you were closer! Would love to spend a day with you to learn your many MR tricks!
Thanks, Randy! Good info and cleared up that question for me!
Thanks, Mel! Very helpful!
Yes, keep in mind there is nothing special about the servo extension cables. It's just s 3 wire cable. You want to extend one - do it the same way you extend the 3 wires from an Atlas turnout - cut the wire, splice in however much wire you need. No need to purchase expensive pre-made special extension cables.
--Randy
Modeling the Reading Railroad in the 1950's
Visit my web site at www.readingeastpenn.com for construction updates, DCC Info, and more.
Mel,
Earlier in this thread, you indicated that you made your own servo extension cables. Tell me more about this. What type of wire: 24 guage stranded? Do you recommend using a consistent set of colors for all the extension cables? Do you use crimp pins like these:
https://www.pololu.com/product/1930
Is there a special crimping tool for crimping the pins?
Do you use crimp connector housing like these?
https://www.litchfieldstation.com/product/0-1-2-54mm-crimp-connector-housing-1x3-pin/
I can see that it makes a much neater installation if one makes their own custom servo extensions! Thanks for your help Mel!
Only downside is the mounting. Everyone and their brother makes 9G mounts. Heck, if I had a 3D printer (one of these days), I could print the IASE ones for the material cost (they offer the files as open source, free to use, or you can buy them finished product from them). Space IS at a premium especially when I get to my second deck, but the 9G ones are already plenty small to not hang down into sight lines. Hmmm.
For those special animation projects - there are even smaller ones, used in those flyweight RC planes.
I'll have to check out 7G servos. Have to make my own mounts since they are smaller than 9G and won't readily work with the common 9G mounts. Maybe better suited to other sorts of animation instead of as point motors, they I'm sure they have enough power for moving the points on HO and smaller.
- -Randy
Appreciate your comments Mel, very true! You've done an excellent job on your layout and share your wealth of information with others very well!
I will be retiring late next year and moving into a different home. I'm just playing and dreaming of the next layout but there's too many unknowns to make any decisions for me... I'll certainly visit with you again in the future, appreciate all your contributions to the forum!
Mel, very thorough description of your power supply set up! Didn't fully appreciate the need for that size at first, now I understand your need for switching power supply plus DC/DC reducing transformers.
For me, I think the best bet is to start small. For my test switching layout, I will use caboose hobby ground throws on single turnouts. For the one or two crossovers, I would use an Uno, 2 or 4 servos, 1 or 2 wye cords, Tam Valley fascia mounts + LED, and a 2 amp 5 volt power supply. Only one crossover would be used at a time so should be sufficient power.
The costs for a higher amperage switching power supply and a DC/DC reducing transformer really need to be included when comparing arduino versus tortoise control of turnouts. Plus, one needs to properly size power supply and transformer to meet future needs rather than planning an initial test setup.
My main use for considering arduino is to operate crossovers. I prefer to use caboose hobbies ground throws for industry, yard track, and single turnouts. Looks like optimizing use crossovers is a great idea to minimize cost, just like for the railroads! It's too early for me to make those decisions. Thanks for your help Mel and Randy!
The regulator built in to the Arduino isn't really capable of driving more than 1 or maybe 2 servos. A 1 or 2 amp 5V power supply (the little bricks used for phone or tablets are a good option - you just have to cut the phone end connector off to expose the wire). For driving 6 or more servos, you'll want a more powerful power supply.
Randy, excellent information! Can you give me a recommendation on power supply for the UNO and Mega? Can a wall wart with 1 to 2 amp output (9 volts) be used?
Thanks for clarifying on joining two servos! What about the fascia mounts and lights, how are they connected to an arduino and will show correct turnout location?
Mel, nice set up! Very obvious that you love electronics and are very talented in using it in our hobby! I'm at the barely crawling stage of understanding so be very basic in my test setup. Thanks for sharing!
And that's perfectly OK at least for controlling turnouts as 180 degree rotation is generally not needed.
As far as driving multiples - here's the trick. A servo has 3 wires going to it, one is ground, one is power, and the third one is the signal line that controls the position based on the width of the pulses that coem over this control line. The 'power' used to turn the motor in the servo comes over the two other wires in the cable. Arduinos have a limit to how much current can be drawn from any one pin before the chip is damaged, however the signal line to the servo draws very little power. So you can connect the signal line of multiple servos to a single Ardunio output without harming anything.
Most if not all of the Tam Valley controllers us PIC microcontrollers, but at the interface level (ie, where you plug things in), that makes no real difference. Hooking multiple control lines to one output is exactly what you are doing when you hook 2 servos together with a wye cable.
No microcontroller can source enough current to actually turn the motor of the servo, those lines connect directly to the power input or the voltage regulator for the entire controller circuit. So while a moving servo might draw halg an amp or more depending ont he load, it's only putting a very minuscule load on the controller to get the position signal on the control line.
Couple quick questions:
Can the arduino drive two servos from one connection point to the controller with a y-servo extender? Tam Valley uses this approach:
http://www.tamvalleydepot.com/support/crossovers.html
Does this increase the number of servos that can be controlled? Say I buy a Uno and have five turnouts plus a crossover. As I understand it, a Uno can control six servos but may be able to control seven if the y-servo connector can be used. I will obviously be a lone operator so will only be switching one or two turnouts at a time.
The tam valley fascia controls + mounts are kinda expensive but I like the easy installation and protection from inadvertant switching. Can they be used with an arduino controller and correctly light showing switch orientation?
For this benchtop test with a very basic switching layout, I'll probably just purchase servo extender cables from ebay as they are inexpensive and free shipping. I agree with Mel I could save money by making my own but for this test premade are perhaps a better use of my time.
The Iowa Scale Engineering mounts are very reasonably priced and have some mounting flexibility if adjustments are needed. Hat tip to Randy!
Lots of good stuff about arduinos on youtube. Randy, thanks for the tip on Geoff B., he's an excellent resource.
Thanks Mel, very nice and thorough discussion! Gave me lots to investigate on ebay!
Thanks Randy, you're always very helpful and thorough in your commentary! Both you have given great suggestions! This is why I come to the forums!
Best,
Rick
Yeah, that's the one thing Tam Valley is high on - the servos themselves. They are insanely cheap on eBay. You can buy just the mounts for under $5 each from Tam Valley, or just can just glue the servo on its side under the layout - you don;t really need the fancy mounts.
It's still cheaper than Tortoises. The Octo comes out to less than $4 per turnout, the servo and mount at Tam Valley's price is $9 each, so you're at $13 per turnout. A Tortoise is at least $15 in 6 packs. You still have to add the toggle switch and LEDs to get anything like the equivalent of the fascia controller - though the Octo can use a simple toggle as well, you don't need the fancy fascia controllers. If you get the servos on eBay for about $150 each, the mounts are $6 each, so $7.50 for a servo and mount, plus $4, $11.50 per turnout. Much better than $15+ per.
And for DIY, Geoff Bunza has step by step instructions for setting up an Arduino - you don;t need to know anything about it, his instructions tell you how to load the software and use his existing program on it to then connect servos with buttons or toggles. You can get a suitable Arduino for under $10, I think Geoff's design that uses buttons drives 6 servos. So $10 for an Arduino, $9 for 6 servos, $36 for 6 mounts. Little over $9 per turnout! And there are cheaper mounts than the ones Tam Valley sells. Iow Scaled Engineering has ones that are $15 for a 6 pack of mounts. That works out to under $6 per turnout for 6 of them.
What do you use to power your arduino controller? Which arduino controller are you using? What mounts do you use to attach your servos to the layout? What is the process to control two servos on a crossover?
I've been looking at alternatives with Tam Valley Depot and they pretty expensive. If I used an OctIII to control 8 servos, it would cost $31 for the OctIII, $80 for the servos + mounts, and $40 for the fascia controllers. Plus another few bucks for servo extensions. Seems to be too expensive for me. I'd like to look at alternatives.
Thanks,
I did, a while back. It's now completely wrong, as I discovered trying to lay out a PCB for it, it was easier to change which pins I used for what input or output than trying to route lines around one another, so the curent code no longer matched the pin assignment.
But really all it's doing is servo.detach() after the servo reaches end of travel. I have a constant for minimum position and one for maximum position, the the move routing keeps moving the servo until the current position is at or less than the minimum or greater than or equal to the maximum.
rrinker My DIY Arduino based servo drivers for my new layout will have the same auto shutoff at end of travel so they don't buzz even if not totally aligned, as long as the servo get reach the programmed end position, power will then be cut off. Technically the signal gets cut off, but with no signal telling the servo to move to a certain position, it won't fight back against being moved slightly by the force of the piano wire. --Randy
My DIY Arduino based servo drivers for my new layout will have the same auto shutoff at end of travel so they don't buzz even if not totally aligned, as long as the servo get reach the programmed end position, power will then be cut off. Technically the signal gets cut off, but with no signal telling the servo to move to a certain position, it won't fight back against being moved slightly by the force of the piano wire.
Still cheaper than Tortoises - unless you rig a rather complex mechanical arrangement to use just one, but then you could do the same with a servo and save money there tooo.
The quieter modules aren;t strictly necessary - if you set up the travel when programming the Tam Valley controller, the servo shouldn't be stalled. Plus some of the newer versioons they have already have that built in to the controller. I used the older Singlets, the ones where the fascia controller was the whole circuit, and none of my servos buzzed after lining a turnout.
Thanks, this has been somewhat helpful (remember I'm a total newbie on this topic). My whole thought process on this was simple. I had read a post of Randy's where he talked about using Tam Valley components to control a turnout. Randy has helped me times and never steered me wrong so I thought, I ought to give this a try. I did some reading on the Tam Valley Depot website which gives some general direction but would benefit (IMO) with a practical example showing all the components needed for a simple single crossover and how everything goes together. They could convert me to a "true believer" but I need to have a practical example from A to Z for the simple before moving on the complex (controlling multiple crossovers, yard ladders, etc). Mel has given a good start. I prefer to start with Tam Valley based on Randy's recommendation that it is an easy system for beginners and essentially plug and play. $20 to $25 for the first crossover would not be cheap but would be awesome as a learning experience. Right now on my existing layout I use two caboose hobbies ground throws at each crossover and want to change!