-
I Got Skulled!
03/19/2015 at 10:48 • 0 commentsI would like to thank the Academy...
Seriously, the ability to share ideas and be inspired by others' creations is why I am on this site. I suspect that the mention I got on the Hackaday Blog is the reason for the attention my project has gotten, lately, but it's nice to know people are interested in something that I've done.
Keep Hacking, everyone!
-
LED Installed and Working, But...
03/15/2015 at 12:06 • 0 commentsI had to leave out the PIR sensor for now. I had designed the board to use the 3x2x1 plastic enclosure that you can find in any Radio Shack. I checked that I could fit the PIR and Sonar sensors into the lid (after drilling holes), but what I didn't count on was the room that the wires and pins would take up. I couldn't fit everything in, so I need to find another project box that is relatively flat (the 1" depth exposes the box underneath the cabinet) and can accommodate everything. Ideally, I want a box that is 4.5x2.5x0.75.
So I took out the PIR and have the sonar sensor pinging continuously. It works well, but I think I'm going to do some sort of averaging algorithm on the readings. The lowering of the intensity by lowering your hand from just under the sensor (activation) is jumpy and 'locks' too quickly (when it gets an erroneous reading, thinking the hand was removed).
Below is a demonstration. What is interesting is the tapping you hear is the sonar sensor, but you can't hear it normally. I guess my phone picks it up just like video cameras pick up IR light.
-
First Build
03/14/2015 at 12:05 • 0 commentsI built up the first board and did some tests. All seems to be as planned. I now need to drill out the holes in the project box and enclose everything. I have the LED Track cut and drilled, ready to install. The LED strips have been cut and joined (they are going to be installed in a corner cabinet area).
-
The Boards Are In!
03/13/2015 at 13:53 • 0 commentsLooks like my weekend is sorted!
-
PIR and Sonar Sensors are in
03/12/2015 at 14:47 • 0 commentsI received the PIR and HC-SR04 sensors from China. The PIR sensors are working fine. The HC-SR04 sensors have a problem though. These are the 4 pin models (VCC, GND, Trigger, and Echo) which is different than the Radio Shack model I have been using, which is 3 pin. The 3 pin version multiplexes the trigger and echo. This isn't the problem because I planned for the 4 pin model. While these 4 pin Chinese models seem to provide a more stable reading (the 3 pin version seems to jitter a lot), if there is no return echo (i.e. you ping across a large space), they lock up. The 3 pin RS model will time out after about 40 ms. I read somewhere that this is because there is a faulty bit of code in these cheap Chinese versions. I don't know if they can be reprogrammed.
The only way to reset them is to power them down and back up again. I have the Reset pin of the ATTiny85 on the connector for the sensors (in the event I wanted to repurpose the boards) and I could program the chip to use it as an I/O line to bounce the sonar when it gets in this state, but once you program the chip to not use the reset pin, you can't easily reprogram it. There is some information that says you can use 12V on the reset pin to override this, but I will have to wait until I put together a programmer for it. So for now, I will be using the 3 pin model.
-
PCBs Have Shipped
03/07/2015 at 13:24 • 0 commentsI've just received notice that my PCBs have been shipped. I hope to get them by next weekend and if I do, I will be installing the lights under the cabinets. I am getting them from Dirt Cheap Dirty Boards.
-
Tracks Are In
03/06/2015 at 21:08 • 0 commentsI just had the tracks for the LEDs delivered. These will be mounted under the cabinets over the counter. I got them from here.
-
LED Strip
03/01/2015 at 13:15 • 0 commentsI am using an LED strip of bright white LEDs that have a density of 60 LEDs per meter. I got 10 meters of the stuff. The company was selling them in two 5 meter rolls. I got them here.
-
Ordered Some More Parts
02/27/2015 at 13:49 • 0 commentsI decided that once I get this project working well, that I might make several for family and friends that might need something like this. To that end I placed an order for some HC-SR04 (Ultrasonic Ranging Module) and the HC-SR501 (PIR Sensor) modules from a company in China. They're dirt cheap compared to what you can get them for in the US. Adafruit is selling the PIR sensor for $9.95 vs. the 87 cents I paid in China (and you know they are getting them from the same place!). Radio Shack sells the Ultrasonic sensor for $29.95 vs. the 89 cents I paid in China. I bought 20 units a piece (which gave me a price break from 92 and 90 cents, respectively - and free shipping!). I've bought quite a bit of stuff from China through a web site called AliExpress, which looks like an online mall for the Far East, and have had no problems with any of the vendors. Granted, depending on the shipping method, delivery may take a while. I also got the LED strips and LED strip mounting rails from this site. Other stuff I got in the past were Arduino Mega 2560 for around $15 a pop and various forms of NeoPixels (strips of various densities and individual ones mounted on heat sinks - plan to use those for wearables or crafts), so I've had some successful dealing there.
Both sensors are from the same vendor.
-
Prototyped
02/26/2015 at 20:38 • 0 commentsI bread-boarded the prototype and I seem to have everything working. I used an Arduino Mega 2560 programmed as an ISP Programmer to program the ATTiny85.
The PWM can control the brightness of the LEDs the way I want. The timer seems to be delivering the interrupts properly so that delay is as accurate as the internal 8 MHz clock will allow. I've gotten the range sensor to work correctly (tip: put some delay between samples, I suspect the delay should be long enough so all the pulses stop bouncing around the room, triggering false echoes - the bigger the room, the longer the delay).
My only problem is making a circuit board. I managed to get the circuit on a Radio Shack PCB blank and etched it ok, after much trial and error, I must say. The problem came when trying to drill the holes. I bought some drill bits from Adafruit, but they snapped easily while drilling. I don't know what I'm doing wrong there. In the end, I laid out the board in Eagle CAD and am waiting for Dirty PCBs to make and deliver them. The amount of money wasted on toner transfer paper, etchant, PCB blanks, and drill bits is a lot more than the cost they are doing it for me!
I'm also waiting for the LED tracks for under the counter.
Once those are sorted, I'll be installing the lights. When I get them up, I'll post a Youtube video showing them in action.
It's a cute little project and I am enjoying it. I'm also scoring some points with the Honey!