Idea
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
- Development Boards
- Switches
- SemiconductorsLED 5 mm red × 4
- SemiconductorsLED 5 mm green × 3
- PassivesResistor 220 Ω × 7
- Prototyping
- Prototyping
How to build it
- Read four data buttons
- Work out three parity bits
- Show all seven bits on LEDs
- Flip one chosen bit as an error
- Find the error position and correct it
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.
