Close
0%
0%

Level crossing

This project was carried out with the objective of designing a level crossing using servomotors and an Arduino. We used

Similar projects worth following
The principle is simple: when a train approaches, the barriers are opened manually, then close again after the train has passed. The whole system is controlled by an Arduino, with mechanical parts either 3D-printed or laser-cut. We also had to sand the 3D-printed plastic to ensure the rack slides smoothly within the base.

Fabrication
Laser cutting: All wooden parts (box, base, support) were cut using a laser cutter.

Servo mounting: The servomotors were screwed onto the base and mechanically connected to the racks.

Arduino box: We designed a closed wooden box (assembled without glue) to house the Arduino.

Wiring: The servos are connected to the Arduino through wires passing through a hole in

IMG_1728.JPG

JPEG Image - 331.82 kB - 05/26/2025 at 18:04

Preview

  • 1 × Arduino uno board
  • 2 × Servomotors
  • 1 × Breadboard + jumper wires
  • 1 × Wooden base plate
  • 1 × Laser-cut wooden box

View all 7 components

  • level crossing

    ron.chemla05/27/2025 at 12:19 0 comments

    Step 1: Project Definition

    • Theme selection: creation of an automated level crossing.

    • Objective definition: raising and lowering barriers using servomotors controlled by an Arduino.

    Step 2: Mechanical Design

    • Design of mechanical parts (barriers, racks, Arduino box, support).

    • 3D modeling of gears and racks.

    • Preparation of files for 3D printing and laser cutting.

    Step 3: Fabrication

    • Laser cutting of wooden parts: base, box, supports.

    • 3D printing of gears and rack mechanisms.

    • Sanding of the printed parts to ensure the rack slides smoothly in its base.

    Step 4: Assembly

    • Mounting the servomotors to the base.

    • Assembling the rack and pinion mechanisms.

    • Assembling the Arduino box using interlocking parts (without glue).

    • Inserting the Arduino into the wooden box.

    Step 5: Wiring

    • Connecting the servomotors to the Arduino using a breadboard and jumper wires.

    • Neatly routing the cables through a hole in the box.

    Step 6: Programming

    • Writing a simple Arduino code to control the servos (from 0° to 180°).

    • Manual simulation of a train detection: opening/closing the barriers via code.

    Step 7: Testing and Adjustments

    • Testing the sliding mechanism of the racks.

    • Adjusting the servo angles to achieve smooth movement.

    • Verifying the overall stability of the complete system.

View project log

Enjoy this project?

Share

Discussions

Does this project spark your interest?

Become a member to follow this project and never miss any updates