Projects / Ideas / Hamming (7,4) code lab

Hamming (7,4) code lab

IntermediateCommunicationIdeaReviewed
In short

How do you build a hamming (7,4) code lab?

Four buttons set four data bits and seven LEDs show the Hamming code word, with three parity bits worked out for you. Flip any one bit with another button and the Nano finds which bit is wrong and corrects it, which shows how error correction really works. You need Arduino Nano, Tactile push button 6 mm × 5, LED 5 mm red × 4, LED 5 mm green × 3, Resistor 220 Ω × 7, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

Level
Intermediate
Time
About 100 min
Parts
7
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

Watch a single flipped bit being found and fixed.

Parts list

How to build it

  1. Read four data buttons
  2. Work out three parity bits
  3. Show all seven bits on LEDs
  4. Flip one chosen bit as an error
  5. Find the error position and correct it

Related projects

Common questions

What parts do I need for the hamming (7,4) code lab?

Arduino Nano, Tactile push button 6 mm × 5, LED 5 mm red × 4, LED 5 mm green × 3, Resistor 220 Ω × 7, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

How long does the hamming (7,4) code lab take to build?

About 100 minutes for a intermediate maker.