Total Pageviews

Thursday, February 24, 2022

Automatic Railway Crossing system

original article



   `A schematic for an automatic railway crossing system:

I wrote a sketch for control 2 servos, warning ligts and sounds: doublebarriers_5.ino. As any Arduino fans knows, sounds and servo (using Tone and Servo libraries) not work simultanieous, but I used a trick, I activate servo when I want movements, deactivate the servo when I need sounds.

   When any IR sensor modules is actuated (LOW level) servos close the gates, red leds flash and speaker sound as in video double barriers with sound and lights (4)
    When railway is free gates are open, white led flashing.

   As I presened in previous post, Dragos (albasete) test sketch for real diorama, so:
  - barriers:
- warnings (sounds)

Railway Crossing system with manual control

original article



   I'm beginner as railways diorama, but I want to help the passionate peoples.

   First project with railway crossing system was for a manual control. 

   System control 2 servos with warning lights and sounds.

   Test schematic is

and program (sketch) is doublebarriers_3a7.ino.
    Real system created by my is on breadboard:
but Dragos (albasete) work more professional:

   I uploaded a short video named double barriers with sound and lights