Projects / Ideas / Random bits from a shift register

Random bits from a shift register

IntermediateDigital LogicIdeaReviewed
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

How to build it

  1. Wire the shift register and its LEDs
  2. Feed back two taps through the XOR gate
  3. Seed it with one bit
  4. Step it with the button
  5. Count how long before it repeats

Related projects

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.