Course 08 Free course 11 volumes · 54 sub-modules All 11 volumes are live ~28 hours

Digital Logic from Zero: Binary, Gates, Boolean Algebra, Flip-Flops and Counters

Every phone, computer and games console is built from one simple idea: a switch that is either on or off. This course starts there and assumes nothing. You will count in binary, build circuits from logic gates, simplify them with Boolean algebra and K-maps, give them memory with flip-flops, and finish with counters, memory chips and GATE-style problems. Every truth table and circuit in it was checked by a simulator.

Start here

Start with Volume 00. It explains what digital logic is, why computers use only two values and how the course works. It ends with your first circuit: one light controlled by two switches. Then take the volumes in order - each one uses only what came before it.

This course assumes nothing. You do not need to know any electronics or any programming. If you can count and follow a table, you can start.

Every truth table, circuit diagram and timing diagram here was checked by a simulator before it was published, so a table always matches its circuit. Each new word is underlined with dots - point at it (or tap it) to see what it means. Every sub-module ends with a quick check, so you know whether an idea has landed before you move on.

Where this course leads

Digital logic is the ground floor of every hardware course on this site. When you finish, go on to Verilog and SystemVerilog to describe circuits in code, or to State Machines from Zero. If you are preparing for GATE, Volume 10 has practice problems in the GATE style.

Full syllabus

Part I - Numbers and gates

Part II - Simplifying logic

Part III - Building blocks

Part IV - Memory and time

Part V - Real chips and revision

What you need before starting

What Why Free option
Nothing but curiosity Volume 00 starts from the very beginning -
Pencil and paper Most of the work is small tables and drawings you do by hand -
Optional: a circuit simulator To build the circuits yourself and watch them work CircuitVerse runs in a web browser; Logisim-evolution runs on your computer
Optional: a breadboard kit To build gates from real chips A breadboard, a 5 V supply, some LEDs and a few 74HC chips - the course never needs one