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)

No comments:

Post a Comment