Search results

ModelRailroadForums.com is a free Model Railroad Discussion Forum and photo gallery. We cover all scales and sizes of model railroads. Whether you're a master model railroader or just getting started, you'll find something of interest here.


  1. R

    Fun with Arduino - a Series of Introductory Videos

    I can't imagine the ultrasonic detector to be accurate enough, or be able to measure train distance at all when facing the nose. I don't know what software you use to control your layout, but usually control software already have built in options to decide allowed tracks based on train lengths...
  2. R

    Fun with Arduino - a Series of Introductory Videos

    Fun with Arduino 41 Real Time Clock DS1307 The station platform clock of the previous video runs, but it shows a random time. We can add a Real Time Clock module to have it show the current time. Several versions of Real Time Clock modules are available. This video is about the DS1307 RTC...
  3. R

    Hantek 6022BE Oscilloscope Software Overview

    Hscope for Android - Hantek 6022BE For those who are interested ... a video about the Hscope for Android app that can be used together with the Hantek 6022BE USB scope module, and with many other hardware modules. Link to Hscope for Android - Hantek 6022BE
  4. R

    Fun with Arduino - a Series of Introductory Videos

    Fun with Arduino 40 - Station Platform Departure Display with Analog Clock In the previous video we attached an OLED and we saw how to display a text and some lines. In this video we take this a step further, we'll make a station platform train departure sign with a working analog clock. Via...
  5. R

    Hantek 6022BE Oscilloscope Software Overview

    An oscilloscope is an invaluable tool to any electronics hobbyist. They can be had from a bit over $200 up to multiple thousands, dependent on specifications whereby max measurable frequency is an importand price factor. If you don't need to measure frequencies over 20 MHz a portable USB scope...
  6. R

    Fun with Arduino - a Series of Introductory Videos

    Fun with Arduino 39 - OLED display SSD1306 We're going to add an OLED display to the ultrasonic distance measurement of the previous video. Together with a battery it now becomes a fully handheld portable device. This is just for fun, the actual purpose is to introduce the OLED display ... once...
  7. R

    Fun with Arduino - a Series of Introductory Videos

    Fun with Arduino 38 - Ultrasonic Distance Measurement with HC-SR04 The HC-SR04 is a sensor that has a little loudspeaker and a little microphone via which the distance to an object can be measured. It's ultrasonic, humans can not hear it. Don't expect super high accuracy of this less than $1,-...
  8. R

    USB Configurable 16 Channel Arduino DCC Servo & Accessory Decoder

    ArCoMoRa 5 - Servo with Additional Output Ports to Switch Electrofrog MARDEC software has the option to switch 1 or 2 ports in sync with operating a servo. The main application for this is to switch polarity of electrofrog turnouts. The video shows how to configure the one or two extra...
  9. R

    USB Configurable 16 Channel Arduino DCC Servo & Accessory Decoder

    ArCoMoRa 4 - DCCnext - Configure and Tune Servos We're going to attach a servo to the DCCnext or Arduino and configure the MARDEC software to control this servo. To make the application work the first thing to do is tune the 2 servo angles for the DCC ON and OFF state. Maybe we also have to...
  10. R

    USB Configurable 16 Channel Arduino DCC Servo & Accessory Decoder

    ArCoMoRa 3 - Double Port Accessories MARDEC software has the option to switch 2 ports via 1 DCC address. A 'double flash' comes in very handy when for instance we have 2 inverse blinking lights, like with a railway crossing, A 'double one shot' is used to switch a solenoid turnout that has...
  11. R

    USB Configurable 16 Channel Arduino DCC Servo & Accessory Decoder

    ArCoMoRa MARDEC - Configure an output port to swith an accessory on/off. Now that the MARDEC sketch is uploaded to a DCCnext or to an Arduino, we can start to configure the 16 available ports. In this video we are going to configure port 1 to become a standard on / off accessory signal that we...
  12. R

    Fun with Arduino - a Series of Introductory Videos

    Fun with Arduino 37 Control a NEMA 17 Stepper Motor with Easy Driver Several driver circuits are available to control a more powerful stepper motor like a NEMA 17. In this video the EasyDriver is used, but the software is applicable to any driver with Enable, Direction and Step inputs. Link to...
  13. R

    USB Configurable 16 Channel Arduino DCC Servo & Accessory Decoder

    Part 1 - Download & Install Windows Software Model railroad hobbyist friend Nico Teering took the Arduino DCC decoder software to a whole new level. A wealth of functions are combined all into one Arduino sketch for multi-purpose DCC control of 16 pins. In a joint effort with Sergey...
  14. R

    Fun with Arduino - a Series of Introductory Videos

    Fun with Arduino 36 Store Data in Non Volatile Memory EEPROM Because a stepper motor does not know where it is after startup, we need a way to find out where it is. We used a zero find routine to rotate the motor until a sensor is triggered. But suppose we were able to store the last position...
  15. R

    Fun with Arduino - a Series of Introductory Videos

    Fun with Arduino 35 Turn Table Control with a Stepper Motor Now that we can find the zero switch or -sensor, and we know how to position our application by rotating an exact number of steps, we have all ingredients to build say a turn table, or a translating table or an elevator. We use a...
  16. R

    Fun with Arduino - a Series of Introductory Videos

    Fun with Arduino 34 Rotate an Exact Number of Steps Now that we can find the zero switch or -sensor, we can start to position our application by rotating the motor an exact number of steps. No matter if the motor has to make 97 steps or maybe 144668 ... as long as the motor torque and the...
  17. R

    Fun with Arduino - a Series of Introductory Videos

    Fun with Arduino 33 Find Zero Switch or Sensor A stepper motor does not know where it is after power up. If we want to use a stepper for accurate positioning, we first have to define its ‘zero’ point. This can be done by slowly rotating the motor until a sensor or a micro switch is activated...
  18. R

    Fun with Arduino - a Series of Introductory Videos

    Fun with Arduino 32 Stepper Motor Change Direction and Control Speed In the previous video we made the stepper motor run. In this video we'll add 2 functions: change direction and control speed. Link to Fun with Arduino 32 Stepper Motor Change Direction and Control Speed
  19. R

    Fun with Arduino - a Series of Introductory Videos

    Fun with Arduino 31 Stepper Motor with 4 Pulse Driver With some applications a stepper motor is prefered over a servo. For instance for the continuous rotation of say a wind mill model. Or with applications like a turn table, a linear shift table or an elevator, a stepper motor can be of great...
  20. R

    Fun with Arduino - a Series of Introductory Videos

    Fun with Arduino 30 DCC Servo Decoder Based on the code for the DCC Accessory Decoder we can create a Servo Decoder. All we have to do is add a couple lines of code to toggle the setpoint of the servo, based on the DCC status, and add the code to rotate the servos based on a millis() timer...




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


ModelRailroadForums.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com

RailroadBookstore.com - An online railroad bookstore featuring a curated selection of new and used railroad books. Railroad pictorials, railroad history, steam locomotives, passenger trains, modern railroading. Hundreds of titles available, most at discount prices! We also have a video and children's book section.

ModelRailroadBookstore.com - An online model railroad bookstore featuring a curated selection of new and used books. Layout design, track plans, scenery and structure building, wiring, DCC, Tinplate, Toy Trains, Price Guides and more.

Top