Hello World!
blog for everything
EntriesAbout Me

8bit Bitwise calculator

By bshabanov
Published in Electronics
August 09, 2020
1 min read

Often when I write my code for Arduino/AVR, I use binary or hex addresses and bitwise operations, and personally for me, its easier to use an online converter for debugging these addresses or use apps for bitwise, but the whole process to write my code and switch to check value online is just annoying, so I try to build my convertor.

0x02
0x02

The features I want in my calculator/converter are:

  • view simultaneously number in decimal, bin, and hex
  • easy switch between dec, bin and hex system
  • execute bitwise operations - OR, AND and SHIFT LEFT/RIGHT

0x02
0x02

The layout is separate in two groups - displays and keypad.

The displays are organized in two 4 digits 7SEG for the binary number, one 3 digits 7SEG for the decimal number, and one 2 digits 7SEG for the hex number.

The keypad contains 20 buttons - (0-9 and A-F) and four special buttons - EXE, SHIFT, AND, and OR.

The calculator is built from atmega328 and three 74HC595, two of which are used for selecting digit from 7SEGs, and one is used to encode a digit in the display.

UPDATE 1: 12.08.2020

Today I install keycaps on the keyboard. Originally they were purchased to replace one of my laptop keys. I couldn’t find anywhere to buy one key only, so I bought a whole set, and since I have no use of the other caps, I convert them to my calculator keycaps. In the beginning, I try to make caps to be detachable, but couldn’t find any solution, and instead, I just glued the switches and caps directly.

0x02
0x02

*the project is still in development.


Tags

#atmega328#7SEG Display#bitwise#avr
Previous Article
ESP8266 AC Controller

bshabanov

Discover the world

Categories

Code
Misc
Electronics

Related Posts

ATtiny85 Candle
December 28, 2020
1 min
0x48 0x65 0x6c 0x6c 0x6f 0x20 0x57 0x6f 0x72 0x6c 0x64 0x21
2021 and still discovering the world