Info

Useful articles about electronics: symbols, breadboards, short circuits, rectifiers, diagrams, misconceptions, tools and materials, and Arduino in VS Code.

At the workbench

Read these before your first workshop: what you need, how to build on a breadboard and what to do when something goes wrong.

  • Tools and materials you need Where to get electronic components and soldering tools: local electronics shops, hackerspaces and online shops, with a checklist before you start.
  • Breadboard How a breadboard works: which holes are connected, how to place components and wires, the power module, common mistakes and finding faults.
  • Short circuit What a short circuit is, why it is dangerous, how it happens on a breadboard and an Arduino, and how to recognise, find and prevent it.
  • Multimeter How a multimeter works: its parts, the symbols on the dial, reading the display, testing continuity, measuring voltage and current, and common mistakes.
  • Oscilloscope What an oscilloscope is and how to use it: the parts of the FNIRSI-1014D, the probe, the trigger, reading the screen and an Arduino PWM signal.
  • Soldering How to solder safely: iron, solder and flux, fumes and burns, a good joint step by step, eight common faults, desoldering and cleaning the board.
  • Wires, cables and connectors Solid and stranded wire, wire gauge and voltage drop, wire colours, Dupont, JST, screw terminals and DC plugs, crimping and joining wires.
  • Static electricity Why a door handle zaps you in winter, how a spark you can't feel damages a chip, and how to protect electronics from static electricity.
  • Powering a project Powering an Arduino project: USB, adapters and batteries, a power budget, linear regulators and buck converters, motors, common GND and fuses.
  • Troubleshooting a circuit How to find a fault step by step on a breadboard and on a printed circuit board: power, GND, looking, measuring voltage and continuity, splitting in half.
  • Making printed circuit boards Making a printed circuit board: a marker, toner transfer and photoresist, etching in ferric chloride, drilling, safety, and ordering boards.

Schematics and diagrams

How a circuit is drawn, and how to read a drawing someone else made.

  • Electronic components, symbols and schematics Electronic components, their symbols and how a circuit schematic is drawn, with a table of common symbols: resistor, capacitor, diode, LED, transistor...
  • Diagrams What block diagrams, schematics, wiring diagrams, flowcharts, timing and state diagrams are for, and how to read a schematic, with traffic light examples.

How does it work?

Why things work the way they do, for those who want to know more.

  • 29 misconceptions about electronics 29 common misconceptions about electronics: does a resistor use up current, can LEDs share a resistor, what is ground, why can't an Arduino pin drive a motor?
  • Rectifiers and voltage regulators How to get a steady 6 V from 9 V AC: the bridge rectifier, the smoothing capacitor, the 7806 regulator and regulators for currents of 3 to 5 A.
  • Buck converter: how it works and when it beats a 7805 How a buck converter lowers a voltage with almost no heat: switch, diode, inductor and capacitor, duty cycle, ripple and a comparison with the 7805.
  • Boost, buck-boost and inverting converters How a boost converter raises a voltage, a buck-boost keeps it steady from a battery, and an inverting converter or a charge pump makes a negative one.
  • How devices talk: UART, I2C and SPI How an Arduino, a micro:bit and modules exchange messages: bits through a wire, protocols and clocks, and UART, I2C and SPI, their pins and common mistakes.
  • Digital and analogue What a digital and an analogue signal are, how the micro:bit and Arduino measure a voltage (0 to 1023), when a pin is HIGH, and why PWM isn't a real voltage.
  • Op-amp circuits Nine op-amp circuits on ±12 V: photodiode, hysteresis, integrator, differentiator, precision rectifier, voltage and current sources, PID and logarithm.

Microcontrollers

What our programs run on: which pin does what, how the boards differ and which one to choose.

Programming

How a program handles numbers and data, and the tools for writing programs and uploading them to the board.

  • Arduino IDE: from program to microcontroller How to install the Arduino IDE, choose the board and port, upload a program to the Arduino, use the Serial Monitor and libraries, and fix common errors.
  • Arduino and Visual Studio Code: larger projects with PlatformIO How to program an Arduino in Visual Studio Code with PlatformIO: installing, the project and platformio.ini, main.cpp, libraries and several files.
  • Binary, octal and hexadecimal numbers How a computer counts with zeros and ones: binary numbers on LEDs, bits, nibbles and bytes, octal and hexadecimal numbers, and writing them in code.
  • Variables and data types Variables on the micro:bit and Arduino: the types int, long, float and char, storage in memory, byte order, type conversion and common mistakes.
  • Arrays: many values under one name Arrays in MakeCode and Arduino programs: indexes from zero, a loop through an array, two-dimensional arrays, sizeof, memory and going past the end of an array.
  • millis() instead of delay() How an Arduino measures time without stopping: millis() as a stopwatch, the right way to check a time, the overflow after 49.7 days and common mistakes.
  • State machines How to split a program into states: the state diagram, a micro:bit game, enum and switch on an Arduino, the entry action, a state table and a crossing button.
  • Interrupts How an Arduino reacts at once without checking: attachInterrupt() on pins 2 and 3, the rules for an interrupt function, volatile, counting presses and timing.

Components

What our circuits are made of: how each part works and what to watch out for when you use it.

  • Batteries How batteries work: types (AA, AAA, 9 V, button cells, LiPo), what V and mAh mean, why a battery gets weaker, and rules for using batteries safely.
  • Resistor What a resistor does, how to read the colour code, Ohm's law, series and parallel, a resistor's power, and why the values you can buy come from the E12 series.
  • Buttons and switches Push buttons, microswitches, tilt and reed switches: how they work, wiring them to an Arduino with a pull-up resistor, and why contacts bounce.
  • Photoresistor A photoresistor (LDR) changes its resistance with light: how much, the voltage divider for an Arduino, choosing the resistor and a night-light program.
  • Diode How a diode lets current through one way only: anode and cathode, the 0.7 V forward voltage, reverse-polarity protection, the relay diode and diode types.
  • LED How an LED works: which way round it goes, why it needs a resistor and how to work it out, each colour's voltage, brightness and PWM, and RGB LEDs.
  • Capacitor How a capacitor stores charge: ceramic and electrolytic, polarity, charging through a resistor, the time constant, the code 104 and what capacitors are for.
  • Transistor How an NPN transistor uses a small base current to switch a large one: base, collector and emitter, using it as a switch, gain, the base resistor and heat.
  • Buzzer and speaker Active and passive buzzers and speakers: telling them apart, tone() on an Arduino, playing a melody, and why a speaker needs a transistor or an amplifier.
  • Servo motor How an SG90 servo knows its angle: a pulse every 20 ms, three wires, its own power supply, the Arduino Servo library and how long it takes to turn.
  • Infrared sensors Infrared light, line sensors with an LED and a phototransistor, TV remotes and 38 kHz receivers, why sunlight confuses them, and an Arduino program.
  • Hall sensor A Hall sensor feels a magnet without touching it: the A3144 switch, latches and linear sensors, wiring to an Arduino, and a steel ball over a magnet.
  • Operational amplifier The op-amp: the LM358, comparator, the two rules, follower, inverting and non-inverting amplifiers, real limits, and measuring current with an Arduino.