Professional Documents
Culture Documents
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
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
License CC BY
443 13
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
Railroad signal 1
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
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
I made one
Love this project? Think it could be improved? Tell us what you think!
Give feedback
COMMENTS
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com
SIMILAR PROJECTS YOU MIGHT LIKE
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
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
open in browser PRO version Are you a developer? Try out the HTML to PDF API pdfcrowd.com