4. Write a code to display a counter (0-9 then 9-0) on a 7-segment. The counter tick each one second and the counter reverse counting once it reaches the maximum or minimum value.
5. Write a code to display a counter (0-9 then 9-0) on a 7-segment. The counter ticks each one second, and the counter reverses counting once it reaches the maximum or minimum value. but using Registers like DDRF, DDRD, or PORTD and PORTF.
6. [Optional] Design and implement a system using Arduino Uno to demonstrate multiplexing with two 7-segment displays. The system should display numbers from 00 to 99 in a continuous loop. Your implementation should adhere to the following requirements:
Outputs:
Two 7-segment displays controlled using multiplexing (only one display should be active at a time).
Requirements:
Implement multiplexing using Arduino pins to control the two displays.
Use common cathode or common anode 7-segment displays and specify which one you are using in your code comments.
Ensure the display updates at a rate that appears continuous to the human eye.
The numbers should increment from 00 to 99, then loop back to 00.
Steps to Follow:
Write an Arduino sketch to manage the counter and multiplexing.
Use digitalWrite() to control the segments and enable/disable the displays alternately.
Use delay() or a timer function to manage the speed of the counter and multiplexing.
Deliverables:
Arduino code (.ino file) with proper comments.
A brief explanation of the multiplexing logic in your report.
Demonstration of the working setup in the lab or through simulation software like Proteus or Tinkercad.
Bonus Challenge:
Add functionality to control the speed of the counter using the Arduino's serial input. For example, typing a number in the serial monitor adjusts the counting speed.
✴️✴️ Only CS and AI students.
#Assignment