-
So it turns out a heat source under a PIR sensor is bad!
12/13/2016 at 03:35 • 0 commentsWho would have guessed?
Heat signature representation
See that thing at the bottom of the image? That is the heating unit that runs along the baseboards of my apartment for heating. In the summer/fall, my apartment needs little-to-no heating, so the design worked perfectly. But now that winter has come (the Starks are always right eventually), the unit would run constantly in the evening when the heat kicked on.
I should have anticipated this before I chose a place for it, because it makes sense what it happening. The PIR sensor is sensing the heat and notices a varying IR background. I moved the unit from the wall and mounted it on the back of my nightstand about a foot away from the heat source. All working now!
-
An oversight regarding power supply
10/30/2016 at 07:02 • 0 commentsI just realized recently I made a silly mistake when I designed this project. I've been so used to working with the standalone ATMega and always needing a 5V regulator. When I decided to use an Arduino Nano for this project I overlooked the fact that it already has a built-in regulator.
I was feeding 5V into a 5V on-board regulator, and since regulators always operate with a voltage drop, the voltage actually supplying the microcontroller was around 3.5-4V. Everything worked fine, but it would be more reliable at the correct 5V.
It was a quick 5 minute job to pull off the external regulator I was using and re-route the power directly to the Vin pin.
-
It's a technology that can assist people
09/09/2016 at 03:23 • 0 commentsOkay so there are soooo many better projects for the "Assisting Technology" challenge, but this project may fit the requirements, so why not!
This project, and motion based lighting at night in general is a pretty damn practical thing. With the technology being more available and home automation on the rise, I wouldn't be surprised to see this kind of technology in many house. I just made this for fun, but besides the basic "quality of life" benefits there are a few other important groups this can benefit:
- Accident prone people
- children afraid of the dark
- people who can't see well in the dark
- drunk people
And even
- drunk accident prone children who can't see well in the dark (a group often overlooked)
Thanks to the availability and ease of use of modules and microcontrollers like Arduino, amateur home automation could be possible for anyone.
-
Project Completion
08/27/2016 at 04:33 • 0 commentsI went out and bought a new power supply (12V 2.5A) and was ready to mount the device and LED's!
I mounted the main unit by my bedside near the ground. The LED strip came with an adhesive on the back, so I stuck that on the long side frame of my bed. Some tape was used as well to help keep the strip on the frame. And here is the result:
Closing thoughts:
This would be a great project for beginners who aren't too familiar with programming. With so many resources out there, I was able to use existing code for the PWM to the LED strips and a library for the RTC. The programming aspect of the project took about an hour or two.
Hardware made up the majority of the project. I had to drill a few holes into the case for the power jack, the motion sensor, and the touch sensor. The main bulk of time was spent soldering components to the prototyping board.
It was a fun little project that ended up being less than $50. Probably 90% of the cost of the project comes just from the power supply and the LED strip. Components like the Nano, motion sensor, and RTC are dirt cheap. My main warning to anyone interested in trying LED strip project is to make sure your power supply can handle the length of LED's you plan to light up. Don't make the same mistake I did!
I've had this installed for a couple days now, and it's still a pleasant surprise whenever I wake up, step out of bed and see the LED strip light up.
-
RIP Wall Adapter
08/22/2016 at 04:54 • 0 commentsWelp, I made a rookie mistake. Was testing the device for a bit and it was all going great. Suddenly I hear a pop and the lights shut off. Whoops.
I was using the wall adapter for this, which was rated to 2A. I was powering about 10ft of LEDs, which at peak would draw more than 2A. Since this was a cheap adapter off ebay, it didn't last long. I hadn't bothered to cut down the strip to the size I wanted (and that was safe for under 2A!).
It's a real heartbreaker since it's pretty much ready to be installed. Any final touches will need to be done with my variable power supply again until I find a power supply with enough current output.
Anyways, here's a look at what the final product may look like, just need to make the hole for the sensor a bit bigger.
-
Soldering and First Testing
08/21/2016 at 21:34 • 0 commentsPutting it all together
90% of the time spent on this soldering the components together. I relied on dupont jumper cables to keep everything modular and easy to attach/remove key components. Basic cheap protoboard is a bit of pain to work with, but is great if you want to throw something together in a couple hours.
You can check out the schematic on the previous project log to see what everything is. I used a 2A 12V power supply for this. These LED strips can draw a lot of current!
For short jumps I used resistor leads, for long jumps, light cable.
Here is everything all connected. Besides needing a larger bit to make space for the motion sensor, all the work on the case is done. It will be a tight fit, and I kept the wires a bit long, but it should be good to go. With all of it together I was ready to start testing.
First Tests
Things seemed to work great. I was able to set and then read the RTC. If the RTC hour value was > 20 or < 9 the micro would check the status of the motion sensor. While the motion sensor pin was high, the light show would go off. If the RTC hour value was outside of the above range, the lights would not turn off despite the motion sensor being triggered.
Everything was going great until I heard a pop.
To be continued...
-
Planning and Prototyping
08/21/2016 at 21:08 • 0 commentsThere are 3 main things I need for this project in addition to a microcontroller (Arduino Nano):
- LED strip
- I went with a generic RGB non-addressable LED strip. I just wanted something simple so I took the example from Adafruit https://learn.adafruit.com/rgb-led-strips/example-code
- Motion sensor
- For the motion sensor I used the HC-SR501 module. Really easy to use with a pot for sensitivity and a pot for how long the data pin stays high for after sensing motion
- RTC
- I looked for a library for the popular DS3231 RTC. I used the library found here: http://www.rinkydinkelectronics.com/library.php?id=73
With so much existing code out there for these common devices, this is a really quick and easy project to make. The only time consuming part is the hardware side, soldering all the components onto protoboard and putting it all together.
Here is the schematic:
And the first test run of the LED strip:
- LED strip