navigationGo.pngQuick Navigation
allprojects32.pngAll projects
hardware32.pngHardware
links32.pngLinks

favoriteStar32.pngTop projects
Alan numitron clock
Clapclap 2313/1386
SNES Pi Webserver
USB Volume/USB toys
Smokey amp
Laser cutter
WordClock
ardReveil v3
SNES Arcade cabinet
Game boy projects
cameleon
Home Presence Detector

github32.pngGitHub
AlanFromJapan

navigationMail.pngContact me

alanfjmail.png
3flags.pngWho's Alan?


Akizukidenshi
Elec-lab
Rand Nerd Tut
EEVblog
SpritesMods
AvrFreaks
Gameboy Dev
FLOZz' blog
Switch-science
Sparkfun
Suzusho
Datasheet Lib
Reddit Elec
Ermicro
Carnet du maker (fr)

resistor calculator

Last update: Wed May 8 00:18:00 2024
You can find on Aliexpress these "Resistor calculators" or "mini calculators" for less than 1,000 JPY or less than 500 JPY even, but using it and not making it, where's the fun in that? And the MCU they use aren't the flavor I'm used to so tinkering would take exponential time because the learning curve and yet another rabbit hole...
So let's make my own 😁!

Presentation

Principle

  • Make it usable (something I will use in the future)
  • Keep it simple (minimum power MCU, minimum viable functionnalities, etc.)
  • Make the PCB at home
  • Reuse parts I have at home for the display
  • Scavended Li-ion battery
  • Thought process

    Display

    Got lucky many years ago with a 福袋 at Akiba and got one HDSP-6504, veeeeeeeeeeery vintage (it's older than me, the datasheet is of 1977). I was saving it, but at some point you have to use your potions.
    ...but after some research it's a fail for this project: this puppy needs 22 pins to drive it! Solution is use a HT16K33 but that is a fine pitched SMD bot my homemade boards ... not sure it would work. So next time I'm not planning the board homemade.

    Plan B: cheap Alix/bay 0.91 inch OLED that cost 2USD. It's in the parts box, alone, just asking for it. And I used one for my Raspi Webradio Player which still works and left me a good impression. And it uses 4 pins and is 5v tolerant so all good.
    ... but after some research, I'd have to include ADA fruits libs, generate some nice text and graphics (now that I can I'd have to) etc. which is too much work compared to what I want to put in this precise project.

    Plan C: reuse an old Rapide7seg I made decade ago (2012!) and barely ever used. Means the CPU will have to be an ATmega88 (the smallest DIP28 of the family I have), a waste of power but I need that many pins.

    MCU

    Computation power required is minimal (no external crystal, internal oscillator fine), Electric power too, no need for special interface (I2C, TWI, ...). The differenciating factor will be ... the number of pins.
  • 10 digits + a reset button? = 11 buttons => 3x4 buttons matrix => 7 pins for the keyboard
  • ISP for programming => 0 hopefully? (reuse the buttons matrix ones)
  • LCD is 4 digits and 16 segments so "123k" or "456M" is possible but still needs 10 pins (7 data + 2 address + 1 control) it seems => 10 pins for the screen

  • ∑ = 17 pins needed. Add 2 for power, 1 for /Reset ... looking minimum at a 20 pins package.

    Keys matrix

    Sample from pcbheaven, scanning lines and rows.

    Implementation

    Bill of materials

    As much as possible done with parts laying around, so I won't be hitting the peak matching need/capabilities:
  • Buttons with clear cap (had to buy those on Aliexpress)
  • PCB made at home
  • MCU : ATmel88 since it's the smallest I can fit in the Rapide7seg board
  • Display : the Rapide7seg and a few commone anode 7segments
  • Schematics

    Reusing the Rapide7seg as much as possible, will just add a keyboard button matrix below.

    Source code

    Pictures

    Links

    Helpful sources

    Inspiration

    All content on this site is shared under the MIT licence (do what u want, don't sue me, hat tip appreciated)
    electrogeek.tokyo ~ Formerly known as Kalshagar.wikispaces.com and electrogeek.cc (AlanFromJapan [2009 - 2025])