{"id":479,"date":"2021-03-21T15:34:33","date_gmt":"2021-03-21T15:34:33","guid":{"rendered":"https:\/\/starthardware.org\/en\/?p=479"},"modified":"2021-03-23T01:01:47","modified_gmt":"2021-03-23T01:01:47","slug":"raylfx-traffic-light-module","status":"publish","type":"post","link":"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/","title":{"rendered":"RaylFX \u2013 Traffic Light Module"},"content":{"rendered":"\n<p>This module of the <a href=\"https:\/\/starthardware.org\/en\/raylfx-effects-for-model-railroads-and-model-making-with-arduino-nano\/\" target=\"_blank\" rel=\"noreferrer noopener\">RaylFX system<\/a> operates a traffic light system with two driving directions and pedestrian lights. In addition, there is street lighting and an optional night shutdown.<\/p>\n\n\n\n<figure class=\"wp-block-embed aligncenter is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"sp-dsgvo sp-dsgvo-embedding-container sp-dsgvo-embedding-youtube \"><div class=\"sp-dsgvo-blocked-embedding-placeholder sp-dsgvo-blocked-embedding-placeholder-youtube\">  <div class=\"sp-dsgvo-blocked-embedding-placeholder-header\"><img decoding=\"async\" class=\"sp-dsgvo-blocked-embedding-placeholder-header-icon\" src=\"https:\/\/starthardware.org\/en\/wp-content\/plugins\/shapepress-dsgvo\/public\/images\/embeddings\/icon-youtube.svg\"\/>We need your consent to load the content of YouTube.<\/div>  <div class=\"sp-dsgvo-blocked-embedding-placeholder-body\"><p>If you click on this video we will play the video, load scripts on your device, store cookies and collect personal data. This enables [Google Ireland Limited, Irland] to track activities on the Internet and to display advertising in a target group-oriented manner. There is a data transfer to the USA, which does not have EU-compliant data protection. You will find further information <a target=\"_blank\" href=\"#\" class=\"sp-dsgvo-navigate-privacy-policy\">here<\/a>.<\/p>   <div class=\"sp-dsgvo-blocked-embedding-button-container\"> <a href=\"#\" class=\"sp-dsgvo-direct-enable-popup sp-dsgvo-blocked-embedding-button-enable\" data-slug=\"youtube\">Click here to enable this content.<\/a><\/div>  <\/div><\/div><div class=\"sp-dsgvo-hidden-embedding-content sp-dsgvo-hidden-embedding-content-youtube\" data-sp-dsgvo-embedding-slug=\"youtube\">Jmx0O2RpdiBjbGFzcz0mcXVvdDtudi1pZnJhbWUtZW1iZWQmcXVvdDsmZ3Q7Jmx0O2lmcmFtZSB0aXRsZT0mcXVvdDtSYWlsRlggQW1wZWxhbmxhZ2UgJm5kYXNoOyBFZmZla3RlIGYmdXVtbDtyIE1vZGVsbGJhaG4gdW5kIE1vZGVsbGJhdSBtaXQgQXJkdWlubyZxdW90OyB3aWR0aD0mcXVvdDsxMjAwJnF1b3Q7IGhlaWdodD0mcXVvdDs2NzUmcXVvdDsgc3JjPSZxdW90O2h0dHBzOi8vd3d3LnlvdXR1YmUuY29tL2VtYmVkL3FJbWVvMHY2MTZFP2ZlYXR1cmU9b2VtYmVkJnF1b3Q7IGZyYW1lYm9yZGVyPSZxdW90OzAmcXVvdDsgYWxsb3c9JnF1b3Q7YWNjZWxlcm9tZXRlcjsgYXV0b3BsYXk7IGNsaXBib2FyZC13cml0ZTsgZW5jcnlwdGVkLW1lZGlhOyBneXJvc2NvcGU7IHBpY3R1cmUtaW4tcGljdHVyZSZxdW90OyBhbGxvd2Z1bGxzY3JlZW4mZ3Q7Jmx0Oy9pZnJhbWUmZ3Q7Jmx0Oy9kaXYmZ3Q7<\/div><\/div>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Wiring Diagram<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/raylfx-traffic-light-arduino-nano-circuit-diagram-1024x448-1.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"448\" src=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/raylfx-traffic-light-arduino-nano-circuit-diagram-1024x448-1.jpg\" alt=\"RaylFX traffic light module wiring diagram for model railroad\" class=\"wp-image-484\" srcset=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/raylfx-traffic-light-arduino-nano-circuit-diagram-1024x448-1.jpg 1024w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/raylfx-traffic-light-arduino-nano-circuit-diagram-1024x448-1-300x131.jpg 300w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/raylfx-traffic-light-arduino-nano-circuit-diagram-1024x448-1-768x336.jpg 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>This module also works with an Arduino Nano. The LEDs for the traffic lights are connected to the digital channels 2 &#8211; 11. Each channel can supply up to 40mA. Since you need several single traffic lights for a traffic light system, you can extend the circuit by parallel connected LEDs. However, the brightness of the individual LEDs is reduced. At A2 and A3 the street lighting is operated. They are operated as digital outputs (D16, D17) and switch on controlled by the control module at night. The green cable on the left (SCL) is redundant &#8211; sorry.<\/p>\n\n\n\n<p>Attention: The control signal of the <a href=\"https:\/\/starthardware.org\/en\/raylfx-effects-for-model-railroads-and-model-making-with-arduino-nano\/\" target=\"_blank\" rel=\"noreferrer noopener\">RaylFX control module<\/a> is applied to pin A4. It controls the time of day and is mandatory.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Code Settings<\/h2>\n\n\n\n<p>Several settings can be made in the code. The variable myAddress must be adapted to the system. This address may only occur once in the entire system (i.e. in all modules). The variable waitingTimes stores the duration of the individual color phases of the traffic light system. The variable nightShutdown can be set to true or false. If true, the traffic lights are switched off at night and flash yellow. With false this does not happen.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>long waitingTimes&#091;10] = {5000, 2000, 500, 2000, 500, 5000, 2000, 500, 2000, 500}; \/\/ waiting times of the traffic light phases\nboolean nightShutdown = true;         \/\/ true = traffic light switches off at night (yellow flashing), false = traffic light does not switch off<\/code><\/pre>\n\n\n\n<p>When uploading you have to make sure that the correct board is selected in the Arduino menu. To do this, &#8220;ATmega328P (Old Bootlaoder)&#8221; must also be selected in the Processor subitem of the Tools menu.<\/p>\n\n\n\n<p>The following program code can be easily copied with the above mentioned changes and loaded onto the Arduino nano.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Code for the RaylFX Traffic Light Module<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>\/*\n     Rayl-FX Traffic Light Module\n     StartHardware.org\/en\n*\/\n\n\/* ***** ***** Settings ***** ***** ***** *****  ***** ***** ***** *****  ***** ***** ***** ***** *\/\n\nlong waitingTimes&#091;10] = {5000, 2000, 500, 2000, 500, 5000, 2000, 500, 2000, 500}; \/\/ waiting times of the traffic light phases\nboolean nightShutdown = true;         \/\/ true = traffic light switches off at night (yellow flashing), false = traffic light does not switch off\n\n\/* ***** ***** From here begins the program code, which does not need to be adjusted ***** ***** ***** ***** *\/\n\nint streetLampsPin1 = 16;              \/\/ this pin connects to the street lamps\nint streetLampsPin2 = 17;              \/\/ this pin connects to more street lamps\n\nint ledPins&#091;10] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11};\n\nint trafficLightPhases&#091;12]&#091;10] = {\n  {1, 0, 0, 0, 1, 0, 0, 1, 1, 0},  \/\/ state 0\n  {1, 0, 0, 1, 0, 0, 0, 1, 1, 0},  \/\/ state 1\n  {1, 0, 0, 1, 0, 0, 1, 0, 1, 0},  \/\/ state 2\n  {1, 0, 0, 1, 0, 1, 0, 0, 1, 0},  \/\/ state 3\n  {1, 1, 0, 1, 0, 1, 0, 0, 1, 0},  \/\/ state 4\n  {0, 0, 1, 1, 0, 1, 0, 0, 0, 1},  \/\/ state 5\n  {0, 0, 1, 1, 0, 1, 0, 0, 1, 0},  \/\/ state 6\n  {0, 1, 0, 1, 0, 1, 0, 0, 1, 0},  \/\/ state 7\n  {1, 0, 0, 1, 0, 1, 0, 0, 1, 0},  \/\/ state 8\n  {1, 0, 0, 1, 0, 1, 1, 0, 1, 0},  \/\/ state 9\n  {0, 1, 0, 0, 0, 0, 1, 0, 0, 0},  \/\/ state 10 \/\/ flash\n  {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}   \/\/ state 11 \/\/ flash\n};\n\n\/* Memory Variables *\/\nint streetLampsBrightness = 0;        \/\/ stores how bright the street lamps shine\n\n\/* Timer Variables *\/\nlong streetLampsTimer = 0;            \/\/ Timer of the street lamps\nlong trafficLightTimer = 0;\nlong trafficLightTimeout = 0;\n\n\/* State Variables *\/\nint trafficLightState = 0;\n\nString stateName;\n\n\/* *\/\n\n\/* Variables from the control module to determine the time *\/\nboolean receive = false;\nboolean receiveStarted = false;\nint receiveTimeout = 10;\nlong receiveTimer = 0;\nint receivedTime = 0;\nint receivePulse = 0;\nint lastReceivePulse = 0;\nint receivePin = 18;\nint myTime = 0;\n\n#define PAYLOAD_SIZE 2                   \/\/ mandatory for communication with master-module\nint timeOfDay  = 0;                         \/\/ stores timeOfDay of master-module (0 and 255)\nbyte nodePayload&#091;PAYLOAD_SIZE];          \/\/ temporarily stores data of master-module\n\nvoid setup() {\n  Serial.begin(115200);                  \/\/ starts the serial communication\n  pinMode(receivePin, INPUT);            \/\/ receiving pin from control-module\n  for (int i = 0; i &lt; 10; i++) {\n    pinMode(ledPins&#091;i], OUTPUT);\n  }\n  pinMode(streetLampsPin1, OUTPUT);\n  pinMode(streetLampsPin2, OUTPUT);\n  streetLampsOff();\n}\n\nvoid loop() {\n  receiveFunction();                \/\/ execute instructions for reception\n  if (receiveStarted == false) {    \/\/ If no data is currently being received:\n    \n    if (myTime &gt; 22) {              \/\/ ***** late evening *****\n      streetLampsOn();           \/\/ street lamps on\n      showTrafficLightPhase();            \/\/ traffic light on\n      \n    } else if (myTime &gt; 18) {       \/\/ ***** evening *****\n      streetLampsOn();           \/\/ street lamps on\n      showTrafficLightPhase();            \/\/ traffic light on\n\n    } else if (myTime &gt; 12) {       \/\/ ***** noon *****\n      streetLampsOff();          \/\/ street lamps off\n      showTrafficLightPhase();            \/\/ traffic light on\n\n    } else if (myTime &gt; 9) {        \/\/ ***** forenoon *****\n      streetLampsOff();          \/\/ street lamps off\n      showTrafficLightPhase();            \/\/ traffic light on\n\n    } else if (myTime &gt; 7) {        \/\/ ***** morning *****\n      streetLampsOn();           \/\/ street lamps on\n      showTrafficLightPhase();            \/\/ traffic light on\n\n    } else {                        \/\/ ***** night *****\n      streetLampsOn();           \/\/ street lamps on\n      if (nightShutdown == true) {\n        showTrafficLightOff();            \/\/ traffic light off\n        trafficLightTimer = millis();      \/\/ resetting the traffic light timer for the next phase\n        trafficLightState = 3;             \/\/ resetting the traffic light state\n      } else {\n        showTrafficLightPhase();          \/\/ traffic light on\n      }\n    }\n  }\n}\n\nvoid streetLampsOn() {\n  digitalWrite(streetLampsPin1, LOW);\n  digitalWrite(streetLampsPin2, LOW);\n}\n\nvoid streetLampsOff() {\n  digitalWrite(streetLampsPin1, HIGH);\n  digitalWrite(streetLampsPin2, HIGH);\n}\n\nvoid showTrafficLightPhase() {\n  if (trafficLightTimer + trafficLightTimeout &lt; millis()) {\n    trafficLightTimer = millis();\n    trafficLightState++;\n    if (trafficLightState &gt;= 10) trafficLightState = 0;\n    trafficLightTimeout = waitingTimes&#091;trafficLightState];\n    showTrafficLightPhase();\n  }\n\n  for (int i = 0; i &lt; 10; i++) {\n    if (trafficLightPhases&#091;trafficLightState]&#091;i] == 1) {\n      digitalWrite(ledPins&#091;i], LOW);\n    } else {\n      digitalWrite(ledPins&#091;i], HIGH);\n    }\n  }\n}\n\nvoid showTrafficLightOff() {\n  \/\/ Flashing function for switched off traffic light\n  if (millis() % 2000 &gt; 1000) {\n    for (int i = 0; i &lt; 10; i++) {\n      if (trafficLightPhases&#091;11]&#091;i] == 1) {\n        digitalWrite(ledPins&#091;i], LOW);\n      } else {\n        digitalWrite(ledPins&#091;i], HIGH);\n      }\n    }\n  } else {\n    for (int i = 0; i &lt; 10; i++) {\n      if (trafficLightPhases&#091;10]&#091;i] == 1) {\n        digitalWrite(ledPins&#091;i], LOW);\n      } else {\n        digitalWrite(ledPins&#091;i], HIGH);\n      }\n    }\n  }\n}\n\nvoid receiveFunction() {                      \/\/ receives time of day from control-module\n  receivePulse = digitalRead(receivePin);     \/\/ read out the receive pin\n  \n  if ((receiveTimer + receiveTimeout &lt; millis()) &amp;&amp; (receiveStarted == true)) {\n    \/\/ on timeout and active reception\n    receiveStarted = false;                   \/\/ end active reception\n    myTime = receivedTime - 1;                \/\/ store received time\n    receivedTime = 0;                         \/\/ reset the auxiliary variable for time reception\n    Serial.println(myTime);                   \/\/ serial output\n  }\n  \/\/ if a pulse is detected at the receive pin that was not there before\n  if ((receivePulse == 0) &amp;&amp; (lastReceivePulse == 1)) {\n    receiveTimer = millis();                  \/\/ restart timer\n    if (receiveStarted == false) receiveStarted = true;  \/\/ start active reception, if not already done\n    receivedTime++;                           \/\/ there was a pulse, so increase the auxiliary variable to receive time\n  }\n  lastReceivePulse = receivePulse;            \/\/ remember current state at pin for next pass\n}<\/code><\/pre>\n\n\n<ul class=\"wp-block-latest-posts__list is-grid columns-3 wp-block-latest-posts\"><\/ul>\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link\" href=\"https:\/\/starthardware.org\/en\/category\/projects\/arduino-projects\/raylfx\/\" target=\"_blank\" rel=\"noreferrer noopener\">View all RaylFX modules \u00bb<\/a><\/div>\n<\/div>\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>This module of the RaylFX system operates a traffic light system with two driving directions and pedestrian lights. In addition, there is street lighting and an optional night shutdown. Wiring Diagram This module also works with an Arduino Nano. The LEDs for the traffic lights are connected to the digital channels 2 &#8211; 11. Each&hellip;&nbsp;<a href=\"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">RaylFX \u2013 Traffic Light Module<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":483,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[5,9],"tags":[],"class_list":["post-479","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino-projects","category-raylfx"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RaylFX \u2013 Traffic Light Module - StartHardware - Tutorials for Arduino<\/title>\n<meta name=\"description\" content=\"RaylFX \u2013 How to create a traffic light module for your model city with the RaylFX system and an Arduino Nano.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RaylFX \u2013 Traffic Light Module - StartHardware - Tutorials for Arduino\" \/>\n<meta property=\"og:description\" content=\"RaylFX \u2013 How to create a traffic light module for your model city with the RaylFX system and an Arduino Nano.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/\" \/>\n<meta property=\"og:site_name\" content=\"StartHardware - Tutorials for Arduino\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-21T15:34:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-03-23T01:01:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/raylfx-traffic-light-arduino-nano-title2-1024x576-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"576\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"David Hermann\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/starthardware.org\/en\/#website\",\"url\":\"https:\/\/starthardware.org\/en\/\",\"name\":\"StartHardware - Tutorials for Arduino\",\"description\":\"Arduino, Electronics, Fun\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/starthardware.org\/en\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/raylfx-traffic-light-arduino-nano-title2-1024x576-1.jpg\",\"contentUrl\":\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/raylfx-traffic-light-arduino-nano-title2-1024x576-1.jpg\",\"width\":1024,\"height\":576,\"caption\":\"RaylFX traffic light module for model railroad\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/#webpage\",\"url\":\"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/\",\"name\":\"RaylFX \u2013 Traffic Light Module - StartHardware - Tutorials for Arduino\",\"isPartOf\":{\"@id\":\"https:\/\/starthardware.org\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/#primaryimage\"},\"datePublished\":\"2021-03-21T15:34:33+00:00\",\"dateModified\":\"2021-03-23T01:01:47+00:00\",\"author\":{\"@id\":\"https:\/\/starthardware.org\/en\/#\/schema\/person\/37dd49804e351d0045589790d695d99c\"},\"description\":\"RaylFX \u2013 How to create a traffic light module for your model city with the RaylFX system and an Arduino Nano.\",\"breadcrumb\":{\"@id\":\"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/starthardware.org\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RaylFX \u2013 Traffic Light Module\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/starthardware.org\/en\/#\/schema\/person\/37dd49804e351d0045589790d695d99c\",\"name\":\"David Hermann\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/starthardware.org\/en\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5c1f55f9c9addf2633dc5513f65e57c6b11de8c1d05cab7a65be1e402233d543?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5c1f55f9c9addf2633dc5513f65e57c6b11de8c1d05cab7a65be1e402233d543?s=96&d=mm&r=g\",\"caption\":\"David Hermann\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RaylFX \u2013 Traffic Light Module - StartHardware - Tutorials for Arduino","description":"RaylFX \u2013 How to create a traffic light module for your model city with the RaylFX system and an Arduino Nano.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/","og_locale":"en_US","og_type":"article","og_title":"RaylFX \u2013 Traffic Light Module - StartHardware - Tutorials for Arduino","og_description":"RaylFX \u2013 How to create a traffic light module for your model city with the RaylFX system and an Arduino Nano.","og_url":"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/","og_site_name":"StartHardware - Tutorials for Arduino","article_published_time":"2021-03-21T15:34:33+00:00","article_modified_time":"2021-03-23T01:01:47+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/raylfx-traffic-light-arduino-nano-title2-1024x576-1.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"David Hermann","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/starthardware.org\/en\/#website","url":"https:\/\/starthardware.org\/en\/","name":"StartHardware - Tutorials for Arduino","description":"Arduino, Electronics, Fun","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/starthardware.org\/en\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/#primaryimage","inLanguage":"en-US","url":"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/raylfx-traffic-light-arduino-nano-title2-1024x576-1.jpg","contentUrl":"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/raylfx-traffic-light-arduino-nano-title2-1024x576-1.jpg","width":1024,"height":576,"caption":"RaylFX traffic light module for model railroad"},{"@type":"WebPage","@id":"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/#webpage","url":"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/","name":"RaylFX \u2013 Traffic Light Module - StartHardware - Tutorials for Arduino","isPartOf":{"@id":"https:\/\/starthardware.org\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/#primaryimage"},"datePublished":"2021-03-21T15:34:33+00:00","dateModified":"2021-03-23T01:01:47+00:00","author":{"@id":"https:\/\/starthardware.org\/en\/#\/schema\/person\/37dd49804e351d0045589790d695d99c"},"description":"RaylFX \u2013 How to create a traffic light module for your model city with the RaylFX system and an Arduino Nano.","breadcrumb":{"@id":"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/starthardware.org\/en\/raylfx-traffic-light-module\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/starthardware.org\/en\/"},{"@type":"ListItem","position":2,"name":"RaylFX \u2013 Traffic Light Module"}]},{"@type":"Person","@id":"https:\/\/starthardware.org\/en\/#\/schema\/person\/37dd49804e351d0045589790d695d99c","name":"David Hermann","image":{"@type":"ImageObject","@id":"https:\/\/starthardware.org\/en\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/5c1f55f9c9addf2633dc5513f65e57c6b11de8c1d05cab7a65be1e402233d543?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5c1f55f9c9addf2633dc5513f65e57c6b11de8c1d05cab7a65be1e402233d543?s=96&d=mm&r=g","caption":"David Hermann"}}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/posts\/479","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/comments?post=479"}],"version-history":[{"count":20,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/posts\/479\/revisions"}],"predecessor-version":[{"id":618,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/posts\/479\/revisions\/618"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/media\/483"}],"wp:attachment":[{"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/media?parent=479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/categories?post=479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/tags?post=479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}