Programming
The fundamentals, taught properly
Every embedded project is code plus circuit. This track teaches programming from the ground up, using C++ as the Arduino does, so the sketches you write are built on real understanding.
Programming Fundamentals
Variables, decisions, repetition and structure
- Variables & Data TypesFreeWhat a variable really is, and why choosing the right type matters on a microcontroller.12 min
- Conditionals & LogicFreeHow a program makes decisions, and the classic mistakes that break them.12 min
- LoopsFreeRepeating work without repeating yourself, and how to avoid getting stuck forever.12 min
- FunctionsFreePackaging work into named, reusable pieces, the foundation of readable code.12 min
Writing Arduino Code
From an empty sketch to code that drives real hardware
- Anatomy of a Sketchsetup() and loop(), what runs when, and the handful of functions that control every pin on the board.11 min
- Make the LED Turn OnYour first real sketch. Configure a pin as an output and drive it high, written by you, checked line by line.10 min
- Make It BlinkAdd timing. Turn the LED on, wait, turn it off, wait, and understand exactly what delay() costs you.12 min
- Read a ButtonInput, not just output. Pull-up resistors, why an unconnected pin lies to you, and reacting to a press in code.13 min
- Fade with PWManalogWrite, duty cycle as brightness, and using a for loop to fade an LED smoothly up and down.13 min
Software That Lasts
Structure, timing and talking to other chips
- Arrays & StructsHandling many values at once, grouping related data, and the memory limits that bite on a microcontroller.13 min
- State Machines & millis()How to do several things at once on a chip with one core, and finally stop using delay().14 min
- Serial, I2C & SPIHow chips talk to each other: three protocols, what each costs in pins and speed, and when to pick which.14 min
- Interrupts & Real-TimeReacting to an event the instant it happens, and the specific rules that make interrupt code safe.14 min
The first module of every subject is free with an account. No card needed.