×

HackMakeMod's video: For Loop - Hardware Only

@For Loop - Hardware Only
In programming, a 'for loop' executes operations a predetermined number of times.… Like blinking an LED five times when I press this button. Do you think we can build this with just hardware and no software? Of course! We just need the help of some classic transistors and integrated circuits. First we need an SR Latch built from two transistors. This holds a binary state and changes it based on input signals. This will turn the sequence on, when the button is pressed, and then off after the set number of cycles complete. Next we need a 555 timer to work as an oscillator creating the pulses. We can set the timing based on the resistors and capacitor we use. Finally we’ll feed these pulses into a decade counter. This integrated circuit advances by one count with each pulse. We’ll add a wire to the 5th count output, sending the signal back to the SR Latch, and stopping the sequence. Simultaneously the same output will be sent to the reset pin on the decade counter. So now, when I push the button the LED blinks five times and then stops automatically. Both the 555 Timer and the 4017 Decade counter were introduced over 50 years ago! And they are still being used today!

4.6K

58
HackMakeMod
Subscribers
105K
Total Post
79
Total Views
6.4M
Avg. Views
172K
View Profile
This video was published on 2024-03-17 03:39:41 GMT by @HackMakeMod on Youtube. HackMakeMod has total 105K subscribers on Youtube and has a total of 79 video.This video has received 4.6K Likes which are lower than the average likes that HackMakeMod gets . @HackMakeMod receives an average views of 172K per video on Youtube.This video has received 58 comments which are lower than the average comments that HackMakeMod gets . Overall the views for this video was lower than the average for the profile.HackMakeMod #forloop #coding #hardware #555timer #DecadeCounter #arduinoprojects has been used frequently in this Post.

Other post by @HackMakeMod