Comments on: Controlling your trains with an Arduino https://modelrail.otenko.com/arduino/controlling-your-trains-with-an-arduino Trains, computers, vintage, retro, model railways... the lot... Thu, 21 May 2020 00:28:47 +0000 hourly 1 https://wordpress.org/?v=6.4.3 By: TimH https://modelrail.otenko.com/arduino/controlling-your-trains-with-an-arduino/comment-page-1#comment-45394 Thu, 21 May 2020 00:28:47 +0000 http://modelrail.otenko.com/?p=486#comment-45394 Check this out. https://www.arduinorailwaycontrol.com/

]]>
By: stevenh https://modelrail.otenko.com/arduino/controlling-your-trains-with-an-arduino/comment-page-1#comment-42997 Fri, 02 Aug 2019 01:33:13 +0000 http://modelrail.otenko.com/?p=486#comment-42997 In reply to Kadirisan.

Kadirisan,
This really depends which Mega you have!
The latest Mega at Arduino is here: https://store.arduino.cc/usa/mega-2560-r3
The documentation suggests:
PWM Pins: 2 to 13 and 44, 45, 46.
Hope this helps.

]]>
By: Kadirisan https://modelrail.otenko.com/arduino/controlling-your-trains-with-an-arduino/comment-page-1#comment-42993 Thu, 01 Aug 2019 15:00:58 +0000 http://modelrail.otenko.com/?p=486#comment-42993 Hi,this project just for me,pls.can you show me which pin to Mega
Because I dont found PWM1,PWM2,PWM3
whic number will be on arduino
I saw on picture some it is like 51,50,
can you showme pls
best Regards
Kadirisan

]]>
By: stevenh https://modelrail.otenko.com/arduino/controlling-your-trains-with-an-arduino/comment-page-1#comment-42896 Sun, 14 Jul 2019 23:06:32 +0000 http://modelrail.otenko.com/?p=486#comment-42896 In reply to Paul Hooper.

Paul,
It sounds like your PWM cycle frequency could be too low?
Can you share the code/sketch? Or just the parts where you set up the shield?
Steven.

]]>
By: Paul Hooper https://modelrail.otenko.com/arduino/controlling-your-trains-with-an-arduino/comment-page-1#comment-42884 Sat, 13 Jul 2019 10:53:46 +0000 http://modelrail.otenko.com/?p=486#comment-42884 Hi, I am using an L298 shield with a UNO to control 12v DC layout. Reason being, i want the Arduino to know speed & diirection of locos (coupled with IRDOT sensors for location) to make other stuff happen on the layout.
Big problem is the motor noise…. it whines loudly regardless of speed setting and i notice both LEDs on the L298 output are lit? If I replace the loco with a 5w lamp, only 1 led lights at a time depending on direction selected. Anyone got any ideas? Thanks.

]]>
By: stevenh https://modelrail.otenko.com/arduino/controlling-your-trains-with-an-arduino/comment-page-1#comment-41790 Thu, 07 Feb 2019 22:01:20 +0000 http://modelrail.otenko.com/?p=486#comment-41790 In reply to Kim.

AtMega may be a little large? But I’ve just had a quick search and you’ll find many examples for creating an actual decoder: https://www.google.com/search?q=atmega+dcc+decoder

]]>
By: Kim https://modelrail.otenko.com/arduino/controlling-your-trains-with-an-arduino/comment-page-1#comment-41789 Thu, 07 Feb 2019 20:05:57 +0000 http://modelrail.otenko.com/?p=486#comment-41789 Is there a way to make a Loco Decoder, out of an AtMega chip, for loco control?

]]>
By: InfraRed + Arduino revisited « modelrail.otenko https://modelrail.otenko.com/arduino/controlling-your-trains-with-an-arduino/comment-page-1#comment-40750 Tue, 17 Jul 2018 04:38:47 +0000 http://modelrail.otenko.com/?p=486#comment-40750 […] from the wall. The final testing code is listed next. Note that this also contains my multiplexer, thottle and also an off-the-shelf LCD for which you can find tutorials […]

]]>
By: Marcos https://modelrail.otenko.com/arduino/controlling-your-trains-with-an-arduino/comment-page-1#comment-40117 Mon, 05 Mar 2018 23:01:16 +0000 http://modelrail.otenko.com/?p=486#comment-40117 In reply to stevenh.

Arduino UNO.
tks

]]>
By: stevenh https://modelrail.otenko.com/arduino/controlling-your-trains-with-an-arduino/comment-page-1#comment-40086 Wed, 28 Feb 2018 01:45:05 +0000 http://modelrail.otenko.com/?p=486#comment-40086 In reply to Marcos.

Sure, which Arduino are you using?

]]>