1. What you will build
Learn binary numbers with a 4-LED counter that shows 0-15.
Learn binary numbers with a 4-LED counter that shows 0-15.
beginner · 25 Sept 2026
Difficulty
beginner
Learning complexity
Sections
6
Structured content blocks
Topics
7
Linked learning concepts
Related links
6
Next steps and references
Learn binary numbers with a 4-LED counter that shows 0-15.
Connect 4 LEDs to pins 2, 3, 4, 5 representing bits 0-3.
Connect a button to increment the counter.
Use bitwise operations to set each LED based on the count.
Each button press increments and wraps at 16.
Observe how LEDs represent numbers in binary: 0001, 0010, 0011...
Yes. Use the Open in Lab action to load the guided build in the browser-based simulator.
Next step
Load the guided build in Ayantrik Lab and follow the same components and steps inside the simulator.