Projects / Ideas / Gray code counter

Gray code counter

IntermediateDigital LogicIdeaReviewed
In short

How do you build a gray code counter?

A 74HC193 up and down counter drives a row of LEDs in binary, while XOR gates convert the same number into Gray code on a second row, showing that only one bit changes at each step. You need 74HC193 up/down counter, 74HC86 quad XOR gate, Tactile push button 6 mm × 2, 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 why Gray code changes one bit at a time.

Parts list

How to build it

  1. Wire the counter and its two buttons
  2. Show the binary count
  3. Add XOR gates for the Gray code
  4. Show it on a second row
  5. Compare the two rows step by step

Related projects

Common questions

What parts do I need for the gray code counter?

74HC193 up/down counter, 74HC86 quad XOR gate, Tactile push button 6 mm × 2, LED 5 mm red × 8, Resistor 330 Ω × 8 and Breadboard 830 Tie Points.

How long does the gray code counter take to build?

About 150 minutes for a intermediate maker.