Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

1.

Using TinkerCAD, make a new circuit for this assessment, naming it: Module 3
Summative Assessment;
2. Put nine (9) LEDs on your breadboard in a left-to-right arrangement. Any color will
do;
3. Program your Arduino board to control the 9 LEDs to achieve a “running” effect.
4. The left most LED will light up for half-a-second (.5 secs), then the "light" transfers
to the next LED on the right and so on. It should look like the light is "running" from
left to right;
5. Once the light reaches the right-most LED, it "runs" back in the other direction
going from right to left;
6. Use both FOR loop and WHILE loop in this program. Example: FOR loop for left
direction and WHILE loop for right direction. I leave it to you as long as both FOR and
WHILE are used;
7. Arrays can be opted to store the number of LEDs as well;
8. Use as little digitalWrite() HIGH/LOW statements as possible;
9. Leave helpful comments that briefly describe what is going on in that part of the
program.
10. Take a screenshot of the design and the codes with the filename:
“running_design.png” and “running_codes.png.” Submit the two files by uploading
it in the Assessment assigned.

Thank you and God bless!

You might also like