Skip to the content
2 layers74.5 × 146 mmCalculator, the printed circuit board in 3D

Open source scientific calculator built on Raspberry Pi Pico W — custom PCB, WiFi messaging, IR projector control and games.

Size
74.5 × 146 mm
Copper layers
2
Thickness
1.6 mm
Parts
48
Nets
37
Pads
211
Tracks, vias
315, 0
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
22 Mar 2026
Updated
6 Jun 2026

Overview

Calculator is an open-source printed circuit board by Samuel-Malaj, from the Samuel-Malaj/PicoCalc-Open-Source-Student-Scientific-Calculator repository on GitHub. It is a 2-layer board of 74.5 × 146 mm with 48 parts on 37 nets, routed with 315 tracks and 0 vias.

It is built around the BC547 and TSAL6200. Its parts include 38 switches, 2 resistors, 1 diode, 1 transistor and 1 connector. It belongs with the radio and wireless boards and the RP2040 boards of this library.

Main components

2

README

README.md

PicoCalc-Open-Source-Student-Scientific-Calculator

Open source scientific calculator built on Raspberry Pi Pico W — custom PCB, WiFi messaging, IR projector control and games.

PicoCalc — Open Source Student Scientific Calculator

A fully custom scientific calculator built on the Raspberry Pi Pico W, designed specifically for students. Features wireless peer-to-peer messaging, IR classroom projector control, a custom PCB, and built-in games — all running on MicroPython.


Overview

PicoCalc is an end-to-end hardware and software project encompassing PCB design, embedded systems programming, wireless networking, and circuit design. Every component — from the button matrix to the IR driver circuit — was designed, calculated, and implemented from scratch.

This project was built entirely by a Year 10/11 student as an independent engineering project.


Features

Scientific Calculator

  • Full arithmetic operations with correct operator precedence
  • Scientific functions: sin, cos, tan, log, ln, sqrt, powers, factorials
  • Degree and radian mode switching
  • Expression history and ANS recall
  • Error handling for invalid inputs and edge cases
  • Custom expression parser built from scratch in MicroPython

Peer-to-Peer Messaging

  • Send and receive text messages between two PicoCalc devices over WiFi
  • UDP broadcast protocol for low-latency local communication
  • Designed for classroom use — share working, answers, or notes with a friend

IR Projector Control

  • 940nm IR LED with BC547 transistor driver circuit
  • Compatible with Hitachi, Maxell, Epson and Samsung projectors and displays
  • Up to 10 metre range achieved through transistor amplification
  • Allows students to control classroom projectors from their desk
  • NEC and SIRC IR protocol support

Games

  • Built-in simple games for use during breaks
  • Runs entirely on the calculator hardware — no additional software needed

Hardware

Custom PCB

  • Designed from scratch in KiCad
  • Manufactured by PCBWay
  • 2-layer PCB with row traces on F.Cu and column traces on B.Cu
  • Dimensions: 75.5mm × 146mm

Components

ComponentDescription
Raspberry Pi Pico WMain microcontroller with WiFi and Bluetooth
38× 6mm Tactile SwitchesButton matrix (THT, through hole)
TSAL6200940nm IR LED, 3mm horizontal
BC547NPN transistor for IR LED driver
22Ω ResistorIR LED current limiting
1kΩ ResistorTransistor base protection
2.42" SSD1309 OLED128×64 I2C display
2× AA Battery HolderMPD BC2AAPC, powers via VSYS

Button Matrix

  • 38 buttons arranged in a row/column matrix
  • GP0–GP7: row outputs
  • GP8–GP15: column inputs with internal pull-up resistors
  • Only 16 GPIO pins required for 38 buttons
  • Scanning rate fast enough to never miss a keypress

IR LED Circuit

  • VSYS (3V from 2× AA) powers the LED circuit
  • 22Ω current limiting resistor → 82mA through LED
  • BC547 transistor switches the high current safely
  • GPIO only supplies <2.6mA to the base — well within Pico's 16mA limit

Power

  • 2× AA batteries connected to VSYS pin
  • Auto power-off via MicroPython lightsleep after inactivity
  • Lightsleep current draw: ~1-2mA — significantly extends battery life

Software

MicroPython

  • Written entirely in MicroPython
  • Modular codebase — calculator, display, networking, IR all separate modules
  • Custom expression parser for evaluating scientific expressions
  • Uses built-in math library for scientific functions

WiFi Communication

  • Both devices connect to the same network
  • UDP sockets for low-latency message transmission
  • Graceful handling of connection drops and reconnection

PCB Design

Designed in KiCad. Key design decisions:

  • 2-layer routing: Row traces on F.Cu, column traces on B.Cu — allows the button matrix grid to work without short circuits
  • Through hole components: All buttons and connectors are THT for mechanical strength under repeated use
  • RF keepout zone: Respected around the Pico W antenna to preserve WiFi/BLE signal strength
  • Removable Pico: THT header holes allow the Pico W to be plugged in and removed — not permanently soldered
  • Battery on reverse: Battery holder mounted on B.Cu to keep the front face clean

Schematic & Design Files

  • KiCad schematic and PCB layout files included in /hardware
  • Gerber files included in /hardware/gerbers
  • BOM included in /hardware/BOM.csv

What I Learned

  • PCB design and manufacturing process (KiCad → Gerber → PCBWay)
  • Ohm's law applied to real circuit design (resistor calculations for IR LED and transistor)
  • Button matrix design — why a matrix uses N+M pins instead of N×M
  • Two-layer PCB routing and via usage
  • MicroPython embedded programming on real hardware
  • WiFi networking with UDP sockets on microcontrollers
  • IR remote control protocols (NEC, SIRC)
  • Debugging real hardware and firmware issues

Project Status

  • PCB designed and ordered
  • Schematic complete
  • IR LED circuit designed and verified
  • MicroPython calculator engine
  • Display driver integration
  • WiFi messaging
  • IR control implementation
  • Games

License

MIT License — free to use, modify and build upon.

Parts

48
QtyValueFootprintReferences
38SW_Push_Dual_x2Button_Switch_THT:SW_PUSH_6mm_H4.3mmSW1, SW2, SW10, SW11, SW12, SW13, SW14, SW15, SW16, SW17, SW18, SW19, SW20, SW21, SW22, SW23 +22
3MountingHoleMountingHole:MountingHole_3.2mm_M3H1, H2, H3
11000RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR2
122RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1
1BC547Package_TO_SOT_THT:TO-92_Inline_Horizontal1Q1
1BatteryBattery:BatteryHolder_MPD_BC2AAPC_2xAABT1
1Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_HorizontalJ1
1RaspberryPi_Pico_WModule:RaspberryPi_Pico_Common_THTA1
1TSAL6200LED_THT:LED_D3.0mm_Horizontal_O1.27mm_Z2.0mm_IRGreyD1

Similar boards

  • 2 layersTvbgone, the printed circuit board in 3D

    Tvbgone

    bikeNomad/micropython-tv-b-gone

    A MicroPython version of the classic TV-B-Gone tool with new code database

    5 parts17
  • 2 layers32 × 48 mmDiyIrTower, the printed circuit board in 3D

    DiyIrTower

    maehw/DiyIrTower

    Do-it-yourself infrared serial communication tower (compatible with LEGO IR serial tower)

    17 parts12GPL-3.0
  • 2 layers181.4 × 179.8 mmRubber duckey, the printed circuit board in 3D

    Rubber duckey

    ajvizganapathy-pixel/FlipperZero-DIY-STM32WB55-NucleusDark

    DIY Flipper Zero clone using STM32WB55CGU6 — KiCad PCB, Momentum firmware, 200+ apps, BadUSB scripts, wiring diagrams

    37 parts10
  • 2 layers76.8 × 63 mmFlopper one, the printed circuit board in 3D

    Flopper one

    JBlitzar/flopper-one

    esp knockoff flipper

    14 parts5GPL-3.0
  • 2 layersEsp32 gateway, the printed circuit board in 3D

    Esp32 gateway

    radioelf/esp32_gateway_MQTT

    PCB para Gateway ESP32

    79 parts3
  • 2 layers55.9 × 82.6 mmLIRC HighPowerSerialTransceiver, the printed circuit board in 3D

    LIRC HighPowerSerialTransceiver

    cedric-dufour/LIRC-HighPowerSerialTransceiver

    LIRC High-Power Serial Transceiver [CC-BY]

    40 parts1CC-BY-4.0
  • 2 layers62 × 82 mmSat ir link, the printed circuit board in 3D

    Sat ir link

    dmarcr1997/COR-SAT

    COR-SAT turns natural-language mission requests into tested Python mission packages for a Raspberry Pi satellite payload.

    21 partsMIT
  • 4 layers50 × 111 mmBlade, the printed circuit board in 3D

    Blade

    JosephStew-art/Blade-PCB

    Blade PCB project

    118 parts

Questions

How big is the Calculator PCB?

It measures 74.5 × 146 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Calculator use?

48 parts, built around the BC547 and TSAL6200. 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 Calculator KiCad files?

From the Samuel-Malaj/PicoCalc-Open-Source-Student-Scientific-Calculator repository on GitHub, at the commit this page was made from: the board is Hardware/Kicad/Calculator.kicad_pcb and its schematic Hardware/Kicad/Calculator.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Calculator design in my own project?

Its repository states no licence, so its author keeps all rights: ask Samuel-Malaj before reusing the design.