Arduino · Intermediate · Stufe 16 / 40
SPI, Shift Registers and Fast Peripherals
Use SPI and related clocked interfaces to drive displays, radios, card readers and LED strips.
Intermediate freischalten · CHF 19.90 Stufen 14–26, einmalig, kein Abo
10 Lektionen in dieser Stufe
- SPI Signals: Clock, MOSI, MISO and Chip Select
Explain full-duplex shifting between controller and peripheral. · Lab: Loop MOSI back to MISO and verify that bytes sent are bytes received. - Clock Polarity, Phase and the Four SPI Modes
Select mode, bit order and speed with SPISettings from a datasheet timing diagram. · Lab: Capture the same byte in mode 0 and mode 3 and point out the difference. - Output Expansion with a 74HC595 Shift Register
Drive eight or more outputs from three pins and chain registers. · Lab: Run a 16-LED pattern through two chained registers. - Reading Many Switches with a 74HC165
Load parallel inputs and shift them in serially. · Lab: Read eight buttons with three pins and print them as one byte. - LED Matrices and Scrolling Text with a MAX7219
Control multiplexed LED matrices through a driver chip. · Lab: Scroll a message across two chained 8x8 modules with adjustable brightness. - Colour TFT Displays: Drawing Quickly over SPI
Draw text and graphics in 16-bit colour and minimise redraw area. · Lab: Build a gauge that updates only the changed needle region. - Reading RFID Cards with an RC522 Module
Read card identifiers from a 3.3 V SPI reader and compare them with a stored list. · Lab: Grant or deny access for two cards with LED feedback. - Sharing One SPI Bus Between Several Devices
Manage chip-select lines and differing settings with transactions. · Lab: Run the TFT and RFID reader on the same bus without corrupted output. - Packet Radio with nRF24L01 Modules
Send and acknowledge small packets between two boards and power the radio properly. · Lab: Transmit a button state and a sensor value across the room and count lost packets. - Addressable WS2812 LED Strips: Timing, Power and Data
Drive a single-wire LED strip and size its power supply and protection parts. · Lab: Animate 30 LEDs with a status ring effect from a separate 5 V supply with capacitor and data resistor.
Abschlussprojekt
An RFID access terminal with colour TFT, LED-strip status ring and a wireless nRF24 remote indicator on a second board.
Teile für diese Stufe
- 2 × UNO-compatible board
- 2 × USB cable matching the board
- 2 × Solderless breadboard 830 points
- 1 × Jumper wire set male-male and male-female
- 1 × USB logic analyzer 8 channel
- 2 × Shift register 74HC595
- 1 × Shift register 74HC165
- 2 × MAX7219 LED matrix module 8x8
- 1 × TFT colour display 1.8 inch SPI
- 1 × RC522 RFID reader module with card and tag
- 2 × nRF24L01 radio module
- 2 × Adapter board with 3.3 V regulator for nRF24L01
- 1 × WS2812 addressable LED strip 30 LEDs
- 1 × External 5 V power supply 3 A
- 1 × Electrolytic capacitor 1000 microfarad
- 1 × Resistor 330 ohm
- 8 × LED 5 mm assorted
- 8 × Resistor 220 ohm
- 8 × Tactile push button
- 1 × Bidirectional logic level shifter module
In jeder Lektion legst du die passenden Teile direkt in den Warenkorb. Arduino-kompatibel →
Voraussetzung: Levels 1–15: bus concepts, logic analyzer, level shifting, classes and bit manipulation.