Home / Learn

Learn

Plain-English guides to electronics, code and AI. Each one starts simple, stays accurate, and links to a tool you can try. New here? Follow a learning path.

Electronics basics

Electronics basics

How resistors work, and how to pick the right one

A plain-English guide to resistors: what they do, Ohm's law, choosing an LED resistor, series and parallel, power ratings and reading SMD codes.

Electronics basics

How LEDs work, and how to wire them up

A beginner's guide to LEDs: how they make light, which leg is which, forward voltage and current, why they need a resistor, and wiring several at once.

Electronics basics

Capacitors explained: what they do and how to read them

A plain-English guide to capacitors: how they store charge, units, the main types, reading codes like 104, polarity, and what decoupling capacitors are for.

Electronics basics

How to use a transistor as a switch

Control motors, relays and LED strips from a microcontroller with an NPN transistor or MOSFET. Includes base resistor calculation and the flyback diode.

Electronics basics

How to use a multimeter

Measure voltage, current, resistance and continuity safely with a digital multimeter. A beginner's guide to the dial, the sockets and the mistakes to avoid.

Electronics basics

Soldering for beginners: how to make good joints

Learn to solder safely: the tools you need, the right iron temperature for leaded and lead-free solder, step-by-step technique, and how to spot a bad joint.

Electronics basics

I²C, SPI and UART explained: how chips talk to each other

How the three common serial buses work, when to use each, wiring rules, speeds, and how to debug them. For makers moving beyond single sensors.

Electronics basics

Op-amps explained: amplifiers, buffers and comparators

How operational amplifiers work, the two golden rules, inverting and non-inverting amplifier formulas, and choosing a real op-amp for your project.

Electronics basics

How analogue-to-digital converters work

Understand ADC resolution, reference voltage, sampling rate and noise, so you can read sensors accurately with Arduino, Pico or ESP32.

Electronics basics

Designing your first PCB

From breadboard to a real printed circuit board: the KiCad workflow, footprints, routing, ground planes, trace widths and ordering boards.

Electrical installations

Code for makers

Code for makers

How to read a battery voltage with a microcontroller

Measure a battery up to 16 V safely with a 3.3 V microcontroller using a voltage divider. Includes resistor choice, wiring and MicroPython code for the Raspberry Pi Pico.

Code for makers

How to use a breadboard

A beginner's guide to breadboards: how the holes are connected inside, the power rails, where chips go, and tips for neat circuits that work first time.

Code for makers

Arduino vs Raspberry Pi: which should you use?

The real difference between Arduino microcontrollers and Raspberry Pi computers, and how to choose for electronics, robotics and AI projects.

Code for makers

The best microcontroller boards for beginners

Comparing Arduino Uno R4, Raspberry Pi Pico 2 and ESP32 boards for beginners: specs, languages, wireless and which to pick for your first project.

Code for makers

Python for electronics beginners: your first MicroPython programs

Learn to control hardware with MicroPython on a Raspberry Pi Pico: blink an LED, read a button, fade with PWM and read an analogue sensor.

Code for makers

How to power your electronics projects safely

Choose the right power source for Arduino, Pico and Raspberry Pi projects: USB limits, regulators, motors, batteries, shared grounds and fuses.

Code for makers

How to call an AI API from Python: your first program

A step-by-step beginner's guide to using an AI model from your own Python code: API keys, your first request, conversations, system prompts and handling errors.

Code for makers

How to run AI on a Raspberry Pi

What AI a Raspberry Pi 5 can really run: image recognition, speech and small language models, plus the AI HAT+ accelerators and when to use a cloud API instead.

Code for makers

Regular expressions for beginners

Learn regex step by step: characters, classes, quantifiers, anchors and groups, with Python examples you can run and a live tester to practise in.

Code for makers

JSON for beginners: the format AI apps and APIs use

What JSON is, its simple rules, how to read and write it in Python, common mistakes, and how to get reliable JSON out of AI models.

Code for makers

Git for beginners: version control for your projects

Learn Git step by step: commits, history, undoing mistakes, branches, and backing up to GitHub. Essential for code, firmware and even PCB designs.

Code for makers

Bits, bytes and bitwise operations for makers

How to set, clear, toggle and read individual bits, combine bytes from sensors and work with registers, with Python examples that also work in MicroPython and C.

Code for makers

How to read Python error messages and fix your code

A beginner's guide to Python tracebacks and the ten errors you'll meet most, what each one means and how to fix it, plus a simple debugging method that works.

Code for makers

Linux command line basics for Raspberry Pi users

The terminal commands you need for a Raspberry Pi or any Linux machine: moving around, managing files, editing, installing software, permissions and connecting over SSH.

AI, explained simply

AI, explained simply

What is a token? How AI models count text, and what it costs

Tokens explained simply: how AI language models split text, how many tokens are in a word, context windows, and how token counts turn into API costs.

AI, explained simply

How AI language models work, explained simply

A clear, jargon-light explanation of how large language models like Claude, GPT and Gemini work: next-token prediction, training, transformers and attention, and why they make mistakes.

AI, explained simply

What are embeddings? AI's way of turning meaning into numbers

Embeddings explained simply: how AI turns text into lists of numbers that capture meaning, how similarity search works, and what embeddings are used for, with runnable Python.

AI, explained simply

How to write better prompts for AI

Practical prompt writing for ChatGPT, Claude, Gemini and AI APIs: be specific, give context and examples, structure long prompts, and test what works.

AI, explained simply

Context windows explained: how much can an AI remember?

What an AI model's context window is, how big it is in words and pages, what happens when a conversation gets too long, and how it affects cost.

AI, explained simply

How to cut your AI API costs

Practical ways to spend less on Claude, GPT and Gemini APIs: choosing the right model, prompt caching, batch processing, shorter outputs and smarter context.

AI, explained simply

What is RAG? How AI chatbots answer questions about your documents

Retrieval-augmented generation explained simply: how chatbots find the right part of your documents and use it to answer, with runnable Python showing the idea.

AI, explained simply

What are AI agents? How AI uses tools to get things done

AI agents explained simply: how language models use tools, the agent loop, a small Python example, and how to keep agents safe and useful.

AI, explained simply

How to choose an AI model for your project

Comparing Claude, GPT and Gemini model tiers for your app: quality, speed, price, context and privacy, and a simple way to test which one fits.

AI, explained simply

Prompting, RAG or fine-tuning? Choosing how to customise an AI model

When to improve prompts, when to add retrieval, and when fine-tuning is worth it. A practical guide to tailoring language models to your data and tasks.

AI, explained simply

How to test and evaluate AI apps

Build an evaluation set for your AI feature: test cases, automatic scoring, model-graded rubrics and regression testing, with runnable Python.

AI, explained simply

How AI image generators work

Diffusion models explained simply: how AI turns random noise into pictures, how text prompts steer it, and why it sometimes gets hands and text wrong.

AI, explained simply

Temperature, top-p and top-k: how AI chooses its words

What the temperature, top-p and top-k settings actually do inside an AI model, with a small Python demo you can run, and which values to use.

AI, explained simply

Why AI makes things up, and how to stop it

Why AI language models state false things confidently, the situations where it happens most, and practical ways to reduce it in chat and in your own apps.

AI, explained simply

How AI language models are trained

How models like Claude and GPT are made: pre-training on huge amounts of text, fine-tuning to follow instructions, and reinforcement learning from feedback, explained simply.

More on Ohm & Token