ESP8266-Powered Receipt Printer Puts RESTful API On Dead Trees

Taking his digital information into the real-world, [Davide Gironi] has built his own note transcriber from a point-of-sale receipt printer and an ESP8266.

You’ve seen these receipt printers at the order window of restaurants. A server puts in an order from any of the machines throughout the restaurant and a paper summary spits out for the chef line to start in on (and even cuts itself off from the roll).  Why shouldn’t we have this convenience in our own lives?

The printer communicates using a variant of the Epson Standard Code for Printers, for which [Davide] has written a library and thankfully shared the code. Adding an ESP8266 using a couple voltage regulators and some passive components makes this wireless, except for power. It has all the fun bells and whistles to set up the WiFi credentials and once running, just push the button on the base and it’ll spit out your data.

But wait, where is that data coming from? The web-based settings page lets you configure a URI to the RESTful source of your choosing. (XKCD has one, don’t they?) It also lets you configure header, footer, error messages, and of course your company hacker logo.

One of our favorite receipt-printer moments was when Hackaday editor of yore [Eliot Phillips] brought a selfie receipt printer to Supercon. We couldn’t find any pictures of that one, so we’ll leave you with the excellent hack [Sam Zeloof] pulled off by cramming one of these into a Polaroid camera.

Continue reading “ESP8266-Powered Receipt Printer Puts RESTful API On Dead Trees”

When Toothbrushes, Typewriters, And Credit Card Machines Form A Band

Many everyday objects make some noise as a side effect of their day job, so some of us would hack them into music instruments that can play a song or two. It’s fun, but it’s been done. YouTube channel [Device Orchestra] goes far beyond a device buzzing out a tune – they are full fledged singing (and dancing!) performers. Watch their cover of Take on Me embedded after the break, and if you liked it head over to the channel for more.

The buzz of a stepper motor, easily commanded for varying speeds, is the easiest entry point into this world of mechanical music. They used to be quite common in computer equipment such as floppy drives, hard drives, and flatbed scanners. As those pieces of equipment become outdated and sold for cheap, it became feasible to assemble a large number of them with the Floppotron being something of a high-water mark.

After one of our more recent mentions in this area, when the mechanical sound of a floppy drive is used in the score of a motion picture, there were definite signs of fatigue in the feedback. “We’re ready for something new” so here we are without any computer peripherals! [Device Orchestra] features percussion by typewriters, vocals by toothbrushes, and choreography by credit card machines with the help of kitchen utensils. Coordinating them all is an impressive pile of wires acting as stage manager.

We love to see creativity with affordable everyday objects like this. But we also see the same concept done with equipment on the opposite end of the price spectrum such as a soothing performance of Bach using the coils of a MRI machine.

[Thanks @Bornach1 for the tip]

Continue reading “When Toothbrushes, Typewriters, And Credit Card Machines Form A Band”

Mini-Banners For Small Occasions

Do you often find yourself needing to make small signs? Perhaps you’re trying to put a notice on the office fridge, but you’re just not in the mood for the usual Comic Sans-on-A4 staple today. A banner of some sort would do the trick, but… a small one, right? [Mike Ingle] has the answer – making mini-banners on old receipt printers.

[Mike] was a fan of Paint Shop in the 1980s, which among other things, enabled the printing of long banners on the popular dot matrix printers of the era. Realising that receipt printers have a similar ability to print on a long continuous strip of paper, he decided to see if it was possible to create small banners using the hardware.

The hack is simple – ImageMagick is used to generate a one-bit black & white bitmap that is then processed with some custom C code to generate something the printer can understand. It’s then a simple matter of hacking up the original RS-232 cable to fit a DB-9 (aka DE-9) connector, and spitting out the instructions over serial.

The mini-banners are cool, and we could imagine having some fun with such a project, using it to print out tweets or putting it into service as a stock ticker. It’s a great example of cleanly interfacing with existing hardware to create something outside of the original design intentions. Such printers are fertile ground for hacks – like this printer that can spit out the US Constitution in 6 seconds flat.

Tightwad Hacks Label Printer, Beats Manufacturer At Own Game

Sometimes we hack for the thrill of making something new, and sometimes we hack to push back the dark veil of ignorance to shed fresh light on a problem. And sometimes, like when turning a used label printer into a point-of-sale receipt printer, we hack because we’re cheapskates.

We say that with the utmost respect and affection — there’s nothing to be ashamed of when your motive is strictly pecuniary. In [Dan Herlihy]’s case, hacking a cheap Brother label printer to use thermal paper meant saving $300 on a dedicated receipt printer. But it also meant beating Brother at their “Razor and Blades” business model that keeps you buying their expensive proprietary labels. A pattern of holes in the plastic label roll tells the printer what size labels are loaded, so [Dan] defeated that by breaking off a piece of the plastic and gluing it on the sensor. To convince the printer that plain thermal paper is label stock, he printed up a small strip of paper with the same pattern of black registration stripes that appear on the back of the labels. Pretty clever stuff, and it lets him print high-resolution receipts for his electronics shop on the seriously cheap.

[Dan]’s hack is simple, but may suffer from wear on the paper encoder strip. Perhaps this Brother hack using the gears as encoders will provide some inspiration for long-term fix.

Continue reading “Tightwad Hacks Label Printer, Beats Manufacturer At Own Game”

Need To Reference The US Constitution Fast? How’s 6 Seconds Sound?

CONSTI2GO-Thibault-Brevet-2

Well, unless you know exactly what you’re referencing it’s going to take you a lot longer, but this clever serial receipt printer hack will let you print the whole darn thing in just 6 seconds!

Commissioned by [Jeff Goldenson] for his LABRARY.bike (quite literally a pop-up library on a bike), it was actually shown off at SXSW Interactive — did anyone see it in person? The artist-hacker who created it is [Thibault Brevet], the guy who brought us the DRM chair that only works 8 times before it falls to pieces.

Anyway, this cool and rather suspicious looking tube with a serial cord hanging out contains an Arduino, a max232 chip and a small Li-Po battery. The Arduino communicates with the printer through the max232 chip by converting the TTL signal to RS-232. It has a single button on top, which when it is connected to the printer will send out the US Constitution over the serial interface via ESC/p language.

Did we mention how fast it is?

Continue reading “Need To Reference The US Constitution Fast? How’s 6 Seconds Sound?”

A Visually Satisfying Tape Ticker

This visually stunning tape ticker prints out [Horatius Steam’s] emails for him. It watches his email address for a secret trigger phrase in the subject line. Sure, thermal receipt printer projects are becoming rather common, but we can’t remember seeing one that took this much time and effort to make it into a showpiece.

The two parts that make this happen are the thermal printer with cutter module and the glass dome which is just large enough to house the business end of it. The driver PCB for the printer is hidden in the base (a paper tube which is painted to took like wood), which positions the outfeed near the bottom of the dome. This had the added benefit of leaving plenty of room for [Horatius] to proudly display the paper roll. Since the receipt printer is designed to work with a Windows machine there was no custom circuitry necessary.

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.