G+_Kyle Boyington Posted January 27, 2016 Share Posted January 27, 2016 I Made A Nightlight! With inspiration from Know How I made my son a nightlight from scratch! I built everything: the wooden box, the acrylic top, and am using a raspberry pi as the brains! The light changes from white, to red, to green, to blue, to random with the press of the button. Then it stays on for 20 minutes then slowly fades to off! You can also text it to turn it on and off (IFTTT)! My son has really enjoyed it and it has run great so far! The code is ugly, as well as the led wiring, but it works! If anyone wants anymore details, please let me know! Thanks to Fr. Robert Ballecer, SJ and Bryan Burnett for the great show! Link to comment Share on other sites More sharing options...
G+_Eric Kolesnikovas Posted January 27, 2016 Share Posted January 27, 2016 Awesome, you could probably make an artificial sunrise with it for an alarm, I think there was a product on the show like that. Not as cool as this though because you can text it. Link to comment Share on other sites More sharing options...
G+_Kyle Boyington Posted January 27, 2016 Author Share Posted January 27, 2016 Eric Kolesnikovas thats step two! Actually, we are going to do a red/green light for when he is allowed to get out of bed and leave his room. I have heard others use similar lights to signal their kids when they can get up! Link to comment Share on other sites More sharing options...
G+_Eric Kolesnikovas Posted January 27, 2016 Share Posted January 27, 2016 +Kyle Boyington awesome so many possibilities. I love the idea. Link to comment Share on other sites More sharing options...
G+_Ben Reese Posted January 27, 2016 Share Posted January 27, 2016 Projects like these are a lot of fun! Only downside now is that you have to get another Pi. I presume this was coded in Python? If you're familiar with C/C++, the Arduino might be another way to recreate this. The IFTTT integration wouldn't be near as easy though. Link to comment Share on other sites More sharing options...
G+_Kyle Boyington Posted January 27, 2016 Author Share Posted January 27, 2016 Ben Reese Ah yes...you said it right! Coded in python, and sacrificed a pi for the project. And you nailed it about the Arduino. I have 5 of them sitting on my desk for my next project. The IFTTT notifications are cool, and its nice that its tied into the wider internet anyways. I would recommend people use arduino, because they are cheap and easy, but you have to use C. All around a great project and fun to learn! Link to comment Share on other sites More sharing options...
G+_Steve Martin Posted January 27, 2016 Share Posted January 27, 2016 Care to share your code? Put it on GitHub maybe? Someone might be able to refactor it a bit for functionality. Link to comment Share on other sites More sharing options...
G+_Kyle Boyington Posted January 27, 2016 Author Share Posted January 27, 2016 Wayne Hobbins thanks for that! Ill look into it! And Steve Martin sure, its ugly code though. Ill put it up on GitHub and link it! Link to comment Share on other sites More sharing options...
G+_Steve Martin Posted January 27, 2016 Share Posted January 27, 2016 Blues and Greens are generally recommended for rest. Although the blue from LED displays apparently causes people to stay awake. I'd look into that for sure with a kid. Dim white may be best thing for bedtime. Link to comment Share on other sites More sharing options...
G+_Kyle Boyington Posted January 27, 2016 Author Share Posted January 27, 2016 Steve Martin the light stays on for 30 minutes, then slowly fades to red, regardless of what color it is currently. Doesnt seem to affect him so far, and the fade to red lets him know the light will be going off soon without an abrupt cut off. Link to comment Share on other sites More sharing options...
G+_Fr. Robert Ballecer, SJ Posted January 28, 2016 Share Posted January 28, 2016 Bravo! :) Link to comment Share on other sites More sharing options...
Recommended Posts