Binary Counter
This assignment idea is to build and program smart circuit using Arduino UNO which reads a signal from an input component to control an action component using Code Blocks.
I've been inspired by this binary counter, but the assignment require using inputs along with the outputs,
So I've used push buttons from the kit (there were like 5 buttons)
In this week's assignment, I've used TinkerCAD to design and simulate the circuit. And for building the real circuit, I've used these components:
Arduino UNO, 5 Push buttons, 3 LEDs, 3 resistances 220 Ohm, 5 resistances 10 Kilo Ohm, Jumpers.
TinkerCAD platform
Here are the design steps using TinkerCAD wiring and code blocks.
first step was to convert the decimal to binary to identify the shape of LEDs
Second step was to extract the components, and wire them with together using breadboard.
Third step was to use the TinkerCAD code blocks to build the code, firstly was to identify 5 variables, after that the code went down with the if and else function as shown in the screenshots.
after building the code on the TinkerCAD code blocks, I've grabbed the code from the text area copy and pasted it on the Arduino IDE software,
Then, the real circuit was wired and the code was uploaded to the Arduino
I had some issues concerning the real circuit, but I've tried to use the multimeter to detect where is the error, I also used the if condition in strange way, even it worked well :D, but I knew after that, that there is other way to use it, which is if _ if else _ else
In this implementation process, I've not asked in direct way the advice for the code.
but I understood this if condition, how it goes with more that two cases from the instructor on the midweek session.
So, that was great addition