74HC165: eight inputs on three pins
The 595 the other way around: load eight switches at once, clock them out on one pin, and the shiftIn() bug that loses the top bit on this chip.
Open it in the simulatorRun out of pins no more: 74HC595 outputs and 74HC165 inputs, PCF8574 and MCP23017 I2C expanders, a CD74HC4067 analog mux, a TCA9548A for twin addresses, PCA9685 PWM for LEDs, and a 64-button spaceship control deck.
0 of 7 done
7 lessons in 4 chapters, about 6 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.
The 595 the other way around: load eight switches at once, clock them out on one pin, and the shiftIn() bug that loses the top bit on this chip.
Open it in the simulatorTwo sensors and two screens with the same I2C addresses kept apart by a TCA9548A: scans that see different chips on each channel, and what happens if two channels are on at once.
Open it in the simulatorEach lesson opens when the one before it is done, and each chapter ends in a project.
Eight outputs and eight inputs on three pins each.
A shift register drives eight LEDs from three pins: bits clocked in one at a time, a latch that changes all eight at once, bit order, and chaining for more.
0 of 5 steps
The 595 the other way around: load eight switches at once, clock them out on one pin, and the shiftIn() bug that loses the top bit on this chip.
0 of 5 steps
Expanders, an analog mux and an I2C mux.
Extra pins on two wires: the PCF8574, where a byte written is its eight pins, and the MCP23017, with direction and pull-up registers like a real port.
0 of 5 steps
An analog multiplexer: four address lines pick one of sixteen channels and join it to one analog pin, so three knobs, or sixteen, share A0, and an empty channel floats.
0 of 5 steps
Two sensors and two screens with the same I2C addresses kept apart by a TCA9548A: scans that see different chips on each channel, and what happens if two channels are on at once.
0 of 5 steps
Sixteen PWM channels that run themselves.
Sixteen 12-bit PWM outputs on I2C: a prescaler for the frequency, on and off counts out of 4096, LEDs at four brightness levels, and a breathing wave that runs on its own.
0 of 5 steps
A spaceship control deck with sixty-four buttons on two wires.
A spaceship control deck with sixty-four buttons on two wires: four keypads, each scanned row by row through its own PCF8574, and every key a ship system that toggles.
0 of 6 steps
All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.
Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.
Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kitYes. All 7 lessons of More pins: expanders, muxes and drivers are free and run in your browser, with nothing to install and no parts to buy before you start.
No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.
About 6 hours: 7 lessons in 4 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.
Each chapter ends in a project that puts it together: 74HC165: eight inputs on three pins and TCA9548A: same address, one bus.
With "74HC595: eight outputs on three pins", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.