Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

readme.md

Pinary Counter

An 8-bit implementation of a binary counter, that is controlled with buttons and displays its output on LED's, using Raspberry Pi and its GPIO pins.

Final 2024 Robotics Project, by Luke Melaia

Pinary Counter is an 8-bit binary counter - a program which counts up or down from 0 to 255 in increments of 1, using 8 bits to store and display the count. The counter will loop back and start counting again from 0 when counting up past 255, looping back to 255 instead when counting down below 0.

For user interaction, using Raspberry Pi and the GPIOZero library, Pinary Counter uses: 8 LED's to display the 8 bit counter output to the user, and 2 Buttons for the user to increment and decrement the counter. The Buttons can be held to increment and decrement the counter quicker. An extra (optional) indicator LED can also be connected, which is lit when the Pinary Counter program is running, and turned off when it stops.

Pinout:

          == L1 L2 L3 L4 L5 L6 == L7 L8 -- 3V -- -- -- == -- -- -- 3V    Pin 1
Pin 40    -- -- -- == LI == BI BD -- -- == -- -- == -- -- -- == 5V 5V
Component ID Pin Number GPIO Pin Number
Increment Button BI 28 1
Decrement Button BD 26 7
Indicator LED LI 32 12
Bit-128 LED L1 37 26
Bit-64 LED L2 35 19
Bit-32 LED L3 33 13
Bit-16 LED L4 31 6
Bit-8 LED L5 29 5
Bit-4 LED L6 27 0
Bit-2 LED L7 23 11
Bit-1 LED L8 21 9
3 Volts 3V
5 Volts 5V
Ground ==
Not Used --