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.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.