Learning Goals 5 min
L01 was Ohm's law and a resistor. L02 introduced multi-IC schematics. L03 reads full module + shield schematics — the kind you find on Adafruit / SparkFun product pages for the L298N, an HC-05, an ESP-12 carrier. By the end of this lesson you will be able to:
- Spot the power rails (VCC, VS, GND), the logic-side and high-side regions, and the on-board regulator on a typical motor-driver / WiFi shield schematic.
- Trace a single GPIO signal from the Arduino header through any level shifters or transistors to the actuator/sensor.
- Identify the four most common "safety/glue" parts on a real schematic: pull-up resistors, decoupling capacitors, flyback diodes, opto-isolators.
Warm-Up 10 min
Open the L298N module schematic in your browser (search "L298N motor driver module schematic"). Or use the chip's datasheet from STMicroelectronics. Print or display so you can annotate.
What to look for first
- Power rails: usually drawn as horizontal lines labelled VS (motor supply), VCC (logic), GND.
- The big chip: the L298N IC itself, usually a rectangle with labelled pins.
- The on-board regulator: a 7805 (linear) or AMS1117 (3.3 V) — turns VS into the logic VCC.
- Decoupling caps: small capacitors (100 nF + 470 µF) close to power pins, smoothing the rails.
- Connectors: screw terminals on one side, pin headers on the other.
New Concept · Reading a module schematic 25 min
1. Identify the regions
| Region | Contains |
|---|---|
| Power input | VS screw terminal, fuse (sometimes), bulk cap, reverse-polarity diode |
| Regulator | 7805 / AMS1117 + input/output caps, generates VCC |
| Logic interface | IN1..IN4 + ENA/ENB headers from the Arduino. Often through pull-down resistors so floating pins read LOW. |
| Power stage | The H-bridge transistors inside the IC + flyback diodes (built into modern chips, external on old ones). |
| Outputs | OUT1..OUT4 screw terminals to the motors. |
2. Trace one signal end-to-end
Pick the "IN1" signal. Walk:
- Header pin labelled IN1 (where the Arduino plugs in).
- Through any current-limiting resistor (sometimes 1 kΩ).
- To the IN1 pin of the L298N IC.
- Inside the IC (datasheet level): drives one half of the H-bridge.
- Out to OUT1 screw terminal, which goes to one of the motor's leads.
Same exercise for any GPIO on any shield. Trace = understand.
3. The four "glue" parts
| Part | Job | Where you see it |
|---|---|---|
| Pull-up / pull-down resistor | Holds a wire at a known voltage when nothing's driving it | I²C SDA/SCL, button inputs, IN pins on motor drivers |
| Decoupling capacitor (100 nF) | Smooths supply noise at each chip's VCC pin | Right next to every IC; the small capacitors all over the board |
| Flyback diode | Catches the inductive kick when a motor / relay coil turns off | Across every motor or coil; built into motor-driver ICs |
| Opto-isolator | Electrically isolates two circuits — light couples the signal across | Relay modules, industrial inputs, mains-side electronics |
4. WiFi shield specifics
An ESP-12 module schematic adds:
- 3.3 V LDO regulator (AMS1117-3.3) — converts USB 5 V to 3.3 V for the ESP.
- USB-serial chip (CH340 or CP2102) — translates USB to UART for upload.
- Reset + boot logic — combination of two transistors and the DTR/RTS lines from the USB chip that put the ESP into bootloader mode automatically on upload.
- Level shifters (where the breakout connects to 5 V external sensors).
The boot logic is the most magical part — search "NodeMCU boot circuit" for a diagram. Two transistors that interpret DTR + RTS to drive the ESP's EN + GPIO0 in just the right sequence to enter the bootloader. Without it, you'd have to hold buttons during upload.
Worked Example · Trace the L298N 20 min
Trace 1: VS → motor
Battery+ → screw terminal "+12V" → bulk cap (1000 µF) → VS pin of the L298N IC → internal H-bridge transistors → OUT1 / OUT2 screw terminals → motor lead.
Trace 2: VS → logic VCC
VS → 7805 regulator input → 7805 output (5 V) → bypass cap → exposed at "5V" screw terminal AND fed to the L298N's VCC pin.
Note: the 7805 is rated for ~12 V max input. That's why "remove the 5V enable jumper if VS > 12 V" — the regulator can't handle higher inputs.
Trace 3: IN1 → motor direction
Header pin IN1 (from Arduino D9) → directly to L298N's IN1 pin (no series resistor on most modules — the chip's input is high-impedance).
Trace 4: ENA PWM
Header pin ENA (from Arduino D5) → through the "ENA enable jumper" (when removed, our wire takes over) → L298N's ENA pin → gates the H-bridge on/off.
Trace 5: Common ground
GND screw terminal → tied to battery's − → tied to L298N's GND pin → tied to the header's GND pin (which goes to Arduino GND). Single ground reference for everything.
Now you know exactly what every wire does. Debugging becomes "is this trace working as the schematic says?" instead of "is the module broken?".
Try It Yourself 15 min
Goal: Find the SSD1306 OLED breakout's schematic. Identify: the SSD1306 chip, the I²C pull-up resistors, the charge-pump capacitor (often C4 in the schematic), the 3.3 V regulator (some 5V boards have one).
Goal: Find an HC-05 breakout schematic. Identify: the HC-05 module, the LED that shows pairing state, the on-board 3.3 V regulator, the resistor divider on the RX pin (some breakouts include it built-in).
Goal: Find the NodeMCU schematic. Trace the "boot circuit" — the two transistors plus DTR/RTS lines that auto-enter bootloader mode on upload. Explain in your own words how it works.
Mini-Challenge · Annotate one schematic 10 min
- Pick any of the L3 modules you've used.
- Print or display its schematic.
- With a coloured pencil, label the five regions (power, regulator, logic, output, glue).
- Trace one signal end-to-end and highlight the path.
- Bring the annotated schematic to next class.
This is exactly what professional engineers do when they receive a third-party board datasheet — annotate, trace, then trust.
Recap 5 min
A real module schematic has five regions: power, regulator, logic, output, glue. Trace one signal at a time. The four glue parts (pull-ups, decoupling caps, flyback diodes, opto-isolators) handle 90% of "extra stuff on the board". With these tools you can read any Adafruit / SparkFun module's schematic and understand what every pin does. Final lesson tomorrow: Level 3 recap and certification vocab.
- Power rail
- A continuous voltage line throughout the board (VCC, VS, GND).
- Regulator (linear / buck)
- Converts a higher voltage to a lower one. Linear (7805, AMS1117) is simple but wastes heat; buck is efficient.
- Pull-up / pull-down resistor
- Holds a wire at VCC (pull-up) or GND (pull-down) when nothing else is driving it.
- Decoupling capacitor
- Small cap (100 nF) at each chip's VCC pin to smooth high-frequency supply noise.
- Flyback diode
- Diode across an inductive load to absorb the kick when current is cut. Built into modern motor-driver ICs.
- Opto-isolator
- Light-based signal coupler that electrically isolates two circuits. Used in relay modules.
- Boot circuit (ESP)
- Combination of transistors and USB-serial control lines that auto-enter bootloader mode on upload.
- Trace
- Following a wire / signal path through a schematic from source to destination. The basic skill of schematic reading.
Homework 5 min
- Annotate one schematic. Bring to L03-48.
- Review Cluster A–H notes. Tomorrow is the L3 recap — quiz, glossary, certification vocab.