Binary Calculator and Logic Analyzer

This project involves building a calculator on pushbuttons and DIP switches. 2 binary DIP switches are compared against each using logic AND OR NOR NAND. Also addition and subtraction can be performed on this calculator.

Demo of the calculator


Picture of the breadboard and setup

Import programlogicgame1

Binary Calculator code and directories

Parts list: Pushbuttons

DIP Switches


Mbed Chip

Configurations for the parts can be found on mbed cookbook library and are linked below:


DIP and Pushbutton:

Mbed Chip:

PartsPin Placement
Pushbuttonp14, p15, p16, p17, p18, p23, p24
uLCD: 5V, RX, TX, GND, RESVu, p27, p28, GND, p30
DIPp19, p20, p21, p22
DIPp10, p11, p12, p13

Please log in to post comments.