{"id":689,"date":"2021-03-23T20:22:21","date_gmt":"2021-03-23T20:22:21","guid":{"rendered":"https:\/\/starthardware.org\/en\/?p=689"},"modified":"2021-03-26T19:16:53","modified_gmt":"2021-03-26T19:16:53","slug":"raylfx-ambient-lighting-for-model-city","status":"publish","type":"post","link":"https:\/\/starthardware.org\/en\/raylfx-ambient-lighting-for-model-city\/","title":{"rendered":"RaylFX \u2013 Ambient Lighting for model city"},"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> controls the ambient lighting of the model railway. For this purpose, an RGBW LED strip is used as a light source.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Wiring Diagram<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"497\" src=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/railfx-Ambient-lighting-arduino-rgbw-strip-model-rail-way-model-making-1024x497.jpg\" alt=\"Arduino RaylFX room indoor ambient lighting RGB RGBW strip model railway model making wiring diagram lighting system\" class=\"wp-image-692\" srcset=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/railfx-Ambient-lighting-arduino-rgbw-strip-model-rail-way-model-making-1024x497.jpg 1024w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/railfx-Ambient-lighting-arduino-rgbw-strip-model-rail-way-model-making-300x146.jpg 300w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/railfx-Ambient-lighting-arduino-rgbw-strip-model-rail-way-model-making-768x372.jpg 768w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/railfx-Ambient-lighting-arduino-rgbw-strip-model-rail-way-model-making.jpg 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>The LED strip consists of four parallel circuits of LEDs (red, green, blue, white). In my strip, red, green and blue are combined in one LED housing, while the white LED is an extra component. All LEDs share the anode (positive pole). It is called common anode.<\/p>\n\n\n\n<p>So when you buy it, you have to find a hint somewhere on the connection points of the LED segments, e.g. a +, a 5V+ or a 12V+.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"688\" height=\"182\" src=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/rgbw-common-anode-arduino-raylfx.jpg\" alt=\"Arduino RGBW-LED strip common anode\" class=\"wp-image-694\" srcset=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/rgbw-common-anode-arduino-raylfx.jpg 688w, https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/rgbw-common-anode-arduino-raylfx-300x79.jpg 300w\" sizes=\"auto, (max-width: 688px) 100vw, 688px\" \/><\/figure>\n\n\n\n<p>My LED strip had female pin headers as connectors, which were very easy to connect with patch cables.<\/p>\n\n\n\n<p>As shown in the schematic, the GND of the external power supply must be connected to the GND of the Arduino board. <strong>The plus on the other hand must only be connected to the LED strip!<\/strong><\/p>\n\n\n\n<p>The LEDs are controlled by N-channel MOS-FET transistors. I use the IRF630N transistors for this. In contrast to normal transistors they don&#8217;t need any pre-resistors. The legs are called gate, drain and source. The source terminal is connected to GND. The drain terminal is connected to the respective LED color and is controlled by the gate. The gate is connected to the PWM pins of the Arduino nano board (D6 &#8211; blue, D9 &#8211; green, D10 &#8211; red, D11 &#8211; white).<\/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\">Components<\/h2>\n\n\n\n<ul class=\"wp-block-list\" id=\"block-aa2bb72e-36ad-4f02-bf4d-f009a13b9d29\"><li>1x&nbsp;<a href=\"https:\/\/amzn.to\/2MCr0Yc\" target=\"_blank\" rel=\"noreferrer noopener\">Arduino Nano<\/a>*<\/li><li>1x&nbsp;<a href=\"https:\/\/amzn.to\/36nY4KH\" target=\"_blank\" rel=\"noreferrer noopener\">Breadboard and jumper wires<\/a>*<\/li><li>1x&nbsp;<a href=\"https:\/\/amzn.to\/3ccE5Rw\" target=\"_blank\" rel=\"noreferrer noopener\">RGBW-Set<\/a>*<\/li><li>1x&nbsp;<a href=\"https:\/\/amzn.to\/3qkH2nV\" target=\"_blank\" rel=\"noreferrer noopener\">DC-Socked for screwing<\/a>*<\/li><li>4x&nbsp;<a href=\"https:\/\/amzn.to\/3c5yqfZ\" target=\"_blank\" rel=\"noreferrer noopener\">MOS-FET IRF630<\/a>*<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Code Settings<\/h2>\n\n\n\n<p>Four phases of the room lighting are passed through: sunrise, day, sunset, night. Several settings can be made in the code. These are explained in more detail in the code section. They are the light colors of the respective phases and the speed of the transition (frameSpeed).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>int frameSpeed = 100;                    \/\/ Delay of the light transitions (the higher, the slower)\nfloat lightColors&#091;4]&#091;4] = {\n  {200.0, 50.0, 0.0, 0.0},               \/\/ sunrise\n  {0.0 , 0.0 , 0.0, 255.0},              \/\/ day\n  {150.0, 0.0, 60.0, 50.0},              \/\/ sunset\n  {0.0 , 0.0 , 60.0, 0.0}                \/\/ night\n};<\/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 Ambient Lighting Module<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>\/*\n    Rayl-FX Ambient Lighting Module\n    StartHardware.org\/en\n*\/\n\n\/* ***** ***** Settings ***** ***** ***** *****  ***** ***** ***** *****  ***** ***** ***** ***** *\/\n\nint frameSpeed = 100;                    \/\/ Delay of the light transitions (the higher, the slower)\nfloat lightColors&#091;4]&#091;4] = {\n  {200.0, 50.0, 0.0, 0.0},               \/\/ sunrise\n  {0.0 , 0.0 , 0.0, 255.0},              \/\/ day\n  {150.0, 0.0, 60.0, 50.0},              \/\/ sunset\n  {0.0 , 0.0 , 60.0, 0.0}                \/\/ night\n};\n\n\/* ***** ***** From here begins the program code, which does not need to be adjusted ***** ***** ***** ***** *\/\n\nint bluePin = 6;                         \/\/ this pin connects to the blue channel of the RGBW-LEDs\nint greenPin = 9;                        \/\/ this pin connects to the green channel of the RGBW-LEDs\nint redPin = 10;                         \/\/ this pin connects to the red channel of the RGBW-LEDs\nint whitePin = 11;                       \/\/ this pin connects to the white channel of the RGBW-LEDs\n\n\/* Variables for lightColors *\/\nfloat currentColor&#091;4];\nfloat colorSteps&#091;4]&#091;4];\nint samples = 255;\n\nint frameNumber = 0;\nlong frameTimer = 0;\n\nboolean transitionDone = false;\n\nint phase = 3;\n\n\/* Variables from the control module to determine the time of day *\/\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 = 23;\nint myOldTime = 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 the control module\n\n  for (int i = 0; i &lt; 4; i++) {\n    if (phase != 3) {\n      if (lightColors&#091;phase]&#091;i] &lt; lightColors&#091;phase + 1]&#091;i]) {\n        colorSteps&#091;phase]&#091;i] = (lightColors&#091;phase + 1]&#091;i] - lightColors&#091;phase]&#091;i]) \/ 255;\n      } else if (lightColors&#091;phase]&#091;i] &gt; lightColors&#091;phase + 1]&#091;i]) {\n        colorSteps&#091;phase]&#091;i] = (lightColors&#091;phase]&#091;i] - lightColors&#091;phase + 1]&#091;i]) \/ -255;\n      }\n    } else {\n      if (lightColors&#091;phase]&#091;i] &lt; lightColors&#091;0]&#091;i]) {\n        colorSteps&#091;phase]&#091;i] = (lightColors&#091;0]&#091;i] - lightColors&#091;phase]&#091;i]) \/ 255;\n      } else if (lightColors&#091;phase]&#091;i] &gt; lightColors&#091;0]&#091;i]) {\n        colorSteps&#091;phase]&#091;i] = (lightColors&#091;phase]&#091;i] - lightColors&#091;0]&#091;i]) \/ -255;\n      }\n\n    }\n    Serial.println(colorSteps&#091;phase]&#091;i]);\n  }\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 == 20) {                   \/\/ ***** sunset *****\n      if (myOldTime != myTime) {          \/\/ when the hour switches\n        phase = 1;                        \/\/ sets transition phase\n        transitionDone = false;           \/\/ transition phase is executed\n        Serial.println(\"sunset\");\n      }\n    } else if (myTime == 6) {             \/\/ ***** sunrise *****\n      if (myOldTime != myTime) {          \/\/ when the hour switches\n        phase = 3;                        \/\/ sets transition phase\n        transitionDone = false;           \/\/ \u00dcbergangsphase wird ausgef\u00fchrt\n        Serial.println(\"sunrise\");\n      }\n    }\n  }\n\n  if ((frameTimer + frameSpeed &lt; millis()) &amp;&amp; (transitionDone == false)) {\n\n    for (int i = 0; i &lt; 4; i++) {\n      if (phase != 3) {\n        currentColor&#091;i] = map(frameNumber, 0, 255, lightColors&#091;phase]&#091;i], lightColors&#091;phase + 1]&#091;i]);\n      } else {\n        currentColor&#091;i] = map(frameNumber, 0, 255, lightColors&#091;phase]&#091;i], lightColors&#091;0]&#091;i]);\n      }\n    }\n\n    frameNumber++;\n    if (frameNumber &gt; samples) {\n      frameNumber = 0; \n      if (phase == 3) {                       \/\/ automatic transition from sunrise to day\n        phase = 0;\n      } else if (phase == 1) {                \/\/ automatic transition from sunset to night\n        phase = 2;\n      } else {\n        transitionDone = true;\n      }\n    }\n    frameTimer = millis();\n  }\n\n  analogWrite(redPin, currentColor&#091;0]);      \/\/ setting the LED color\n  analogWrite(greenPin, currentColor&#091;1]);    \/\/ setting the LED color\n  analogWrite(bluePin, currentColor&#091;2]);     \/\/ setting the LED color\n  analogWrite(whitePin, currentColor&#091;3]);    \/\/ setting the LED color\n\n  myOldTime = myTime;\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 is-style-primary\"><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 controls the ambient lighting of the model railway. For this purpose, an RGBW LED strip is used as a light source. Wiring Diagram The LED strip consists of four parallel circuits of LEDs (red, green, blue, white). In my strip, red, green and blue are combined in one LED&hellip;&nbsp;<a href=\"https:\/\/starthardware.org\/en\/raylfx-ambient-lighting-for-model-city\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">RaylFX \u2013 Ambient Lighting for model city<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":693,"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-689","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 Ambient Lighting for model city<\/title>\n<meta name=\"description\" content=\"With this easily rebuildable module for the RaylFX system you can control day and night by LED strip: Instructions, code, wiring diagram.\" \/>\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-ambient-lighting-for-model-city\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RaylFX \u2013 Ambient Lighting for model city\" \/>\n<meta property=\"og:description\" content=\"With this easily rebuildable module for the RaylFX system you can control day and night by LED strip: Instructions, code, wiring diagram.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/starthardware.org\/en\/raylfx-ambient-lighting-for-model-city\/\" \/>\n<meta property=\"og:site_name\" content=\"StartHardware - Tutorials for Arduino\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-23T20:22:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-03-26T19:16:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/raylfx-arduino-ambient-lighting-rgb-rgbw-strip-led-1-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-ambient-lighting-for-model-city\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/raylfx-arduino-ambient-lighting-rgb-rgbw-strip-led-1-1024x576-1.jpg\",\"contentUrl\":\"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/raylfx-arduino-ambient-lighting-rgb-rgbw-strip-led-1-1024x576-1.jpg\",\"width\":1024,\"height\":576,\"caption\":\"Arduino RaylFX room indoor ambient lighting RGB RGBW strip model railway\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/starthardware.org\/en\/raylfx-ambient-lighting-for-model-city\/#webpage\",\"url\":\"https:\/\/starthardware.org\/en\/raylfx-ambient-lighting-for-model-city\/\",\"name\":\"RaylFX \u2013 Ambient Lighting for model city\",\"isPartOf\":{\"@id\":\"https:\/\/starthardware.org\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/starthardware.org\/en\/raylfx-ambient-lighting-for-model-city\/#primaryimage\"},\"datePublished\":\"2021-03-23T20:22:21+00:00\",\"dateModified\":\"2021-03-26T19:16:53+00:00\",\"author\":{\"@id\":\"https:\/\/starthardware.org\/en\/#\/schema\/person\/37dd49804e351d0045589790d695d99c\"},\"description\":\"With this easily rebuildable module for the RaylFX system you can control day and night by LED strip: Instructions, code, wiring diagram.\",\"breadcrumb\":{\"@id\":\"https:\/\/starthardware.org\/en\/raylfx-ambient-lighting-for-model-city\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/starthardware.org\/en\/raylfx-ambient-lighting-for-model-city\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/starthardware.org\/en\/raylfx-ambient-lighting-for-model-city\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/starthardware.org\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RaylFX \u2013 Ambient Lighting for model city\"}]},{\"@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 Ambient Lighting for model city","description":"With this easily rebuildable module for the RaylFX system you can control day and night by LED strip: Instructions, code, wiring diagram.","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-ambient-lighting-for-model-city\/","og_locale":"en_US","og_type":"article","og_title":"RaylFX \u2013 Ambient Lighting for model city","og_description":"With this easily rebuildable module for the RaylFX system you can control day and night by LED strip: Instructions, code, wiring diagram.","og_url":"https:\/\/starthardware.org\/en\/raylfx-ambient-lighting-for-model-city\/","og_site_name":"StartHardware - Tutorials for Arduino","article_published_time":"2021-03-23T20:22:21+00:00","article_modified_time":"2021-03-26T19:16:53+00:00","og_image":[{"width":1024,"height":576,"url":"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/raylfx-arduino-ambient-lighting-rgb-rgbw-strip-led-1-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-ambient-lighting-for-model-city\/#primaryimage","inLanguage":"en-US","url":"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/raylfx-arduino-ambient-lighting-rgb-rgbw-strip-led-1-1024x576-1.jpg","contentUrl":"https:\/\/starthardware.org\/en\/wp-content\/uploads\/2021\/03\/raylfx-arduino-ambient-lighting-rgb-rgbw-strip-led-1-1024x576-1.jpg","width":1024,"height":576,"caption":"Arduino RaylFX room indoor ambient lighting RGB RGBW strip model railway"},{"@type":"WebPage","@id":"https:\/\/starthardware.org\/en\/raylfx-ambient-lighting-for-model-city\/#webpage","url":"https:\/\/starthardware.org\/en\/raylfx-ambient-lighting-for-model-city\/","name":"RaylFX \u2013 Ambient Lighting for model city","isPartOf":{"@id":"https:\/\/starthardware.org\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/starthardware.org\/en\/raylfx-ambient-lighting-for-model-city\/#primaryimage"},"datePublished":"2021-03-23T20:22:21+00:00","dateModified":"2021-03-26T19:16:53+00:00","author":{"@id":"https:\/\/starthardware.org\/en\/#\/schema\/person\/37dd49804e351d0045589790d695d99c"},"description":"With this easily rebuildable module for the RaylFX system you can control day and night by LED strip: Instructions, code, wiring diagram.","breadcrumb":{"@id":"https:\/\/starthardware.org\/en\/raylfx-ambient-lighting-for-model-city\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/starthardware.org\/en\/raylfx-ambient-lighting-for-model-city\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/starthardware.org\/en\/raylfx-ambient-lighting-for-model-city\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/starthardware.org\/en\/"},{"@type":"ListItem","position":2,"name":"RaylFX \u2013 Ambient Lighting for model city"}]},{"@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\/689","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=689"}],"version-history":[{"count":21,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/posts\/689\/revisions"}],"predecessor-version":[{"id":725,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/posts\/689\/revisions\/725"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/media\/693"}],"wp:attachment":[{"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/media?parent=689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/categories?post=689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/starthardware.org\/en\/wp-json\/wp\/v2\/tags?post=689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}