An 8×8 Dot Matrix with MAX7219

Sixty-four LEDs in an eight by eight grid, driven by a MAX7219, which is a chip built to do exactly the multiplexing you did by hand on the seven-segment display.

Controlling an SG90 Servo

A hobby servo is a small geared motor with a position sensor and a control circuit inside. You do not tell it to turn; you tell it where to be, and it drives itself there and holds.

MG90S, Metal Gear and More Torque

The same servo as the SG90, built properly. Same size, same three wires, same control signal, same library, same code — and metal gears, ball bearings and about a third more weight.

Driving DC Motors with an L298N

An L298N module is an H-bridge: a switching arrangement that lets a small control signal decide which way current flows through a motor, and therefore which way the motor turns. The board carries two of them, so it drives two...

Precise Movement with a Stepper Motor

A motor that moves in counted steps instead of simply turning. Tell it to go four thousand and ninety-six steps and it goes exactly once round — no encoder, no feedback, no trim.

Geared Motors and Wheels for a Robot

A small DC motor with a plastic gearbox on the front and a rubber wheel that pushes on. The gearbox trades the motor's uselessly high speed for the torque needed to actually move something.

Switching Bigger Loads with a Relay

A relay is a mechanical switch operated by an electromagnet. A small current through the coil pulls a set of contacts together, and those contacts can carry far more current than the coil ever touches, on a circuit that has...

A Two-Channel Relay Module

Two relays on one board, so one Arduino can switch two separate loads. A fan and a lamp, a pump and an alarm, a heater and a light.

Driving a Submersible Water Pump

A small brushless pump that sits in the water it moves. Drop it in a tank, run a tube from its outlet, and it will lift water three metres.

A Mini Electronic Lock

A small metal latch with a sliding bolt and a coil behind it. Energise the coil and the bolt retracts; remove the power and a spring pushes it back out.

Reading a 4×4 Matrix Keypad

Sixteen keys on a thin adhesive-backed membrane: digits 0 to 9, *, #, and A to D. It is how a project asks for a PIN, a temperature, a menu choice, anything that needs more than a button or two.

Two Axes and a Button, the Joystick

A thumbstick like the ones on a games controller. Inside are two 10 kilohm potentiometers, one turned by movement left and right, one by movement up and down, plus a momentary switch under the stick that closes when you press...

Receiving Infrared Remote Codes

A small three-pin receiver that listens for the infrared flashes a remote control sends, and a 21-button remote to send them. Point, press, and your sketch gets a number.

Keeping Time with a DS3231

A real time clock: a chip that knows the date and time and keeps counting through power cuts, on a coin cell, for years.

Logging Data to an SD Card

A micro SD card socket on a small board, so an Arduino can write files. Readings go to a card, the card goes into a computer, and you open the result in a spreadsheet.

Uno, Nano, Mega, Pro Mini or ESP32

Every tutorial in this library so far has assumed an Uno, because it is the right board to learn on. It is not the right board for everything you will build next.

Mixing 3.3 V and 5 V Safely

An Uno's pins swing to 5 V. An ESP32's, a BMP280's and an RC522's swing to 3.3 V, and their inputs are not built to survive 5 V.

Regulators, Batteries and Solar

Powering Your Project was about the Arduino's own sockets. This is about building the supply yourself: when a project runs from a battery, needs 3.3 V as well as 5, or has to last a season outdoors.

Small Jobs on an ATtiny85

Eight pins, five of them usable, 8 KB of flash and 512 bytes of RAM, in a chip the size of a fingernail.

Responding Immediately with Interrupts

Everything so far has worked by checking: loop() runs round, reads a pin, and decides. That is fine while the loop is quick, and it starts to fail when the loop has real work in it.

Making a Project Survive Unattended

A project on your bench has you watching it. A project in a greenhouse, a tank or a workshop does not, and the difference is not a small one: a fault you would have noticed in seconds can run for...

Troubleshooting by Symptom

Every tutorial in this library ends with a troubleshooting table for that part. This page is the one you reach for when you do not know which part is at fault, or when the symptom is the whole project rather...

Pinning Library Versions

A sketch that compiled and worked last year will not necessarily compile today, on the same computer, with the same code. Nothing in your file changed. A library did.
Shop
Sidebar
0 Wishlist
0 Cart