Proximity Switch For Your Mains Devices

[Ivan’s] friend built a proximity sensor to switch his LED bench lighting off every time he walked away. The idea is pretty neat, so [Ivan] decided to implement it for mains devices by making this proximity switched outlet box.

A Sharp GP2D12 infrared distance sensor is the key to the system. It has an emitter and receiver that combine to give distance feedback base on how much of the light is reflected back to the detector. This is presented as a voltage curve which is monitored by an ATtiny85 (running the Arduino bootloader). It is small enough to fit inside the outlet box along with a tiny transformer and linear regulator to power to logic circuitry. The mains are switched with a relay using an NPN transistor to protect the chip’s I/O pins.

Check out the video after the break to see this in action. It should be a snap to add a count-down timer that gives you a bit more freedom to move around the workshop. With that in place this is a fantastic alternative to some other auto-shutoff techniques for your bench outlets.

Continue reading “Proximity Switch For Your Mains Devices”

[RobB’s] House Has No Light Switches

So [RobB] wanted to take out all the light switches in his house. His plan was to replace them with a system that could be operated from his smart phone. But his wife insisted that there still must be some way to control the lighting directly — we have to agree with her on that one. The solution was to develop a system that switches the lights via a touch sensor or by Bluetooth.

The touch part of the project is pretty easy. He coated the back of a blank outlet plate with tin foil and hooked it to a microcontroller with a couple of resistors. He’s using an ATtiny85, which can be programmed using Arduino sketches, so the software side is made easy by the CapSense Library. The chip also uses the software serial library to communicate with a Bluetooth module. You can see the result of both in the demo video after the break.

Of course you need to throw a relay in there to switch mains, and find a way to power the uC and Bluetooth module. [RobB] went with a tiny plug-in USB power converter and managed to fit everything in a single-gang switch.

Continue reading “[RobB’s] House Has No Light Switches”

Bench Power Supply Resetting Thingy

As is common among some hackers, [Henry] re-purposed an ATX power supply unit to function as a bench power supply for testing circuits on a breadboard (much like this fancy example).

However, safety mechanisms on some modern PC PSUs do not automatically reset after over-current protection has kicked in, which soon became annoying for [Henry]. In order to make his power supply more hacker-friendly, he wired up and programmed an ATtiny85V, using some Arduino libraries, to do that for him. This simple project is a great example of using a hack to improve a pre-existing hack.

Hackaday Links: June 3, 2012

When pigs fly…. close enough.

There are too many jokes to be made about this one. It’s a quadcopter made out of a dead cat. [Bert Jansen], the artist behind this, calls him Orville. He died from natural causes, and what better way to remember a feline friend that liked chasing birds?

Refurbishing an Apple ][

That thirty year old computer in your parent’s attic isn’t going to clean itself, is it? [Todd] put up a series of videos tearing down a 1982 Apple ][ plus, cleaning everything along the way, and doing a very nice demo of AppleSoft BASIC. This is where the revolution started, people.

Ohm sweet Ωhm

Cross stitch isn’t for grandmothers anymore. Adafruit put up a cross stitch tutorial to go along with their resistor color code cross stitch kit. Now down to Hobby Lobby to find black cross stitch cloth and make the ‘ol skull ‘n wrenches.

Welcome! To the world of yesterday!

Boing Boing found an amazing cyberpunk photo spread that appeared in the Mondo 2000 ‘zine back around 1992 or 1993. Even when keeping in mind that this is a self-parody, it’s still incredible. Hackers have laser pointers? And pagers?

Making Arduino projects smaller

[Scott] caught wind of a way to shrinkify Arduino projects, so he turned an Arduino protoboard into an ATtiny85 programmer. As a neat bonus, [Scott] can use the attached breadboard to build circuits around the ’85.

 

ATtiny85 Sketch Flashing Rig

We’re happy to see Arduino enthusiasts championing the use of smaller hardware when the need for a full-blown ATmega-based board just isn’t there. [Chris] has been doing just that, using ATtiny85 chips in his projects. But he’s tired of hooking jumper wires to flash the sketches. He finally got around to etching this ATtiny85 programming adapter.

If the project is not pin hungry, an ATtiny85 can run Arduino sketches without the need to port the code. The best news is that the Arduino board you used to prototype the project can be used as the programmer for the standalone chip. Here that’s a Boarduino, and [Chris] laid out a double row of female pin headers for quick plug-in. To the right you can see the DIP socket for the target chip. Although this works perfectly well, we would have liked to also see the inclusion of a 2×3 AVR ISP programming header which could be used with the full range of AT chips.

Mother’s Day Heart Chaser

[Robert Mibus] took on a project which his kids could present to Mom on Mother’s Day. It’s an LED heart built into a ring or necklace box. The series of white LEDs are animated in a chase pattern. The project let [Robert] push his comfort boundaries by moving past a stock Arduino board.

Inside you’ll find an ATtiny85. He picked up the chip to try running Arduino sketches on smaller hardware. But the total of five available I/O pins presented an issue with driving the LEDs. Ten LEDs are used here and even a standard multiplex display would need no less than seven to control them without additional chips or the need for Charlieplexing. His solution was to drive two opposite LEDs at once, which cuts the need down to his five available pins.

Once he got it all soldered together he realized that he had made a coding error. But a few soldered wires let him reflash it in place using ISP.

Continue reading “Mother’s Day Heart Chaser”

Motorcycle Lighting Upgrade Ensures Other Drivers Know You’re There

led-brake-lights

[Pete Mills] recently bought himself a motorcycle, and as people are known to do, they start trying to scare him with gruesome stories of cycling accidents once they hear about his purchase. While he tries to shrug them off as people simply not minding their own business, something must have resonated with him, because he started tinkering with the bike’s taillight in order to ensure he was always seen by other drivers.

He swapped out his motorcycle’s incandescent taillight for a smart LED-based lamp that he constructed using perfboard. Not only does his new brake light feature ultra bright LEDs, but the onboard ATtiny85 rapidly flashes the lights each time he hits the brakes, making his presence impossible to miss. Before everyone starts with the claims of, “Flashing red lights are illegal!”, let’s all take a deep breath and read on.

We’ve seen these sorts of lights on the back of motorcycles for years, though being a careful guy, [Pete] wrote to the state of Michigan in order to ensure that his modifications won’t get him pulled over. He has yet to hear back, but in the meantime, he merely needs to start the bike with the brakes applied to trigger the ATtiny85 to run the lights in “normal mode.”

Continue reading to see a short demo video of his brake light mod in action.

Continue reading “Motorcycle Lighting Upgrade Ensures Other Drivers Know You’re There”