智能睡眠灯
<p><span>那里有很多智能照明系统,可以让您仅通过智能手机(甚至是语音)来改变灯光的颜色和变暗,但是这种称为</span><span>Lumos</span><span>的</span><span>开源</span><span>灯是一种有益于健康的智能照明系统。</span></p><p><span>Lumos</span><span>模仿太阳每天在头顶上方通过时的自然光,在早晨产生明亮的蓝色光,在晚上产生温暖的琥珀色光。</span></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/5ba9f4ebf3b84727.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p><span>来自</span><span>哈佛医学院</span><span>,</span><span>美国国家航空航天局(</span><span>NASA</span><span>)和世界领先机构的数十年研究揭示了关于光如何影响和调节我们的健康的</span><span>大量信息。他们解释说,蓝光有助于皮质醇的产生,而皮质醇对早晨提供人体能量很重要;红光有助于产生诱导睡眠的褪黑激素。</span></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/f7d130c5634b4fcd.png" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p><span>世界上将近</span><span>20</span><span>%的人口被剥夺了睡眠,并且每天可能会在不自然的光线下度过</span><span>8</span><span>个小时以上的时间,这可能会使人体的内部时钟失去作用,并使其无法发挥最佳性能。</span></p><p><span>Lumos</span><span>智能灯旨在通过与</span><span>WiFi</span><span>配对来改变这种状况,并使用机器学习来调节光以匹配您的睡眠时间表。</span></p><p><span>开发:</span></p><p><span>您是对</span><span>Lumos</span><span>的新功能有很好的主意的程序员,工程师或设计师吗?也许您有个修正错误的好主意?随时从</span><span>Github</span><span>获取我们的代码,原理图和</span><span>CAD</span><span>文件,并进行修改。</span></p><p><span>LUMOS</span><span>存储库</span><span>Github</span></p><p><span>添加提示问问题评论下载</span></p><p><span>步骤</span><span>1</span><span>:零件和材料</span></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/60ce15e3ab739347.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/dbffa6e39b4d6bb6.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/39b9c045cabcfdb8.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/81ce544926731ae1.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p><span>3更多图像</span></p><p><span>电子元器件</span></p><p><span>·</span><span/><span>1</span><span>倍</span><span>Raspberry Pi 3-</span><span>全球</span><span>速卖通</span></p><p><span>·</span><span/><span>1</span><span>个</span><span>Arduino Nano- </span><span>AliExpress</span></p><p><span>·</span><span/><span>1</span><span>个</span><span>RGB LED</span><span>灯条(</span><span>12VDC</span><span>,</span><span>5m</span><span>)</span><span>-AliExpress</span></p><p><span>·</span><span/><span>1</span><span>个</span><span>7805</span><span>稳压器</span><span>-AliExpress</span></p><p><span>·</span><span/><span>3</span><span>个</span><span>IRF540 MOSFET- </span><span>AliExpress</span></p><p><span>·</span><span/><span>1</span><span>个</span><span>5V USB</span><span>电源适配器</span><span>-AliExpress</span></p><p><span>·</span><span/><span>1</span><span>个</span><span>12V</span><span>电源适配器</span><span>-AliExpress</span></p><p><span>工具类</span></p><p><span>·</span><span/><span>烙铁站</span><span>-</span><span>全球</span><span>速卖通</span></p><p><span>·</span><span/><span>焊锡丝</span><span>-</span><span>全球</span><span>速卖通</span></p><p><span>用料</span></p><p><span>外型尺寸</span></p><p><span>数量</span></p><p><span/></p><p><span>MDF表</span></p><p><span>5毫米,60厘米* 60厘米</span></p><p><span>1个</span></p><p><span/></p><p><span>磨砂压克力板</span></p><p><span>5毫米,60厘米* 60厘米</span></p><p><span>1个</span></p><p><span/></p><p><span>云母片</span></p><p><span>1mm,2m * 1m</span></p><p><span>1个</span></p><p><span/></p><p><span>添加提示问问题评论下载</span></p><p><span>步骤</span><span>2</span><span>:机械设计</span></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/d44967500b89cb5e.png" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/3fa8c945b2b5c539.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p><span>规格:</span></p><p><span>MDF</span><span>底座:</span><span>外半径:</span><span>26</span><span>厘米,内半径:</span><span>20</span><span>厘米。</span></p><p><span>磨砂压克力扩散器:</span><span>外部半径:</span><span>26</span><span>厘米,内部半径:</span><span>20</span><span>厘米。</span></p><p><span>云母支撑环:</span><span>宽度:</span><span>4</span><span>厘米,厚度:</span><span>1</span><span>毫米,外环长度:</span><span>164</span><span>厘米,内环长度:</span><span>126</span><span>厘米。</span></p><p><span>灯的圆形底部由</span><span>5mm MDF</span><span>薄板制成,而顶部圆形扩散板由</span><span>5mm</span><span>磨砂丙烯酸板制成。底座和扩散器的激光切割器文件在下面的</span><span>PDF</span><span>中。底座和扩散器由两个由</span><span>1mm</span><span>云母带制成的环支撑。扩散器与底座之间的距离为</span><span>4</span><span>厘米。使用云母切割刀片,</span><span>切割两条云母带,形成云母支撑环。激光切割后,其余</span><span>MDF</span><span>板的内圈可用于激光切割电子设备外壳盒。</span></p><p><span>附件</span></p><p><span>·</span><span/></p><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/e8109466ba65ab71.png" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span>lumos.pdf</span></p><p><span>下载</span></p><p><span>添加提示问问题评论下载</span></p><p><span>步骤</span><span>3</span><span>:机械组装</span></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/31949e8af2f20334.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/34d4a68bca73f1ed.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p><span>首先使用下面随附的模板在每个云母带的末端标记钻孔。标记并钻出孔后,将云母带的两端放在一起,使两端的孔对齐。对形成两个支撑环的两个云母带执行此操作。</span></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/0ba62780af2da4a1.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/4629830346c68be3.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p><span>使用皮绳在孔之间编织一个结,以牢固地连接云母带的两端。对形成两个支撑环的两个云母带执行此操作。现在,您将有两个云母支撑环:外径分别为</span><span>52 cm</span><span>和</span><span>40 cm</span><span>的外环和内环。</span></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/aeac8ca90436452e.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/1db1bef96d653cdb.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/2fe7a75ba3e035ef.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p><span>使用超级胶水</span><span>/</span><span>速溶胶和小苏打的混合物,将支撑环粘贴到</span><span>MDF</span><span>底座的内边缘和外边缘。在</span><span>MDF</span><span>底座底部钻一个孔,用于电源线和控制线。</span></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/1666fa6b4e467370.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/886a98bfe79ae4eb.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p><span>从</span><span>RGB LED</span><span>灯条上取下保护层,并开始将灯条</span><span/><span>粘贴到两个支撑环上。将</span><span>LED</span><span>灯条尽量靠近底座。这样可以确保光线均匀扩散,并且看不到各个</span><span>LED</span><span>轮廓。确保将</span><span>4</span><span>根电线(电源和控制)连接到</span><span>LED</span><span>灯条,并穿过</span><span>MDF</span><span>底座上的孔。</span></p><p><span>添加提示问问题评论下载</span></p><p><span>步骤</span><span>4</span><span>:电子组装</span></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/520bda845f531ba8.png" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/7a495b2f7809e904.png" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p><span>Raspberry Pi</span><span>使用</span><span>Wi-Fi</span><span>获取特定位置的时区,还使用其内部蓝牙模块分析智能手机的</span><span>RSSI</span><span>值,以计算智能手机的接近度</span></p><p><span>Arduino</span><span>用于控制和测试控制</span><span>RGB LED</span><span>灯条强度的模拟值。通过使用</span><span>PWM</span><span>更改模拟值,我们可以控制</span><span>LED</span><span>灯条产生的颜色。</span></p><p><span>Arduino</span><span>只能通过其</span><span>I / O</span><span>引脚提供最大</span><span>5V</span><span>,</span><span>20mA</span><span>的电流。</span><span>RGB LED</span><span>灯条通常需要至少</span><span>12V</span><span>,</span><span>1A</span><span>的电源。</span></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/d6c8ac6487bb0fd4.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p><span>解决方案是使用</span><span>MOSFET</span><span>作为开关。</span><span>MOSFET</span><span>的栅极引脚可用于控制</span><span>MOSFET</span><span>的</span><span>ON / OFF</span><span>状态。源极引脚连接到</span><span>LED</span><span>灯条,而漏极引脚连接到地。</span><span>MOSFET</span><span>的每个栅极引脚均由</span><span>Arduino</span><span>上的单独</span><span>PWM</span><span>引脚控制。</span><span>LED</span><span>灯带有</span><span>4</span><span>个引脚:</span><span>+ 12V</span><span>,</span><span>R</span><span>,</span><span>G</span><span>和</span><span>B</span><span>。</span><span>+ 12V</span><span>连接到</span><span>12V</span><span>电源适配器的</span><span>+ 12V</span><span>。</span><span>R</span><span>,</span><span>G</span><span>和</span><span>B</span><span>引脚分别连接到每个</span><span>MOSFET</span><span>的源极。</span></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/bf85249f72fa0c7f.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p><span>Arduino</span><span>使校准</span><span>RGB LED</span><span>灯条的颜色变得容易。</span><span>RGB</span><span>值的校准随</span><span>RGB LED</span><span>灯带的制造商和型号而异。如果实现校准,则可以通过使用适当的数模转换器(</span><span>DAC</span><span>)来降低成本。</span></p><p><span>Raspberry Pi</span><span>和</span><span>Arduino</span><span>使用</span><span>I2C</span><span>协议进行通信。</span></p><p><span>Eagle CAD</span><span>文件和原理图如下所示。</span></p><p><span>附件</span></p><p><span>·</span><span/></p><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/018197be4833ea65.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span>鹰</span></p><p><span>下载</span></p><p><span>·</span><span/></p><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/a46f68531a644156.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span>睡眠灯</span></p><p><span>下载</span></p><p><span>·</span><span/></p><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/b5205fb4d48bb774.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span>睡眠灯</span></p><p><span>下载</span></p><p><span>添加提示问问题评论下载</span></p><p><span>步骤</span><span>5</span><span>:软件</span></p><p><span>Raspberry Pi</span><span>用于检测人类的存在并监视和跟踪人类的睡眠习惯。根据人的睡眠习惯,将改变颜色改变顺序。</span></p><p><span>Raspberry Pi</span><span>正在运行最新版本的</span><span>NOOBS OS</span><span>。必须将其配置为特定于位置的时区。跟踪人类的存在时,将验证用户智能手机的蓝牙模块的</span><span>MAC</span><span>地址。人类入睡时,应将其智能手机放置在尽可能靠近灯的地方。因此,建议将灯泡放在床头柜附近。</span><span>RSSI</span><span>强度将取决于</span><span>Raspberry Pi</span><span>与智能手机之间的距离。一旦</span><span>Raspberry Pi</span><span>在房间中的位置固定,就可以设置一个阈值来配置睡眠跟踪。</span></p><p><span>在最初的两个星期中,在跟踪用户的睡眠习惯的同时,初始化了预配置的照明序列。一旦收集到足够的数据来确定睡眠和唤醒时间,系统就会计算彩色照明序列的长度和时间。通常情况下,灯光会在预期进入睡眠的一个小时前初始化日落阶段,而日出会在唤醒</span><span>/</span><span>唤醒半小时之前初始化。</span></p><p><span>由于存在多个软件文件,因此可以在以下位置找到此</span><span>Instructable</span><span>的代码:</span></p><p><span>LUMOS</span><span>软件文件</span></p><p><span>添加提示问问题评论下载</span></p><p><span>第</span><span>6</span><span>步:开源</span></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/e96588d84a99e0a3.png" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p><span>所有文件(包括代码,电子电路和原理图,</span><span>CAD</span><span>和设计文件)均为开源文件,可在</span><span>Github</span><span>存储库中找到。</span></p><p><span>LUMOS</span><span>:开源存储库</span></p><p><span>软件和电子设备会定期更新和修改。</span></p><p/><div class="image-package"><img src="https://img.haomeiwen.com/i16057169/a0da2653c79fc052.jpg" class="uploaded-img" style="min-height:200px;min-width:200px;" width="auto" height="auto"/>
</div><p><span/></p><p><span>最初的设计,软件和电子产品是在我的两个朋友</span><span>Callum</span><span>&</span><span>Mark</span><span>的帮助下创建的。</span></p><p><span>我们鼓励其他工程师,开发人员,设计师,建筑师等通过对存储库做出贡献来帮助我们。</span></p><p><span>如果您有任何其他想要设计的设计布局,则可以将</span><span>CAD</span><span>和布局文件上载到资源库,以便其他人也可以重新创建它。如果您认为我们可以使用备用微控制器来控制照明顺序,那么您也可以为电子电路和软件做出贡献。</span></p><p><span>github地址:</span>https://github.com/jonathanrjpereira/Lumos</p><p><span/></p>