Skip to the content
2 layers199.9 × 124.9 mmPico16c v2, the printed circuit board in 3D

Hi there, while you're here, maybe check out the newer version of this project: https://github.com/someyob/Pico16cV2

Size
199.9 × 124.9 mm
Copper layers
2
Thickness
1.6 mm
Parts
97
Nets
92
Pads
428
Tracks, vias
714, 18
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
9 Dec 2022
Updated
28 Jun 2024

Overview

Pico16c v2 is an open-source printed circuit board by someyob, from the someyob/Pico-16C repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 199.9 × 124.9 mm with 97 parts on 92 nets, routed with 714 tracks and 18 vias.

It is built around the 1N4148W, BS170 and BSS138. Its parts include 43 diodes, 42 switches, 5 resistors, 4 transistors and 2 connectors. It belongs with the RP2040 boards of this library.

Main components

3

README

README.md

Hi there, while you're here, maybe check out the newer version of this project: https://github.com/someyob/Pico16cV2

Pico-16C

Notes for new version 0.5:

  • added floating point entry and operations. Note that CicruitPython only uses single precision floats, so some results will seem unexpected. < examples follow > I may restrict the number of decimal places (for example, entering float mode by pressing f-FLOAT-{0..9,.}, where 0 to 9 represents the number of decimal points you want to work with) to 5, even though that doesn't really mitigate the issue. Best option would be for CircuitPython to match what Python 3 is able to handle double precision floats. Not going to get hung up on it, as I would typically not frequently use the calculator for floating point calculations.
  • Differences between Pico16C 0.5 and the HP 16C:
    • switching from an integer base to floating point will convert what's in the X register, but the opposite is not true. Further, the conversion from integer to float simply changes the representation, not the number. The stack is unchanged, and the word size is ignored.
    • added a 'hidden function' to allow for a 'thousands separator' (eg. 64,636) to make readability better for long numbers. Unfortunately, separators do not work for binary and hex representations (eg. 1100 1100 0001, or FFEH AE12) due to a bug in CicruitPython as of version 8)

Wanted an HP 16C calculator, the gold standard for early programmers. Didn't have one, too cheap to buy one off eBay, and while the new ones you can get from SwissMicro https://www.swissmicros.com/product/dm16l look great, they don't scratch my other itch, which is to play with microcontrollers and learn a new language (python).

20221216_111350

Python is well suited to this application given a full suite of excellent string manipulation and math libraries, adafruit libraries, etc. Execution speed is not an issue.

I was helped a lot during development with access to a couple of different software emulators out there (http://www.hp16c.org/ and https://stendec.io/ctb/rpn_prog.html), especially when I can see what's happening with the stack. The manual https://literature.hpcalc.org/community/hp16c-oh-en.pdf was also essential reading.

An early version of this project got a mention on the Raspberry Pi blog https://www.raspberrypi.com/news/replica-hp-16c-coding-calculator/ and on Adafruit's Python on Hardware newsletter https://blog.adafruit.com/2022/10/19/icymi-python-on-microcontrollers-newsletter-ladyada-at-espressif-devcon-this-week-circuitpython-8-beta-2-and-more-circuitpython-icymi-raspberrypi-micropython-raspberry_pi/

display

Tools and materials used:

  • Raspberry Pi Pico
  • 1602 LCD display (w. i2c backpack)
  • breadboards and soldering iron
  • perfboard, w. 22awg wire
  • level shifter module (only using 2 out of 4 lines for i2c)
  • two 3x4 and one 4x4 aliexpress keypads (modified to jam as close together as possible)
  • 3d Printer
  • Glue gun
  • PTouch Labelmaker
  • Laser printer (for keypad overlay), highlighter pens
  • Thonny with Circuitpython 7.2.3

The software emulates (mimics) the basic operations of a 16C, all in Reverse Polish Notation (RPN) with the standard X, Y, Z and T registers. What it's currently capable of:

  • integer entry in either hexadecimal, octal, decimal or binary
  • conversions between those bases
  • ordinary arithmatic (+ - / *), some bitwise operations (NOT, AND, etc)
  • stack operations x<->y, R^, Rv, LastX

Differences between this and a real 16C:

  • maximum 128 bit words (vs 16C 64 bit)
  • 16 character display, with eight 16 character windows, scrolling with shift-g < and > keys
  • 'Enter' key is standard size, not double lenth like a real 16C
  • Has a splash screen that gives you the current version number
  • Has a timeout feature that turns off the LCD after 5 minutes (hard coded)
  • The calculator is always 'running', ON and OFF simply turns off the display and backlight

Work to come in the near future:

  • floating point
  • more bitwise operations, 1's and 2's complement arithmetic

Work to come in the far future (if ever):

  • Programming mode

Parts

97
QtyValueFootprintReferences
421N4148WDiode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD1, D2, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23 +26
40SW_PushButton_Switch_Keyboard:SW_Cherry_MX_1.00u_PCBSW1, SW2, SW10, SW11, SW12, SW13, SW14, SW15, SW16, SW17, SW18, SW19, SW20, SW21, SW22, SW23 +24
410KResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2, R3, R4
2BS170Package_TO_SOT_THT:TO-92_InlineQ1, Q2
2BSS138Package_TO_SOT_SMD:SOT-23Q3, Q4
2Encoder_SwitchRotary_Encoder:RotaryEncoder_Alps_EC11E-Switch_Vertical_H20mmSW41, SW42
1220Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR5
1Aux I/OConnector_PinHeader_2.54mm:PinHeader_1x12_P2.54mm_VerticalJ2
1LEDLED_THT:LED_D2.0mm_W4.0mm_H2.8mm_FlatTopD43
1PicoMCU_RaspberryPi_and_Boards:RPi_Pico_SMD_THU1
1i2cConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ1

More from someyob/Pico-16C

1
  • 2 layers200 × 125 mmPico16c, the printed circuit board in 3D

    Pico16c

    someyob/Pico-16C

    Hi there, while you're here, maybe check out the newer version of this project: https://github.com/someyob/Pico16cV2

    91 parts16GPL-3.0

Similar boards

  • 2 layers101.6 × 137.4 mmOpenxcvr, the printed circuit board in 3D

    Openxcvr

    dawsonjon/OpenXcvr

    Cost Effective HF transceiver based on max1000 FPGA module

    155 parts38MIT
  • 4 layers130 × 110 mmOpenBeacon2, the printed circuit board in 3D

    OpenBeacon2

    etherkit/OpenBeacon2

    Multimode MEPT based on OpenBeacon

    261 parts15
  • 2 layers114 × 89 mmAyn-4b, the printed circuit board in 3D

    Ayn-4b

    afiskon/ayn-4b

    Portable QRP CW Transceiver

    278 parts7MIT
  • 4 layers81 × 113.2 mmAuralab Workstation Vishal, the printed circuit board in 3D

    Auralab Workstation Vishal

    Vishalbabu-09/Auralab_Workstation

    Advanced 4-layer PCB design featuring split-plane noise isolation (AGND/DGND) and asynchronous dual-core processing. Implements a handheld multi-tool oscilloscope, current tracker, and symmetrical DC power supply.

    81 parts1
  • 2 layers63.5 × 73.7 mmH7RTX V2 old1, the printed circuit board in 3D

    H7RTX V2 old1

    alberto-grl/H7RTX-V2-Schematics-PCB

    Schematics and PCB for a three-band direct sampling SDR. Using the internal ADC of an MCU, TX power is about 5 W. USB powered. Firmware code: https://github.com/alberto-grl/750RTX

    139 parts
  • 2 layers71.8 × 54.6 mmCurrent load, the printed circuit board in 3D

    Current load

    jaycosper/current_load

    Progarmmable current load PCB design in KiCAD 4

    54 parts
  • 4 layers65 × 30 mmSizif xxs, the printed circuit board in 3D

    Sizif xxs

    UzixLS/zx-sizif-xxs

    Smallest ZX Spectrum clone with real Z80 and FPGA

    90 parts50MIT
  • 4 layers106 × 63.5 mmBrineomatic, the printed circuit board in 3D

    Brineomatic

    hoeken/brineomatic

    Open Source Watermaker Controller.

    323 parts47LGPL-2.1

Questions

How big is the Pico16c v2 PCB?

It measures 199.9 × 124.9 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Pico16c v2 use?

97 parts, built around the 1N4148W, BS170 and BSS138. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Pico16c v2 KiCad files?

From the someyob/Pico-16C repository on GitHub, at the commit this page was made from: the board is production/pico16c_v2.kicad_pcb and its schematic production/pico16c_v2.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Pico16c v2 design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).