Search results

ModelRailroadForums.com is a free Model Railroad Discussion Forum and photo gallery. We cover all scales and sizes of model railroads. Online since 2002, it's one of the oldest and largest model railroad forums on the web. Whether you're a master model railroader or just getting started, you'll find something of interest here.


  1. Rabman

    Arduino Mega with Servo Shield for Turnouts

    I could not attached the Sketch as the size was too large. Here is a Google Drive link to the sketch: https://drive.google.com/open?id=1WpPfQt924PaQcwXtcA-7WTpZFB8yaZ7a Sorry about that!
  2. Rabman

    Arduino Mega with Servo Shield for Turnouts

    Attached is the sketch I have put together. I have enhanced the code to have the servos now go at a reduced speed. More prototypical. Also, I turn off the servos after the movement to eliminate buzzing servos. What I have learned is and is readily apparent by the variables is that I didn’t...
  3. Rabman

    Arduino Mega with Servo Shield for Turnouts

    The servos stay where you left them.
  4. Rabman

    Arduino Mega with Servo Shield for Turnouts

    The 16 Channel board I am using a 9865 chip on it but in the form of a shield. Facilitates easier installation. I think you can daisy chain over 60 boards. But I would go without a shield if I needed more than 16, because the outputs of the servos come from the top of the shield so stacking...
  5. Rabman

    Arduino Mega with Servo Shield for Turnouts

    I don’t think they do. I haven’t got enough installed to notice yet. I will let you know. I will post the sketch when I clean it up a little and have the servos installed to make sure it’s fully functional with respect to the amount of travel needed.
  6. Rabman

    Arduino ideas, and help

    See my other thread for more info on the turnouts. http://www.modelrailroadforums.com/forum/index.php?threads/arduino-mega-with-servo-shield-for-turnouts.30610/
  7. Rabman

    Layout for son and dad

    Take a look at my other thread for the electronic side of the turnouts. http://www.modelrailroadforums.com/forum/index.php?threads/arduino-mega-with-servo-shield-for-turnouts.30610/
  8. Rabman

    Arduino Mega with Servo Shield for Turnouts

    I have put together an Arduino Mega 2560 with a 16 channel x 12 bit Servo PWM shield to power my 12 Turnouts which include a double slip turnout and a 3-Way turnout. I am nearing the completion of the control box. I am using one momentary push button switch per turnout and 3 switches for the...
  9. Rabman

    Arduino ideas, and help

    Here is mine. https://www.amazon.ca/gp/aw/d/B01M9CHF1J/ref=ya_st_dp_summary?ie=UTF8&psc=1
  10. Rabman

    Arduino ideas, and help

    Here is the code that will operate 16 turnouts. I tried operating 3 servos with it so far and it works. Enhancements I need to make are: 1 - put the last servo position in eeprom memory so it doesn’t get lost when you reset or power down. 2 - put a programming mode for controlling the limits...
  11. Rabman

    Arduino ideas, and help

    http://www.modelrailroadforums.com/forum/index.php?threads/layout-for-son-and-dad.30389/page-8 See this post for my Arduino progress.
  12. Rabman

    Arduino ideas, and help

    I just got my stash of electronics in the mail a few days ago. I think I bought a little larger starter set. Plus I bought two Arduino Mega 2560s, 20 SG-90 servos, 16 channel servo shield and a motor shield. All in for less than the price of a Digitrax Zephyr. All this should power my 12...
  13. Rabman

    Arduino ideas, and help

    I wish I had a setup like that!
  14. Rabman

    Layout for son and dad

    I have done a proof of concept driving servos with an Arduino and 16 Servo driver board. I wrote the rough program to toggle the servos at the push of a button. Hooked up three servos of the 14 I will need for the layout. Not pretty at the moment. I need to revise the program some more and...
  15. Rabman

    Layout for son and dad

    Well the railway has It’s first building. The locomotives can now get repaired. Temporarily set in place.
  16. Rabman

    Layout for son and dad

    Thanks for the tip. I was actually using finishing nails pushed in the foam instead of foam pins prior to gluing the track down when I wanted to check alignment. I don’t think they will reach the plywood beneath the foam. My repair is working, no derailments since. A strategically placed nail...
  17. Rabman

    Arduino ideas, and help

    I am not aware of the capabilities of the 12C serial port. Being a serial port, as long as what is on the other end, it should be able to talk to each other similar to USB. I bought a motor shield to drive to servos through the 12C port...
  18. Rabman

    Layout for son and dad

    From what I have read that should be pretty straightforward.
  19. Rabman

    Arduino ideas, and help

    You may wish to wish to increment the position the Servo moves too in a control loop, with a delays. Increase the delay to slow it down. For example:
  20. Rabman

    Arduino ideas, and help

    This is not the case unless you full integrate all the controls into the Arduino. You need JMRI to select locos, interface with the DCC decoders on the Locomotives. The Arduino DCC++ does not have all the CV coding in it directly, it just passes through what JMRI tells it. To run JMRI you need a...




Affiliate Disclosure: We may receive a commision from some of the links and ads shown on this website (Learn More Here)

Back
Top