Printing anything with a thermal receipt printer

Over the last year, [James] has been a part of a few commercial projects that used a thermal receipt printer as part of the build. Something must have cracked in his mind, because [James] spent a lot of time developing a way to print customized content on receipt printers, connecting these printers to the Internet, and sharing content with other Internet-connected receipt printers. Even [James] doesn’t know why he spent so much time on this project; [James] figured he was bound to find something interesting. We’ve got to commend him for that.

[James] had been aware of the Adafruit Thermal Printer Library, but this library is a little kludgy. Text is the Adafruit Library’s forte, and while graphics and non-ASCII characters are possible they’re certainly not easy to print with the existing libraries. With his current system based on HTML, CSS, and Javascript, [James] has a really easy way to print anything he can put on a webpage on receipt paper.

Getting his receipt printer onto the Internet had its own challenges. After wrangling with the Arduino Ethernet library through the month of February, [James] realized larger prints (about 15cm of paper) would fail inexplicably. To get around this, [James] wrote an HTTP client for the Arduino that would fetch data, put it on the SD card, and then start printing.

Right now, [James]’ project is a polished as anyone could hope. We’re a bit concerned – although we completely understand –  that he could get sucked into the black hole of pointless development of receipt printer software so easily. All was not for naught, though; now anyone can make very professional-looking prints on receipt paper very easily.

Stair accent lights made from cheap LED strips

We really like [Geert’s] take on accent lighting for his stairs. He built his own LED channels which mount under the bullnose of each step. The LED strips that he used are actually quite inexpensive. They are RGB versions, but the pixels are not individually addressable. This means that instead of having drivers integrated into the strip (usually those use SPI for color data) this strip just has a power rail and three ground rails for the colors. Ten meters of the strip cost him under forty dollars.

He did want to be able to address each step separately, as well as mix and match colors, so he designed the driver board seen above to use a set of TLC5940 LED drivers. These are controlled by the Arduino which handles color changing and animations. It will eventually include sensors to affect the LEDs as you walk up the stairs. Each strip is mounted in a piece of angle bracket, and they’re connected back to the driver board using telephone extension wire.

Floppy drive as an audio sampler

Here’s a floppy drive which is being used as an audio sampler. At first glance we thought this was another offering which drives the stepper motor at a specific frequency to generate that characteristic sound at a target pitch. But that’s not what’s happening at all. The floppy is actually being used as a storage device (go figure).

From what we can tell, it’s being used almost like an 8-track tape. A PWM signal is stored on one circular slice of the disk, then the head can be moved back to that same “track” to play back the wave form. The head doesn’t move during playback, but just keeps reading the same track of bits. To the right you can see an Arduino board. This allows for MIDI control of the track selection. [Alexis] shows off some keyboard control in the video after the break. There’s a buffer chip on the breadboard which allows the audio output to be quickly switched off as the floppy drive head is moved. This keeps garbage out of the sound until the new track can be read.

[Read more…]

Using GPS to stay aware of red light cameras

red-light-camera-alerter

Depending on how you view them, red light cameras are a great way to get people to drive carefully, or an utter nuisance. We agree with the latter opinion, as does [Dave], so he built a handy little device that alerts him when he’s about to approach one of these intersections.

His Red Light Camera Alerter is based around an Atmega 328P sporting the Arduino bootloader. The micro obtains GPS coordinates while [Dave] is driving, comparing his current location with a table of all known red light intersections in the area. As he nears a red light camera, the status LED changes colors from blue to yellow to red as he gets closer, making it easy to keep aware of his situation. He also included an Adafruit OLED display in his device, which relays his speed, GPS coordinates, heading, and actual distance from the red light in real time.

While [Dave] admits that he doesn’t really have a need for the alerter as there are only a couple located in his immediate vicinity, he says it was a fun and easy way to get some experience with using GPS sensors in his projects. He doesn’t have any video of it in action, but you can find the code he uses to drive the alerter on his blog.

Building a game clock for Go or Chess

[Matias] is just getting into hobby electronics and decided to push the limits of his skill by building this game clock. He comes from a software design background and that really shows through in the UI design seen in the video after the break. We enjoy the journey through his prototyping process which started with an Arduino and a breadboard, and ended with this standalone timer.

After building the first working prototype with four buttons and a character LCD, he migrated to a plastic ice cream container as an enclosure. This worked well enough, but the flimsy case needed an upgrade. As he looked toward the next version he decided to move to an Arduino Nano board to save on space. The rest of the components were soldered to some protoboard, with a pair of pin headers to receive the Nano. The finished board is the same length as the Nano and only about twice as wide.

The box was modeled on the computer (it looks like SketchUp to us be we could be wrong) then cut from pieces of Masonite. It hosts the character LCD with a pair of arcade buttons for each player to shift the time burden to his or her opponent. The middle button pauses the game, and there’s a trimpot on the back to adjust the screen contrast. [Matias] managed to include a surprising number of settings which will make this little box useful for a wide range of game types.

[Read more…]

Adding an electronic lock to a DIY book safe

electronic-book-safe

DIY book safes are well and good, but if you give someone enough time to peruse your book collection, the 3-inch thick “Case study on Animal Husbandry Techniques during the 14th Century” is likely to stand out among your collection of hand-bound “Twilight” fan fiction. In an attempt to teach his friend a bit about microcontrollers and circuits, [Jonathan] spent some time adding a bit more security to your run of the mill book safe.

The pair started out with the time-consuming process of gluing the book’s pages together and creating enough hollow space for both storage and the electronics. With that out of the way, they installed a latch and servo motor inside the cavity, the latter of which is controlled using an Atmega328p with the Arduino bootloader. To gain access to the goodies stashed away inside, Jonathan hooks up a small PS/2 keypad and enters a passcode. This triggers the servo motor, opening the latch.

While the latch likely only adds a nominal bit of security to the book safe, it’s a fun enough learning exercise to justify the time spent putting it together.

Continue reading to see a short video of [Jonathan’s] electronic latching book safe in action.

[Read more…]