DIY Button Matrix Lights Up And Speaks I2C

[David Johnson-Davies] always wanted an illuminated button matrix for projects, but cost was never very friendly. That all changed when he discovered a cheap source of illuminated pushbuttons on Aliexpress, leading to this DIY 4×4 illuminated button matrix design which communicates over I2C. The button states can be read independently of setting the light pattern, and an optional interrupt signal gets pulled low whenever there is a change detected. Not bad for one PCB plus about $10-worth in components!

The device uses every single pin on an ATtiny88, and because each button gets its own pin the keypresses can be detected with pin-change interrupts. The state reporting of buttons over I2C is unambiguous, even when multiple buttons are pressed simultaneously. A simple protocol provides all the needed functionality, and all connections are brought to the board’s edge to allow for easily tiling multiple panels.

The GitHub repository contains the code and PCB files and [David] helpfully shared the board files to OSH Park and PCBWay for easy ordering. In addition, he provides two demos (Tacoyaki and Tacoyaki+) which are games related to the classic Lights Out to show off the matrix.

LED Matrix And A Phototransistor Make A Reverse Camera

A digital camera has an array of sensors that captures light reflected or transmitted onto it. This build is something closer to a reverse camera – a single sensor that makes images on a matrix of LEDs. And we think it’s pretty neat.

We have to admit to being a little confused by [marciot]’s LED matrix scanner when we first stumbled upon it. From the video below we thought that the LEDs in the matrix were being used both to detect incident light and as a display. We’ve seen LEDs used as photodiodes before, so such a contraption could work, but that’s not what’s going on here. A phototransistor is wired to an Arduino Uno and positioned above a 32×32 RGB LED matrix. A scanning routine rasters over the LEDs in the matrix while the sensor watches, and then the program turns on the LEDs that the sensor saw during the scan. Positioned far above the matrix, a large disc of light results, making it look like the phototransistor is beaming light down onto the matrix. The effect is reinforced by placing something between the sensor and the matrix, which casts a virtual shadow. Used close to the LEDs the sensor acts more like a light pen.

It’s a cool effect and it looks like a fun project to throw together. Refresh time could perhaps be a bit snappier, though; maybe an ESP32 could help with that.

Continue reading “LED Matrix And A Phototransistor Make A Reverse Camera”

Reinking Dot Matrix Printer Ribbons Because It’s Fun, Okay

Ink! No matter the printer you’ve got, whether it be inkjet, laser or otherwise, it’s the consumables that will send you broke. At times, the cost of Hewlett-Packard black ink has exceeded the price per volume of human blood, and shareholders around the world have rejoiced.

As a retrocomputing reprobate, I have a personal dilection for printers of the vintage persuasion. My previous dalliances have involved fully fledged office copiers, but lately I’ve found myself tinkering with dot matrixes of a 1980s vintage. These workhorses are now reaching middle age, and as you’d expect, their ribbons are a little worse for wear after all this time.

Replacements are cheap enough for the most common printers, but shipping takes weeks and hackers are an impatient bunch. Plus, if you’ve got one of the more obscure models, it’s unlikely you’ll find a fresh cart just sitting on the shelf. It was these factors that spurred my good friend [Cosmos2000] and I into action.

Continue reading “Reinking Dot Matrix Printer Ribbons Because It’s Fun, Okay”

Relive The Dot Matrix Glory Days With Your 3D Printer

With the cost of 3D printers dropping rapidly, we’ve started to see a trend of hackers re-purposing them for various tasks. It makes perfect sense; with the hotend and extruder turned off (or removed entirely), you’ve got a machine that can move a tool around in two or three dimensions with exceptional accuracy. Printers modified to carry lasers, markers, and even the occasional rotary tool, are becoming a common sight in our tip line.

Last year [Matthew Rayfield] attached a marker to his 3D printer and had it sketch out some pictures, but recently he decided to revisit the idea and try to put a unique spin on it. The end result is a throwback to the classic dot matrix printers of yore utilizing decidedly modern hardware and software. There’s something undeniably appealing about the low-fi nature of dot matrix printing, and when fed the appropriate images this setup is capable of producing something which we’ve got to admit is dangerously close to being art.

To create these images, [Matthew] has created “Pixels-to-Gcode”, an online service that anyone can use to turn an arbitrary image into GCode they can feed their 3D printer. There’s a number of options available for you to play with so you can dial in the specific effect you’re looking for. Pointillist images can be created using a tight spacing of dots, but widen them up, and your final image becomes increasingly abstract.

The hardware side of this project is left largely as an exercise for the reader. [Matthew] has attached a fine-point pen to his printer’s head using a rubber band, but admits that it’s far from ideal. A more robust approach would be some kind of 3D printed device that allows you to quickly attach your pen or marker so the printer can be easily switched between 2D and 3D modes. We’d also be interested in seeing what this would look like if you used a laser mounted on the printer to burn the dots.

Back in the ancient days of 2012, we saw somebody put together a very similar project using parts from floppy and optical drives. The differences between these two projects, not only in relative difficulty level but end result, is an excellent example of how the hacker community is benefiting from the widespread availability of cheap 3D motion platforms.

Continue reading “Relive The Dot Matrix Glory Days With Your 3D Printer”

Modernizing A Soviet-era LED Matrix

Used in everything from calculators to military hardware, the 3LS363A is an interesting piece of vintage hardware. With a resolution of 5 x 7 (plus a decimal point), the Soviet-made displays contain no electronics and are simply an array of 36 green LEDs. It’s not hard to drive one of them in a pinch, but [Dmitry Grinberg] thought this classic device deserved a bit better than the minimum.

He’s developed a small board that sits behind the 3LS363A and allows you to control it over I2C for a much more modern experience when working with these vintage displays. Powered by the ATtiny406, his adapter board makes it easy to chain the modules together and even handles niceties like flipping the displayed image to account for different mounting positions. While most of us probably won’t have the chance to play around with these relatively rare displays, there’s still plenty of useful information here if you’re thinking of creating your own I2C gadgets.

In his write-up, [Dmitry] explains his rationale behind the design and some of the quirks of working with the display. For example he explains how he gave each column of the display its own FET, but to save space on the board ended up running the single decimal point (technically its own column) directly off of a spare GPIO pin. Relying on the low duty cycle, he even left current limiting resistors off the design. The end result is a tiny board that keeps the same footprint of the 3LS363A itself.

[Dmitry] went all out with developing the firmware for his new “smart” 3LS363A displays, and has written up documentation for the different commands he has implemented. From re-configuring the I2C address to updating the firmware, he’s made sure no stone was left unturned for this project. We’re not ones to shy away from a quick and dirty code, but it’s always nice to see when somebody has really put some thought into the software side of a project.

We’ve seen our fair share of oddball Soviet displays here at Hackaday, utilizing everything from heavy duty incandescent bulbs to remarkably tiny “intelligent” LEDs. While it’s unlikely any of them will dethrone the nixie as king of the retro display devices, it’s always interesting to see unusual hardware being used in the wild.

Restoring A Forgotten Dot-Matrix Printer

Dot matrix printers are the dinosaurs that won’t go extinct. They are not unlike a typewriter with the type bars behind the ink ribbon replaced by a row of metal pins controlled by solenoids, each pin being capable of printing a single pixel. At their best they could deliver a surprising level of quality, but their sound once heard is not forgotten, because it was extremely LOUD.

[Wpqrek] bought an old dot-matrix printer, a Commodore MPS 803. Sadly it didn’t live up to the dot-matrix reputation for reliability in that it didn’t work, some of its pins weren’t moving, so he set to on its repair. Behind each of those pins was a solenoid, and after finding a crack in the flexible ribbon to the head he discovered that some of the solenoids were open-circuit. On dismantling the head it became apparent that the wires had detached themselves from the solenoids, so he very carefully reattached new wires and reassembled the unit. Of course, he had no replacement for the flexible ribbon, so he made a replacement with a bundle of long lengths of flexible hook-up wire. This hangs out of the top of the printer as it follows the carriage, but for now it keeps the device working.

Dot-matrix printers are a favourite for our readership. Among others, we’ve seen another Commodore get the Python treatment, as well as an Apple capable of printing in full colour.

Full Color Dot Matrix Is The Art We Need

Fans of 80s-era computer printing technology are few and far between, but Apple’s ImageWriter II was a beast of a printer. This tractor feed dot-matrix printer is nigh-indestructible. The print quality was actually pretty great. It was loud as hell, which is a mark of quality electromechanical components. It could do color, and color dot-matrix art on tractor feed paper is the aesthetic we need. If you’re not convinced yet, you can also take off the perforations from tractor feed paper and make a cool little paper snake.

[Dandu] isn’t one to let things like serial printers and obsolete color dot matrix ribbons get in his way of creating ImageWriter art. A while ago, he printed off some incredible art using some obsolete equipment, and the results are better than what you would expect.

The process for creating full-color art on a dot-matrix printer was to plug the ImageWriter into an old Mac (an LC III in this case, with 12 MB of RAM). Photoshop (version 3.0!) was used to open a JPEG, and MacPallete II used to send the data to the printer. This isn’t a process that prints all the colors all at once; first the yellow is printed, and the tractor feed paper is brought back to the beginning. Then the magenta is printed, then the cyan, then the black. The single page of art took 20 minutes to print, and you can see a sped-up version of this process below.

Yes, the ImageWriter II can print in full color, but who cares about this now? A few people apparently — a company is now remanufacturing ImageWriter II color ribbons — opening the door to retro art for all. Yes, that ImageWriter in your basement still works, so let’s see what you can do with it.

Continue reading “Full Color Dot Matrix Is The Art We Need”