{"id":138,"date":"2013-06-29T17:15:22","date_gmt":"2013-06-29T07:15:22","guid":{"rendered":"http:\/\/www.eyemonline.com\/?p=138"},"modified":"2013-06-30T19:23:18","modified_gmt":"2013-06-30T09:23:18","slug":"christmas-train-controller","status":"publish","type":"post","link":"http:\/\/www.eyemonline.com\/?p=138","title":{"rendered":"Christmas Train Controller"},"content":{"rendered":"<p>My kids have been bugging me for years to get a train set to put under the Christmas tree. They like the thrill of watching \u00a0train circle the base of the tree, and besides there&#8217;s a Christmas train set at Nanny and Pop&#8217;s house!<\/p>\n<p><!--more--><\/p>\n<p>We found a cheap Christmas train set at our local variety store. After putting it together and giving it a run I discovered that the train runs on batteries (not surprise here) and has an on\/off switch underneath the loco. One of the track sections has a lever which raises and lowers a cam which turns the train on or off.<\/p>\n<div data-carousel-extra='{\"blog_id\":1,\"permalink\":\"http:\\\/\\\/www.eyemonline.com\\\/?p=138\"}' id='gallery-1' class='gallery galleryid-138 gallery-columns-3 gallery-size-thumbnail'><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-2.jpg'><img width=\"150\" height=\"112\" src=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-2-150x112.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"Christmas Train\" decoding=\"async\" loading=\"lazy\" aria-describedby=\"gallery-1-171\" srcset=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-2-150x112.jpg 150w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-2-300x225.jpg 300w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-2-1024x768.jpg 1024w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-2.jpg 1280w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-attachment-id=\"171\" data-permalink=\"http:\/\/www.eyemonline.com\/?attachment_id=171\" data-orig-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-2.jpg\" data-orig-size=\"1280,960\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.4&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 5&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1372530914&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.13&quot;,&quot;iso&quot;:&quot;800&quot;,&quot;shutter_speed&quot;:&quot;0.066666666666667&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Christmas Train\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Christmas train.&lt;\/p&gt;\n\" data-medium-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-2-300x225.jpg\" data-large-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-2-1024x768.jpg\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-171'>\n\t\t\t\tChristmas train.\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-1.jpg'><img width=\"150\" height=\"112\" src=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-1-150x112.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"Track Section\" decoding=\"async\" loading=\"lazy\" aria-describedby=\"gallery-1-170\" srcset=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-1-150x112.jpg 150w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-1-300x225.jpg 300w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-1-1024x768.jpg 1024w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-1.jpg 1280w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-attachment-id=\"170\" data-permalink=\"http:\/\/www.eyemonline.com\/?attachment_id=170\" data-orig-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-1.jpg\" data-orig-size=\"1280,960\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.4&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 5&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1372530896&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.13&quot;,&quot;iso&quot;:&quot;800&quot;,&quot;shutter_speed&quot;:&quot;0.066666666666667&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Track Section\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Track section.&lt;\/p&gt;\n\" data-medium-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-1-300x225.jpg\" data-large-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-1-1024x768.jpg\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-170'>\n\t\t\t\tTrack section.\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-3.jpg'><img width=\"150\" height=\"112\" src=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-3-150x112.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"Christmas Train Showing Switch\" decoding=\"async\" loading=\"lazy\" aria-describedby=\"gallery-1-172\" srcset=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-3-150x112.jpg 150w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-3-300x225.jpg 300w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-3-1024x768.jpg 1024w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-3.jpg 1280w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-attachment-id=\"172\" data-permalink=\"http:\/\/www.eyemonline.com\/?attachment_id=172\" data-orig-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-3.jpg\" data-orig-size=\"1280,960\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.4&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 5&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1372530928&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.13&quot;,&quot;iso&quot;:&quot;800&quot;,&quot;shutter_speed&quot;:&quot;0.066666666666667&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Christmas Train Showing Switch\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Christmas train showing switch.&lt;\/p&gt;\n\" data-medium-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-3-300x225.jpg\" data-large-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-3-1024x768.jpg\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-1-172'>\n\t\t\t\tChristmas train showing switch.\n\t\t\t\t<\/dd><\/dl><br style=\"clear: both\" \/>\n\t\t<\/div>\n\n<p>The train also plays an audio track when it&#8217;s turned on. When the kids hear that sound they come running. They also now bug me to run the train. Time to hack the train set&#8230;<\/p>\n<p>I want to be able to automatically turn the train on and off and I want to be able to schedule when the train is turned on and off.<\/p>\n<p>To turn the train on and off I want to use an RC servo controlled by an Arduino to move the lever between the on and off positions. I drew a base plate to be laser cut from 6mm aluminium plate. The track section with the level is placed into the base plate and a RC servo motor mounted on the base plate so that it can actuate the lever.<\/p>\n<div data-carousel-extra='{\"blog_id\":1,\"permalink\":\"http:\\\/\\\/www.eyemonline.com\\\/?p=138\"}' id='gallery-2' class='gallery galleryid-138 gallery-columns-3 gallery-size-thumbnail'><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-4.jpg'><img width=\"150\" height=\"112\" src=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-4-150x112.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"Base Plate\" decoding=\"async\" loading=\"lazy\" aria-describedby=\"gallery-2-173\" srcset=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-4-150x112.jpg 150w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-4-300x225.jpg 300w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-4-1024x768.jpg 1024w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-4.jpg 1280w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-attachment-id=\"173\" data-permalink=\"http:\/\/www.eyemonline.com\/?attachment_id=173\" data-orig-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-4.jpg\" data-orig-size=\"1280,960\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.4&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 5&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1372530946&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.13&quot;,&quot;iso&quot;:&quot;500&quot;,&quot;shutter_speed&quot;:&quot;0.066666666666667&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Base Plate\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Base plate.&lt;\/p&gt;\n\" data-medium-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-4-300x225.jpg\" data-large-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-4-1024x768.jpg\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-2-173'>\n\t\t\t\tBase plate.\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-5.jpg'><img width=\"150\" height=\"112\" src=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-5-150x112.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"Base Plate with Track Section\" decoding=\"async\" loading=\"lazy\" aria-describedby=\"gallery-2-174\" srcset=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-5-150x112.jpg 150w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-5-300x225.jpg 300w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-5-1024x768.jpg 1024w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-5.jpg 1280w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-attachment-id=\"174\" data-permalink=\"http:\/\/www.eyemonline.com\/?attachment_id=174\" data-orig-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-5.jpg\" data-orig-size=\"1280,960\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.4&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 5&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1372530970&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.13&quot;,&quot;iso&quot;:&quot;800&quot;,&quot;shutter_speed&quot;:&quot;0.066666666666667&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Base Plate with Track Section\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Base plate with track section.&lt;\/p&gt;\n\" data-medium-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-5-300x225.jpg\" data-large-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-5-1024x768.jpg\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-2-174'>\n\t\t\t\tBase plate with track section.\n\t\t\t\t<\/dd><\/dl><dl class='gallery-item'>\n\t\t\t<dt class='gallery-icon landscape'>\n\t\t\t\t<a href='http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-6.jpg'><img width=\"150\" height=\"112\" src=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-6-150x112.jpg\" class=\"attachment-thumbnail size-thumbnail\" alt=\"Christmas Train on Track\" decoding=\"async\" loading=\"lazy\" aria-describedby=\"gallery-2-175\" srcset=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-6-150x112.jpg 150w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-6-300x225.jpg 300w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-6-1024x768.jpg 1024w, http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-6.jpg 1280w\" sizes=\"(max-width: 150px) 100vw, 150px\" data-attachment-id=\"175\" data-permalink=\"http:\/\/www.eyemonline.com\/?attachment_id=175\" data-orig-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-6.jpg\" data-orig-size=\"1280,960\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;2.4&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;iPhone 5&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1372530996&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.13&quot;,&quot;iso&quot;:&quot;800&quot;,&quot;shutter_speed&quot;:&quot;0.066666666666667&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"Christmas Train on Track\" data-image-description=\"\" data-image-caption=\"&lt;p&gt;Christmas train on track.&lt;\/p&gt;\n\" data-medium-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-6-300x225.jpg\" data-large-file=\"http:\/\/www.eyemonline.com\/wp-content\/uploads\/2013\/06\/Christmas-Train-6-1024x768.jpg\" \/><\/a>\n\t\t\t<\/dt>\n\t\t\t\t<dd class='wp-caption-text gallery-caption' id='gallery-2-175'>\n\t\t\t\tChristmas train on track.\n\t\t\t\t<\/dd><\/dl><br style=\"clear: both\" \/>\n\t\t<\/div>\n\n<p>The Arduino will control the RC servo with the standard Servo library. To keep accurate time I&#8217;ll need a real time clock which is not built into the Arduino. I used the DS1307 RTC \u00a0kit from <a title=\"DS1307 Real Time Clock Breakout Board Kit\" href=\"http:\/\/www.adafruit.com\/products\/264\" target=\"_blank\">adafruit<\/a>. This will allow me to run the train for 1 minute on the half hour in the evenings.<\/p>\n<pre class=\"lang:default decode:true\">\/\/ Date and time functions using a DS1307 RTC connected via I2C and Wire lib\r\n\/\/ RTC communications based on example code here:\r\n\/\/ http:\/\/learn.adafruit.com\/ds1307-real-time-clock-breakout-board-kit\/understanding-the-code\r\n\/\/\r\n\/\/ RC servo contorl base on example code here:\r\n\/\/ http:\/\/arduino.cc\/en\/Reference\/ServoWrite\r\n\r\n#include &lt;Wire.h&gt;\r\n#include &lt;Servo.h&gt;\r\n#include \"RTClib.h\"      \/\/ http:\/\/github.com\/adafruit\/DS1307-breakout-board\r\n\r\nRTC_DS1307 RTC;          \/\/ real time clock object\r\nServo servoControl;      \/\/ rc servo object\r\n\r\n\/\/ pin definitions\r\nint pinRTCGnd = 16;      \/\/ analog pin 2 - used by Wire library\r\nint pinRTC5V = 17;       \/\/ analog pin 3 - used by Wire library\r\nint pinRTCSDA = 4;       \/\/ analog pin 4\r\nint pinRTCSCL = 5;       \/\/ analog pin 5\r\nint pinLED = 13;         \/\/ onboard LED\/digital pin 13\r\nint pinServoControl = 9; \/\/ digital pin 9\r\n\r\nint angleOn = 179;       \/\/ position of rc servo to turn train on\r\nint angleOff = 90;       \/\/ position of rc servo to turn train off\r\n\r\n\/\/ array to look up which hours the train should be turned on\r\nint onHours[] = { \r\n  0,0,0,0,0,0, \/\/ 0-5\r\n  0,0,0,0,0,0, \/\/ 6-11\r\n  0,0,0,0,0,1, \/\/ 12-17\r\n  1,1,0,0,0,0  \/\/ 18-23\r\n};\r\n\r\n\/\/ array to look up which minutes the train should be turned on\r\nint onMinutes[] = {\r\n  1,1,0,0,0,0,0,0,0,0, \/\/ 0-9\r\n  0,0,0,0,0,0,0,0,0,0, \/\/ 10-19\r\n  0,0,0,0,0,0,0,0,0,0, \/\/ 20-29\r\n  1,0,0,0,0,0,0,0,0,0, \/\/ 30-39\r\n  0,0,0,0,0,0,0,0,0,0, \/\/ 40-49\r\n  0,0,0,0,0,0,0,0,0,0  \/\/ 50-59\r\n};\r\n\r\nvoid setup () {\r\n  \/\/set IO pins\r\n  pinMode(pinLED, OUTPUT); \/\/ onboard LED\r\n  pinMode(pinRTC5V,OUTPUT); digitalWrite(pinRTC5V,HIGH); \/\/ +5V for real time clock\r\n  pinMode(pinRTCGnd,OUTPUT); digitalWrite(pinRTCGnd,LOW); \/\/ GND for real time clock\r\n\r\n  \/\/ setup the real time clock\r\n  Wire.begin(); \/\/ setup i2c communication\r\n  RTC.begin();  \/\/ setup real time clock\r\n  if (! RTC.isrunning()) {\r\n    Serial.println(\"RTC is NOT running!\");\r\n    \/\/ following line sets the RTC to the date &amp; time this sketch was compiled\r\n    RTC.adjust(DateTime(__DATE__, __TIME__));\r\n  }\r\n\r\n  \/\/ setup the rc servo\r\n  servoControl.attach(pinServoControl); \/\/ attach servo\r\n  servoControl.write(angleOff);         \/\/ set to off position\r\n\r\n  \/\/ setup serial monitor\r\n  Serial.begin(57600); \/\/ setup serial communication\r\n}\/\/end setup\r\n\r\nvoid loop () {\r\n  DateTime now = RTC.now(); \/\/ get time from real time clock\r\n\r\n  if(onHours[now.hour()] &amp;&amp; onMinutes[now.minute()]) {\r\n    \/\/ train is on\r\n    digitalWrite(pinLED,HIGH);\r\n    servoControl.write(angleOn);\r\n  } else {\r\n    \/\/ train is off\r\n    digitalWrite(pinLED,LOW);\r\n    servoControl.write(angleOff);\r\n  }\r\n\r\n  sendTime(now); \/\/ send time from start of loop to the serial monitor\r\n\r\n  delay(1000);   \/\/ wait 1 second before running through loop again\r\n}\/\/ end loop\r\n\r\nvoid sendTime(DateTime now) {\r\n  \/\/ send time to the serial monitor\r\n  Serial.print(now.year(), DEC);\r\n  Serial.print('\/');\r\n  Serial.print(now.month(), DEC);\r\n  Serial.print('\/');\r\n  Serial.print(now.day(), DEC);\r\n  Serial.print(' ');\r\n  Serial.print(now.hour(), DEC);\r\n  Serial.print(':');\r\n  Serial.print(now.minute(), DEC);\r\n  Serial.print(':');\r\n  Serial.print(now.second(), DEC);\r\n  Serial.println();\r\n}<\/pre>\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe class=\"youtube-player\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/QG0FEnA_wsY?version=3&#038;rel=1&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation\"><\/iframe><\/span>\n","protected":false},"excerpt":{"rendered":"<p>My kids have been bugging me for years to get a train set to put under the Christmas tree. They like the thrill of watching \u00a0train circle the base of the tree, and besides there&#8217;s a Christmas train set at &hellip; <a href=\"http:\/\/www.eyemonline.com\/?p=138\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[19],"tags":[6,18,17],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3FgN7-2e","_links":{"self":[{"href":"http:\/\/www.eyemonline.com\/index.php?rest_route=\/wp\/v2\/posts\/138"}],"collection":[{"href":"http:\/\/www.eyemonline.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.eyemonline.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.eyemonline.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.eyemonline.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=138"}],"version-history":[{"count":28,"href":"http:\/\/www.eyemonline.com\/index.php?rest_route=\/wp\/v2\/posts\/138\/revisions"}],"predecessor-version":[{"id":188,"href":"http:\/\/www.eyemonline.com\/index.php?rest_route=\/wp\/v2\/posts\/138\/revisions\/188"}],"wp:attachment":[{"href":"http:\/\/www.eyemonline.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.eyemonline.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=138"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.eyemonline.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}