{"id":963,"date":"2011-08-04T01:31:05","date_gmt":"2011-08-04T06:31:05","guid":{"rendered":"http:\/\/www.sector67.org\/blog\/?p=963"},"modified":"2011-09-07T00:36:07","modified_gmt":"2011-09-07T05:36:07","slug":"automatic-train-detecting-window-closer","status":"publish","type":"post","link":"https:\/\/www.sector67.org\/blog\/2011\/automatic-train-detecting-window-closer\/","title":{"rendered":"Train Detecting Automatic Window Closer"},"content":{"rendered":"<p>A Sector67 member has the fortune to live in a really cheap apartment &#8211; only after the lease was a long signed and summer set in did it finally dawn on him why rent was cheap &#8211; those parallel steel bars running 10 feet from the window host a giant squealing train four times a day. . .\u00a0 including the midnight\/2 AM train that likes to park outside his window \ud83d\ude41<\/p>\n<p>Fortunately his apartment is equipped with sound proof windows, but during the summer it&#8217;s really nice to have the windows open on cool night.\u00a0 The solution of course, was automate, automate, automate and throw technology around until it was fixed!<\/p>\n<p>This culminated in a (optionally) remote controlled Arduino powered 18&#8243; linear actuator connected to a image recognition script running on a Linux box hidden in the corner of the room, with a webcam peering out the window down the tracks:<\/p>\n<p><a href=\"https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01116.jpg\" rel=\"lightbox[963]\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-968\" title=\"DSC01116\" src=\"https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01116-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01116-300x225.jpg 300w, https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01116.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Remote control for bedside command:<\/p>\n<p><a href=\"https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01104.jpg\" rel=\"lightbox[963]\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-967\" title=\"DSC01104\" src=\"https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01104-300x274.jpg\" alt=\"\" width=\"300\" height=\"274\" srcset=\"https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01104-300x274.jpg 300w, https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01104.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>Additionally, brackets were designed and 3D printed to couple with the window and sill, requiring almost no fasteners and a snug fit all around:<\/p>\n<p><a href=\"https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01110.jpg\" rel=\"lightbox[963]\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-964\" title=\"DSC01110\" src=\"https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01110-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01110-300x225.jpg 300w, https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01110.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01109.jpg\" rel=\"lightbox[963]\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-965\" title=\"DSC01109\" src=\"https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01109-225x300.jpg\" alt=\"\" width=\"225\" height=\"300\" srcset=\"https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01109-225x300.jpg 225w, https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01109.jpg 768w\" sizes=\"auto, (max-width: 225px) 100vw, 225px\" \/><\/a><a href=\"https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01114.jpg\" rel=\"lightbox[963]\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-966\" title=\"DSC01114\" src=\"https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01114-300x225.jpg\" alt=\"\" width=\"300\" height=\"225\" srcset=\"https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01114-300x225.jpg 300w, https:\/\/www.sector67.org\/blog\/wp-content\/uploads\/2011\/08\/DSC01114.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>The only reported issues so far was an overly sensitive image processing script that was initially triggering on humans and animals walking the tracks, this was taken care of by further specifying the triggering criteria to search for bright lights among a sea of dark.\u00a0 Other serious failure resulted from an overheating computer leading to a melted hard drive that was promptly switched and recovered.<\/p>\n<p>Now with video:<br \/>\n\n<!-- iframe plugin v.5.2 wordpress.org\/plugins\/iframe\/ -->\n<iframe loading=\"lazy\" width=\"100%\" height=\"345\" src=\"http:\/\/www.youtube.com\/embed\/aBhF_qfG4Qc\" scrolling=\"yes\" class=\"iframe-class\" frameborder=\"0\"><\/iframe>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Sector67 member has the fortune to live in a really cheap apartment &#8211; only after the lease was a long signed and summer set in did it finally dawn on him why rent was cheap &#8211; those parallel steel<span class=\"ellipsis\">&hellip;<\/span><\/p>\n<div class=\"read-more\"><a href=\"https:\/\/www.sector67.org\/blog\/2011\/automatic-train-detecting-window-closer\/\">Read more &#8250;<\/a><\/div>\n<p><!-- end of .read-more --><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,21],"tags":[199,523,198,196,197,195],"class_list":["post-963","post","type-post","status-publish","format-standard","hentry","category-arduino","category-hardware","tag-3d-printed","tag-arduino","tag-hard-drive-failure","tag-image-processing","tag-image-recognition","tag-train-detection"],"_links":{"self":[{"href":"https:\/\/www.sector67.org\/blog\/wp-json\/wp\/v2\/posts\/963","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sector67.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sector67.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sector67.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sector67.org\/blog\/wp-json\/wp\/v2\/comments?post=963"}],"version-history":[{"count":4,"href":"https:\/\/www.sector67.org\/blog\/wp-json\/wp\/v2\/posts\/963\/revisions"}],"predecessor-version":[{"id":1057,"href":"https:\/\/www.sector67.org\/blog\/wp-json\/wp\/v2\/posts\/963\/revisions\/1057"}],"wp:attachment":[{"href":"https:\/\/www.sector67.org\/blog\/wp-json\/wp\/v2\/media?parent=963"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sector67.org\/blog\/wp-json\/wp\/v2\/categories?post=963"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sector67.org\/blog\/wp-json\/wp\/v2\/tags?post=963"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}