# Building a Vintage-Style Calculator with Panel Meters and Floating Point Math

Original title: Panel meter calculator with floating point

> Hacker News story 48884312 · language: en · submitted 2026-07-12
> Web version: https://zeli.app/story/48884312
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 36 · by [surprisetalk](<https://news.ycombinator.com/user?id=surprisetalk>) · 💬 9
[original](<https://lcamtuf.substack.com/p/panel-meter-calculator-with-floating>) · [HN discussion](<https://news.ycombinator.com/item?id=48884312>)

## Summary

I built a unique calculator using six SO-45 panel voltmeters and a vintage edgewise meter to display results with a retro aesthetic. The enclosure is crafted from maple wood with a custom CNC-machined keypad featuring NKK switches. Powered by an AVR128DA28 microcontroller, the device handles fixed-point arithmetic to manage fractions and negative numbers without the pitfalls of floating-point errors.

## Key quote

> Calculator UI is hell.

## HN discussion (9 comments)

### [msarnoff](<https://news.ycombinator.com/item?id=48935607>)

> I didn’t actually know about the Casio 14-A until now. I almost thought the picture was AI-generated. Four functions squeezed into that compact desktop unit in 1957? Impossible with the technology of the time…
>
> The Casio 14-A was indeed the world’s first all-electric desk calculator. But by “desk calculator,” they literally mean “a desk that is a calculator.” The display/keyboard pictured was literally attached to a desk filled with hundreds of relays and weighed 140 kg. [0]
>
> The “all-electric” claim is interesting. There had been scores of electric calculators for decades (Friden, Marchant, etc.) but were merely driven by an electric motor. The calculations were still performed by gears and cams and linkages.
>
> https://www.casioeducation.com/primary-calculators/14-a

### [imglorp](<https://news.ycombinator.com/item?id=48935809>)

> Today I learned you can use generic GPIO PWM to fake an analog voltage.
>
> https://ww1.microchip.com/downloads/en/Appnotes/90003250A.pd...

### [e28eta](<https://news.ycombinator.com/item?id=48936895>)

> Awesome project. The video moves a little fast to fully appreciate it, but I did like how it was short & to the point.
>
> It could be fun to implement a scientific notation result display for answers that would otherwise overflow, although off the top of my head I'm not sure what the cleanest way to do that is.

---

## Cite

- Page: https://zeli.app/story/48884312
- Date: 2026-07-12
- Source: lcamtuf.substack.com (https://lcamtuf.substack.com/p/panel-meter-calculator-with-floating)
- Hacker News: https://news.ycombinator.com/item?id=48884312

## Other languages

- zh: https://zeli.app/zh/story/48884312 · markdown: https://zeli.app/zh/story/48884312.md
- ja: https://zeli.app/ja/story/48884312 · markdown: https://zeli.app/ja/story/48884312.md
- ko: https://zeli.app/ko/story/48884312 · markdown: https://zeli.app/ko/story/48884312.md
- de: https://zeli.app/de/story/48884312 · markdown: https://zeli.app/de/story/48884312.md
- es: https://zeli.app/es/story/48884312 · markdown: https://zeli.app/es/story/48884312.md
