Smoothing Big Fonts On Graphic LCDs

Here’s a neat little trick: take the jaggies out of scaled fonts on the fly! This technique is for use on graphic displays where you might want to scale your fonts up. Normally you’d just write a 2×2 block of pixels for every area where there would have been one pixel and boom, larger font. Problem is, that also multiplies each empty area and you end up with jagged edges in the transitions that really catch your eye.

[David Johnson-Davies] entered big-brain mode and did something much cleverer than the obvious solution of using multiple font files. Turns out if you analyze the smoothing problem you’ll realize that it’s only the angled areas that are to blame, horizontal and vertical scaling are nice and smooth. [David’s] fix looks for checker patterns in what’s being drawn, adding a single pixel in the blank spots to smooth out the edge incredibly well!

The technique has been packaged up in a simple function that [David] wrote to play nicely in the Arduino ecosystem. However, the routine is straightforward and would be quick to implement no matter the language or controller. Keep this one in your back pocket!

Now if all you have on hand is an HD44780 character LCD, that one’s arguably even more fun to hack around on just because you’re so limited on going beyond the hard-coded font set. We’ve seen amazing things like using the custom character slots to play Tetris.

Hackaday Podcast 077: Secret Life Of SD Cards, Mining Minecraft’s Secret Seed, BadPower Is Bad, And Sailing A Sea Of Neon

Hackaday editors Mike Szczys and Elliot Williams are deep in the hacks this week. What if making your own display matrix meant a microcontroller board for every pixel? That’s the gist of this incredible neon display. There’s a lot of dark art poured into the slivers of microSD cards and this week saw multiple hacks digging into the hidden test pads of these devices. You’ve heard of Folding@Home, but what about Minecraft@Home, the effort to find world seeds from screenshots. And when USB chargers have exposed and rewritable firmware, what could possibly go wrong?

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Take a look at the links below if you want to follow along, and as always, tell us what you think about this episode in the comments!

Direct download (60 MB or so.)

Continue reading “Hackaday Podcast 077: Secret Life Of SD Cards, Mining Minecraft’s Secret Seed, BadPower Is Bad, And Sailing A Sea Of Neon”

Review: Calculator Kit Is Just A Few Hacks From Greatness

While most people are satisfied with a calculator application on their smartphone these days, there’s still something to be said for the old fashioned desk calculator. Maybe it’s the fact the batteries last long enough that you can’t remember the last time you changed them, or the feel of physical buttons under your fingers. It could even be the fact that it keeps your expensive smartphone from needing to sit out on the workbench. Whatever the reason, it’s not uncommon to see a real-life calculator (or two) wherever solder smoke tends to congregate.

Which is precisely the idea behind this DIY calculator kit. Available from the usual overseas retailers for about $15 USD, it has some hobbyist-oriented features such as the ability to decode resistor color bands, convert hexadecimal numbers, and calculate resistor values for driving LEDs. If you’re going to keep a knock-around calculator on your bench, why not build the thing yourself?

Given the dual nature of this product, a DIY electronics kit and a functional desk calculator for electronic hobbyists, it seems only appropriate to review both aspects of it individually. Which is good, since there may be more to this product than just the sum of its parts.

Continue reading “Review: Calculator Kit Is Just A Few Hacks From Greatness”

A Microcontroller Display With A Classic Twist

In a fit of lock-down-induced boredom, [Peter Z] has turned his smartphone into an LCD screen (simulation) via an Android app (German language, Google Translate link), so that a mobile device can be plugged into your favourite microcontroller and the classic HD44780 LCD look can be replicated on its screen.

It doesn’t speak standard HD44780, but rather a custom UART serial protocol, so if you’re looking for something to replace a busted LCD, this isn’t your bag. But if you are looking for a large UART terminal for debugging, with a nice aesthetic, you win.

We’d guess that a serial-to-Bluetooth converter could also be made to function, with a bit of work. The protocol is trivial too, meaning that almost any microcontroller could make use of it. All the code as well as the APK is available from the forum linked above, and there is a YouTube video of it in operation below.

The number one complaint in the comments is going to be that this doesn’t emulate a HD44780, so if that’s really what you want, read this deep-dive into the HD44780 and get hacking.

Continue reading “A Microcontroller Display With A Classic Twist”

Shower Water Monitor Tracks The Dollars And Cents

There’s nothing quite as relaxing as a long, hot shower. This has the tendency of making the bather absent minded as to the amount of water being used, which can lead to excessive bills. [LiamOSM] built a device to monitor this instead, and calculate the cost, to boot. 

The device consists of an Arduino hooked up to a cheap flow meter sourced from Banggood. The sensor consists of a paddle wheel that sits in the water flow, fitted with a magnet. A hall effect sensor picks up pulses as the magnet spins, and counting these allows the flow rate to be measured. An HD44780 LCD screen is used to display the readings, controlled over I2C.

To avoid issues in the bathroom environment, the enclosure was designed to be waterproof. The LCD is mounted behind a clear plastic window sourced from vegetable packaging, and the button chosen was specially selected for its sealing grommets. We’d love to see a proper submersion test, but for the most part, it appears to be doing a good job in the bathroom.

If you’re interested in monitoring your water use as a household, you might find it possible to piggy back on the municipal meter.

Stylish Alarm Clock Rocks A VFD

There are a great many display technologies available if you wish to make a digital clock. Many hackers seem to have a penchant for the glowier fare from the Eastern side of the Berlin Wall. [ChristineNZ] is one such hacker, and managed to secure some proper Soviet kit for an alarm clock build.

The clock employs an IV-27M vacuum fluorescent display, manufactured in the now-defunct USSR. Featuring 13 seven-segment digits, it’s got that charming blue glow that you just don’t get with other technologies. A MAX6921AWI chip is used to drive the VFD, and an Arduino Mega is the brains of the operation. There’s also an HD44780-compliant LCD that can display further alphanumeric information, and a 4×4 keypad for controlling the device.

The best part of the build though is the enclosure. The VFD is encased in a glass tube, and supported at either end by 90-degree copper pipe couplers. These hold the VFD aloft, and also act as a conduit for the wires coming off each end of the tube. It’s all built on top of a wooden base that holds the rest of the electronics.

It’s an attractive build, and we love the floating look created by the glass tube construction. It’s not the first time we’ve seen old Russian VFDs, and we doubt it will be the last. Video after the break.

Continue reading “Stylish Alarm Clock Rocks A VFD”

Gamifying Household Chores Helps Get The Kids To Pitch In

It’s rare to find anyone that gets excited about doing chores. This can lead to members of a household abrogating their duties. In these cases, enforcement is a common tactic. Tired of laminated chore grids and inconsistent results, [alastair-a] decided to tech up with an electronic chore tracking system.

[alastair-a]’s Task Manager is based around an Arduino Nano, fitted with the ever-popular HD44780-compatible LCD screen. Interfacing with the unit is via rotary encoder and RFID tag, while a real-time clock module keeps track of the time.

A custom data structure is used to manage tasks. This allows varying frequencies to be set for different tasks, as well as keeping track of the time of completion by different users. Each user has their own personal RFID tag, which can be swiped across the reader to indicate when a chore has been done.

The initial intent was to have the device print reports each week in order to reward the best performing members of the household. However, [alastair-a] reports the device was so popular with the younger members of the household, that they seem to have forgotten about rewards entirely!

We’ve seen chore reminders before; it’s often popular to build them as IoT devices.