I was fascinated by the 7 segment, so i thought what if I can control it with a potentiometer, I searched google and of course I found a lot of people who did this before.
I used Tinkercad to build the circuit, and write the code and then simulate the circuit.
9 pins
8 pins
7 pins
6 pins
5 pins
4 pins
pins
2 pins
1 pins
0 pins
so I brought my components which are:
1 7 segment
1 potentiometer 1 k ohm
7 resistors 220 ohm
arduino uno
and I built my circuit, and then I used the blocks to write the code.
I ran the circuit to make sure that the code is working !
it did!!
After I simulate the circuit on Tinkercad I built the real circuit using these physical components:
7 Segment
Potentiometer 1 k ohm
7 Resistors 220 ohm
Arduino uno
White Breadboard
Jumbers
the video is shown the complete implementation process.
When I first start the circuit with physical components, I noticed that the numbers are only reached 6 when I applied the full voltage coming from the potentiometer, so I thought that the analog pin is changing the values from 0 to around 600, not to 1024 as it supposed to be so I changed the code according to this and it did work.
Exercise 1: Programming Arduino board to control one 7-segment display so that it counts down from 9 to 1
9 Pins
8 Pins
7 Pins
6 Pins
5 Pins
4 Pins
3 Pins
2 Pins
1 Pins
Exercise 2: Programming Arduino board to control one RGB LED so that it lights up with the following colors in order: Red, Blue, Green, Purple, Orange, and White