Advanced

Raspberry Pi nightlight

Posted by Scott_Ruecker on · 3 comments
Linux User & Developer; By Gavin Thomas
Mail this story
Print this story

You’ve probably all seen those cheap, solar-powered lamps that you can stick into your garden to try and give it a classy bit of illumination during the night. If you’ve actually got one then you may have found out that they don’t shine very brightly and the plastic stakes can be very flimsy. So why not make your own version? What we’ll show you on this page is the beginning of an array of light-sensitive LEDs using a single LED, so that you can understand how the system works. We’ll use a special resistor called a light dependant resistor (LDR) or photoresistor that changes its resistance based on the levels of light it’s receiving.

Full Story

  Nav
» Read more about: Story Type: News Story; Groups: Developer, GNU, Linux, Raspberry Pi

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

Comments (3)

I'd recommend adding some sort of lens or mount for the photoresistor, a diffuse domed lens may be best... and there is some non-trivial work to integrate the output on pin 7 [from the sample python code] into a lighting system.

I'm currently doing some RF work with the Raspberry Pi... but it might be fun to design a circuit or two for the 'nightlight' and post them here if anyone is interested.
I prefer to use the ATtiny13V or similar for most projects and the ATmega164A for the really complex ones with lots of I/O or sensor needs. The Pi is a great ethernet portal for everything else to tie into. I believe the main interface board in the posted video is an Arduino... which is an Atmel microcontroller mounted on an easy to use board.

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post