I have been working on the video on how to build a DCC stationery decoder (based on Myna bay serial monitor) which uses Ardunio and Motor shield. Interested folks can follow this thread for updates.
Hi Guys, Here is my first ever Youtube upload on MRR. I tried to switch KATO turnouts with my DIY DCC Decoder which has predefined DCC Address (based on Myna Bay) What I am planning next? 1. Full fledged decoder (hopefully) that can be programmable and store addresses & state 2. Use Relay switch instead of Motor sheild Link for Ardunio Sketch: https://drive.google.com/open?id=1z9kBEcvdRjFvneZ1Ylml1ISS3som04Vb Link for DCC library I am using: https://github.com/MynaBay/DCC_Decoder This library needs to be included (copied) to Arduino libraries folder
Hi Mani, That looks great. I would like nothing better than to replace the DS64 for future expansion. The hardware you are using costs far less. How many turnouts can be controlled with the motor shield?
Hi, Currently I am using 2 channel motorshield so we can control 2. With Adafruit shield we can control 4. I will give a try controlling 2 turnouts and update how that goes. Sent from my GM1901 using Tapatalk
Just tested with Channel 2 successfully. So a 2 channel Motor shield can turn 2 Kato turnouts !! Here is the updated sketch. There are only 2 changes. 1. NO OF TURNOUTS (Count is now 2) 2. Add entries in setup() Sketch Link: https://drive.google.com/file/d/1QSM8daxgIKwc7BKpiBSxFRLxVQQBfX8w/view?usp=sharing
To use Adafruit Motoshield, I need to include library (as we cannot talk to pins directly). So, Some code level changes required. Once it is in place we can control 4 turnouts.
Hey Guys, I have uploaded the code for Adafruit Motor shield which can control upto 4 Kato Turnouts here: https://drive.google.com/file/d/1YRJkpQdOMxQEF84osrX2qyMGqgfCf8JR/view?usp=sharing You will need to include the Adafruit library and can be downloaded from here: https://github.com/adafruit/Adafruit-Motor-Shield-library Thanks
FYI, With this we can control more than 16 turnouts: https://learn.adafruit.com/16-channel-pwm-servo-driver Sent from my GM1901 using Tapatalk
My Arduino with Adafruit DCC Turnout system. Currently controlling 2turnouts + 1 cross over.. On left is 12v to 5v stepdown converter. center is Double relay switch circuit. Right is UNO with Adafruit motorshield. Top right optoisolator circuit. Bottom is connection to 12v 3amp power supply. Crossover is getting power from relay as it needs more power to turn all four tunouts. Remaining two turnouts connections are directly from the motorshield. Sent from my GM1901 using Tapatalk
Hi Mani, Thanks for sharing this thread! Have you tried that 16-channel AdaFruit interface you referenced? Best regards, -Chris.
And ofcourse the code needs to be changed a bit as it is servo motor driver.. Sent from my GM1901 using Tapatalk