Build a running LED light logic circuit

General Tech Learning Aids/Tools 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Learning Aids/Tools related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I am a beginner at logic gates/circuits and would appreciate some help constructing a running LED light system. The concept is to have a row of 20 LED lights that start flashing, one after another, after receiving a certain input. The only two options are for the rightmost LED to light up and then go left, or for the leftmost LED to light up and go right. Only one light will be on at a time, and each light will stay on for 5ms.

The system takes a 2-bit input, where "l" means "left" and "r" means "right:
l r
0 0 -- "Off" (see below)
0 1 -- start at leftmost and run right
1 0 -- start at rightmost and run left
1 1 -- "Off" (see below)

There is also a 5-bit number can turn on one LED at a time, or be set to "Off":
00000 -- "Off"
00001 -- L0 (leftmost LED)
00010 -- L1
00011 -- L2
...
...
...
10010 -- L17
10011 -- L18
10100 -- L19 (rightmost LED)

This is essentially as far as I've gotten, apart from making a finite state machine that describes what I said in the beginning. I'm only interested in using logic gates at this point. I would just appreciate a push forward so I know where to start with this. I know I'll need to be using a D flip-flop. Thank you for any help you can provide.

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.