What TinyML is
TinyML means running machine learning models on microcontrollers: tiny, cheap chips that run on very little power. Learn what they can do, and what they cannot.
In 60 seconds
What TinyML is
TinyML means running machine learning models on microcontrollers: tiny, cheap chips that run on very little power. Learn what they can do, and what they cannot.
Where TinyML sits
| Where the model runs | Typical job | Power and cost | Needs internet? |
|---|---|---|---|
| Cloud data centre | Large language models, big image models | Very high; you pay per use | Yes |
| Phone or laptop | Photo effects, voice typing, small language models | Medium; charged every day | Often not |
| Single-board computer (for example a Raspberry Pi) | Camera projects, small vision models | A few watts; needs a proper power supply | No |
| Microcontroller (TinyML) | One narrow task on sensor data, all the time | Milliwatts or less; can run on a battery for a long time | No |
Why run AI on such a small chip?
- Power. Sending raw sensor data over a radio uses much more energy than checking it on the chip. Deciding locally and sending only the result saves battery.
- Privacy. A doorbell that detects a person on the chip does not need to upload every frame. Audio that never leaves the device cannot leak from a server.
- Speed. There is no round trip to a server, so the answer comes in milliseconds.
- No network needed. A sensor in a field, a pump house or a mine may have no signal at all.
- Cost. A microcontroller costs much less than a phone. You can put one in many places.
Common TinyML jobs
- Wake-word detection ("Hey …") before a bigger system wakes
- Gestures from a motion sensor in a band or a pen
- Unusual vibration in a motor or a pump (early fault warning)
- Counting coughs, bird calls or machine cycles
- A simple "person present or not" check on a small camera
- Chatting with a large language model
- High-quality translation or long speech transcription
- Anything that needs a big model's general knowledge
- Jobs where a mistake could hurt someone and there is no human check
- Problems a simple rule already solves well
The tools, in general
Watch and read more
Lab
Three TinyML idea cards, each checked against what a tiny chip can really do.
The problem
No coding in this lab. Write three short "idea cards" for TinyML projects you could build around your home, college, farm or neighbourhood. For each card, write:
- The job: one narrow question the model answers, such as "is the pressure cooker whistling?".
- The sensor: microphone, motion sensor (accelerometer), temperature, light or a small camera.
- The output: what happens when it detects something: a light, a buzzer, one short message.
- Why on the chip: power, privacy, speed, no network or cost.
- What could go wrong: one kind of false alarm and one kind of miss.
Finally, write one idea that sounds exciting but is not a good fit for TinyML, and say why.
You are done when
Hard questions
Try to answer before you reveal. If you can answer these, you understood the lesson.
Q1A friend says: "Let's put ChatGPT on a microcontroller so my fan can chat with me." What would you tell them?Reveal
A large language model needs far more memory and compute than a microcontroller has. A microcontroller could run a tiny wake-word or command model ("fan on", "speed two"), and the fan could send the audio to a bigger computer or the cloud only if a real conversation is needed. TinyML is about narrow jobs, not general chat.
Q2When is a simple rule better than a TinyML model?Reveal
When the pattern is clear and stable, for example "turn on the pump light if the water level switch is closed". A rule is easier to test, explain and fix. Use a model when the pattern is hard to write as rules, like telling a cough from a laugh, or normal vibration from early wear.
Questions people ask
Is TinyML the same as "edge AI"?
TinyML is the smallest end of edge AI. Edge AI means running models near the data instead of in the cloud: on phones, cameras, gateways and boards. TinyML is the part that runs on microcontrollers, with kilobytes of memory and very low power.
Can a microcontroller learn on its own after I deploy it?
Usually the model is trained on a computer and only runs on the chip. Some projects do small on-device updates, but training needs much more memory and power. For a first project, plan to train on your computer and deploy a fixed model.
Do I need to buy a board to follow this track?
No. The coding labs run in your browser with made-up sensor data. A board helps for the last lesson, and many beginner boards with a motion sensor or microphone work. Check which boards your chosen tool supports today.
Is TinyML only for engineers?
No. Makers, students and hobbyists build TinyML projects too. You need some Python for training, and some patience with a board's setup. The ideas in this track are the same whichever tool you use.
Lesson test
5 questions. Get 3 right (60%) to pass and complete this lesson.