posted Jul 6th 2011 9:01am by
Mike Szczys
filed under:
digital cameras hacks,
Microcontrollers

What could be better than a low-res black and white photograph printed instantly on paper that will yellow and crumple over time? Wow, we really need to work on our sales pitch. But all kidding aside, we love the idea that [Niklas Roy] came up with in order to build this thermal printing camera.
His Picasa album has two snapshots of the hardware. He’s using an LM1881 for video sync separation just like he did with his PING project. From there an ATmega8 microcontroller grabs each column from the image and prints it using the thermal printer. It looks like everything runs on a 9V battery which is nice for portability (although we still never got our hands on that rechargeable 9V we’ve been meaning to pick up). Perhaps just as impressive is that [Niklas] got this up and running with about 400 lines of code. Nice!
Of course you’ll want to see this in action so we’ve placed a video clip after the break. Just like old-timey cameras it looks like you’re going to need to sit still until the image is done printing.
Read the rest of this entry »
posted Jul 5th 2011 4:07am by
Brian Benchoff
filed under:
classic hacks,
video hacks

[Niklas Roy] sent in a project he just completed called PING! Augmented Pixel. At first glance the entire build is just a plain jane retro video game stuffed into an ATmega8 but looks can be deceiving. The video game is actually an augmented reality device that inserts a pixel into a video feed. The bouncing pixel can be manipulated with a camera – push the pixel and it goes off in another direction.
The project runs on an ATmega8 clocked at 16 MHz, and reads the video feed with the help of an LM1881 sync separator. There’s no schematics, but he thankfully included some code for his project. Everything is set up for PAL video, but this could be easily adapted for NTSC. Any Hack A Day readers want to take up the challenge of building this from just a description?
[Niklas] says there’s no reason this couldn’t have been done by Atari in the late seventies. There were economic reasons for not putting out a video camera controller, of course, and the R&D department may have been too busy playing Breakout with their eyebrows.
Check out the demo of the augmented pixel after the break.
Read the rest of this entry »
posted May 4th 2011 12:01pm by
Mike Szczys
filed under:
Microcontrollers

[Q] is an Electrical Engineer who works in an industrial setting. He frequently uses Programmable Logic Controllers at work but had never built one himself. He decided to undertake the project at home and managed to build a PLC that outputs 120V AC or 12 V DC and has optoisolated inputs.
On the circuit board you’ll find an ATmega8 and an EEPROM for extra data storage. Six outputs are controlled by relays since they are able to output either alternating or direct current. There are eight inputs which use optical isolators as buffers to protect the microcontroller.
So what did he end up using this for? It was part of his Christmas light setup last year. The image above shows the PLC in a water-tight electrical box with extension cords running to each of the devices he wishes to control. The example code is what he used on the X-mas setup, but it should be enough of a guide to program this to work with just about any application.
posted Feb 4th 2011 6:00am by
Mike Nathan
filed under:
Microcontrollers

[dunk] constructed an easy to use AVR-based USB controller with the ability to drive up to six R/C hobby servos at once. While the USB-powered Atmega8 he used supplies the necessary PWM signaling for all of the servos, an external power supply rated up to 30v at 3A is necessary to provide the 5v of power each servo requires. His project is an extension of the USB servo controller built by [Ronald Schaten] and includes several significant upgrades. The addition of 5 more servos aside, [dunk] switched to AVRlib routines for multi-servo control and PWM management, as well as added the aforementioned power supply to prevent an excessive current draw on the USB port. His tutorial includes a complete parts list, Eagle PCB schematic, the required USB servo source code, as well as a sampling of commands that can be issued to the servo controller.
posted Jan 26th 2011 9:00am by
Mike Szczys
filed under:
home hacks

[Chr] picked up a pack of remote control outlets in order to reverse engineer them and build control into his own projects. These can be plugged into outlets around your house and a relay inside each module will switch whatever device is plugged into it after receiving a command from the remote. Once he cracked open the control housing it was easy to find the data line for the RF module which was on its own board. He used a logic analyzer to capture data from various button presses and then spent some time deciphering the communication protocol. He used what he learned to roll the module and code into an interface box where an ATmega8 connects via USB and passes commands from a computer to the RF board. Now he’s added home automation via a computer quite inexpensively. After the break you can watch a clip of the outlets switched using a smartphone.
So why not just patch into the buttons on the remote? Well, this same project was attempted at our local hackerspace earlier this month and the buttons don’t just pull a pin to ground. They use tri-state logic and are arranged into a matrix that is a lot harder to mimic (if not impossible) with a microcontroller. Analyzing the communications going into the RF module is definitely the less labor-intensive of the two approaches.
Read the rest of this entry »
posted Nov 12th 2010 9:30am by
Mike Szczys
filed under:
led hacks

Yes! A radio control helicopter with a fairly high-resolution persistence-of-vision display is a beautiful thing. [Mziwisky's] handiwork is the result of several steps along the prototyping path. He built up a POV test rig on a breadboard, designed his first PCB for the project, and then went to work building it. After initially being inspired by a POV ceiling fan [Mziwisky] looked around to see if anyone else had already added a display to a helicopter. Indeed, this has been done before but there were very few details on the build.
The helicopter has two blades and each have the same hardware on them and gobbled up about ten hours of assembly time each. He basically built a printed circuit board using the blades as a substrate by attaching adhesive copper foil. This makes up the matrix for the LEDs and connects to a small circuit board with an ATmega8 and some shift registers mounted on the inside end of the blade. There’s also a 180 mAh LiPo battery pack, and a hall effect sensor to synchronize the display on each. The results are spectacular, as you can see in the video after the break, but there’s a few bugs left to work out in order to fully tame the 32 LEDs on each rotor.
Kind of looks like the future is happening right now.
Read the rest of this entry »
posted Oct 2nd 2010 10:00am by
Jakob Griffith
filed under:
wireless hacks

[Thomas Pfeifer] has taken the PPM signal produced by model aircraft wireless controllers, and with an ATMega8, converted the signal to act as a USB joystick. Which means you can now use a standard R/C remote control to fly model aircrafts on your computer. Of course now with PPM decoded you could also use the signal to control any electronic device. Like your mower, iPod, and we’ve even seen remote controlled pellet guns. Catch a video of [Thomas] flying a simulated quadrotor helicopter after the jump.
[Thanks Max]
Read the rest of this entry »
posted Jun 3rd 2010 1:22pm by
Mike Szczys
filed under:
tool hacks

We love our AVR Dragon programmer but it can be nice to have a cheap and simple in system programmer on hand too. The
USBasp is one such programmer that uses and ATmega8 as its only IC. It requires just a handful of components and can be purchased as a kit, or etched and assembled at home. If you source your own parts the chip does need to be programmed which makes for a
chicken-or-egg scenario. We’ve used the Parallel-port dongle (
schematic) from Adafruit’s
Spoke POV before. It’s basically just
a DAPA cable and a few resistors, a ribbon cable (use and old IDE cable if you have to) and a parallel port connector can have you up and running in no time. This is also a great way to get a friend into working with embedded systems. Order parts for a few of these and give them away to your buddies.