You are on page 1of 12

Automation of Railway Models Part 1 - Sensors

Made by Steve_Massikker - Published in Arduino

Keep up to date with the latest Arduino projects, when you sign up for Hackster.
Get updates

open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
ABOUT THIS PROJECT

The first part of the instructions on automation. Sensors on rails and bundle cylinder neodymium
magnets on locomotives.
automate sensor

PROJECT INFO

Type Full instructions provided


Difficulty Easy
Published September 15, 2017

open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
License CC BY

443 13

Respect project I made one

Bookmark Share Give feedback

THINGS USED IN THIS PROJECT

Hardware components:

Arduino Nano R3 1

Hall sensor 2

open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Breadboard (generic) 1

Cylinder neodymium magnets 10

Jumper wires (generic) 1

Railroad signal 1

Software apps and online services:

Arduino IDE

STORY

This is an attempt to write universal instructions on the creation of automatic management railway
traffic. In this part, an simple example of signaling of a interlocking. The train turns on the red signal
when passing the traffic light, and returns the green signal as leaving the block section.

The same principle can be applied to the railway crossing for the movement of the gates and all that.

open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Hardware
I used Hall sensors as train detector triggers Read
on themore
line, known Arduino devices and URB block, but
you can use a breadboard.

SCHEMATICS

hall_simple_sheme_ctUnMPIGXr.png Download

open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
CODE

Simple interlocking Arduino

1 // ARDUINORAILMAKET.RU
2 // SimpleHall.ino
3 // 15.09.2017
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
// 15.09.2017
4 // Author: Steve Massikker
5
6 //// GPIO PINS ////
7
8 #define HALL_1 2
9 #define HALL_2 3
10 #define RED_SIGNAL 10
11 #define GREEN_SIGNAL 11
12
13 //// VARIABLES ////
14 boolean interlocking_state;
15
16 void setup() {
17
18 // Initialize GPIO
19 pinMode(HALL_1, INPUT);
20 pinMode(HALL_2, INPUT);
21 pinMode(RED_SIGNAL, OUTPUT);
22 pinMode(GREEN_SIGNAL, OUTPUT);
23
24 // On start or reset
25 interlocking_state = true; // Line free
26 digitalWrite(RED_SIGNAL, LOW);
27 digitalWrite(GREEN_SIGNAL, HIGH);
28

CREDITS

Steve_Massikker

open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Follow Contact

REPLICATIONS

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!
Give feedback

COMMENTS

Please log in or sign up to comment.

open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
SIMILAR PROJECTS YOU MIGHT LIKE

automate sensor arduino arduino ide arduino nano r3

Easy 152 6 Easy 346 7

Vintage Bench-Top DC Hybrid Voltmet LittleBot Simple Arduino Robot


Shahariar Slant Concepts

open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Easy 117 3 Easy 665 4

Innovation Lab #18 Shift Register_LED Program ESP8266 ESP-01 with Arduino
3 members Harsh Mangukiya

Easy 33 1 Easy 453 7

open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
Binary Clock with Arduino and Plywood Moisty v2 - a Plant Moisture Sensor
Kalle Wallin Mitch K

More cool stuff Legal thingies About us


Community members Terms of Service Hackster's story
Other community hubs Code of Conduct Our kickass blog
Free Store Privacy Policy Our 2016 Maker Survey
Hardware Weekend Hackster for Business
Hacker spaces Support Center
Developer API
Sitemap
We're fairly social people Hackster.io 2017
Facebook
Instagram
Twitter
YouTube
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
YouTube

open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com

You might also like