Idea
In short
How do you build a random bits from a shift register?
A 74HC595 shift register and a 74HC86 XOR gate are wired as a linear feedback shift register, so each press of a clock button produces the next bit of a long pseudo-random sequence shown on eight LEDs. A way to see how simple hardware makes noise-like numbers. You need 74HC595 Shift Register, 74HC86 quad XOR gate, Tactile push button 6 mm, LED 5 mm red × 8, Resistor 330 Ω × 8 and Breadboard 830 Tie Points.
- Level
- Intermediate
- Time
- About 150 min
- Parts
- 6
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal
See a pseudo-random sequence made by two chips.
Parts list
- Integrated Circuits
- Integrated Circuits
- Switches
- SemiconductorsLED 5 mm red × 8
- PassivesResistor 330 Ω × 8
- Prototyping
How to build it
- Wire the shift register and its LEDs
- Feed back two taps through the XOR gate
- Seed it with one bit
- Step it with the button
- Count how long before it repeats
Common questions
What parts do I need for the random bits from a shift register?
74HC595 Shift Register, 74HC86 quad XOR gate, Tactile push button 6 mm, LED 5 mm red × 8, Resistor 330 Ω × 8 and Breadboard 830 Tie Points.
How long does the random bits from a shift register take to build?
About 150 minutes for a intermediate maker.
