← All articles

8 November 2026

Vibration sensor: the tiny ears that hear footsteps

Illustration of a vibration sensor detecting movement: a sensor module with vibration waves spreading around it

Knock, knock, knock. Three knocks on the door, and the door opens by itself — not because someone pressed a doorbell, but because a small robot in the house "heard" the knocking. It has no ears like a person, but it has a tiny component called a vibration sensor. The moment the table shakes even a little, the sensor knows, and the robot reacts instantly.

Vibration sensors are in more places than most parents realize: in phones, they know when the device has been dropped; in washing machines, they know when the drum is shaking too hard; in buildings, they are part of earthquake warning systems. For kids learning robotics, this is one of the most fun sensors to start with — because your child can knock, clap, and stomp, and watch the robot answer right away.

What is a vibration sensor?

A vibration sensor is a component that turns mechanical shaking into an electrical signal an Arduino can read. Simply put: if there is vibration, there is a signal; if there is no vibration, there is no signal. The Arduino only has to read that signal to know that "something just happened."

There are two common kinds of vibration sensor that kids will meet. The first is the switch type: inside it sits a small spring in a metal tube. When everything is still, the spring rests in the middle, the circuit is open, and there is no signal. When a vibration arrives — a knock, a footstep, a shake — the spring wobbles, touches the wall of the tube, and the circuit closes for a split second, flipping the signal. The Arduino only has to see the signal change to know a vibration just happened.

The second kind is the piezoelectric sensor: inside it is a special crystal that produces a tiny voltage when it is bent or struck. The stronger the shake, the larger the voltage. This kind does not only know "is there vibration or not" — it also knows "how strong is the vibration." Older kids can use it to measure the strength of a knock, or to tell a light footstep apart from a heavy one.

A vibration sensor module usually has a small knob called a potentiometer. Turning it adjusts the sensitivity: one way, the sensor only reacts to a hard thump on the table; the other way, even a gentle tap on the tabletop is enough to trigger it. This is your child's first lesson in thresholds — a concept engineers use every day: something only counts as a signal when it is big enough, and anything smaller is ignored.

What can a robot hear?

With a vibration sensor, a robot is no longer "deaf." It can hear a knock on the door: knock twice and the light turns on, knock three times and it turns off — a secret code only the family knows. It can hear footsteps: place the sensor under the doormat, and when someone steps in, the hallway light switches itself on. It can hear a machine shaking: put the sensor on the washing machine, and when the machine shakes hard it means it is spinning; when the shaking stops, the wash is done — the robot can light up a "laundry finished" signal for the whole house.

In safety, a vibration sensor can do even more. Attach it to a box holding a prized toy, and anyone who lifts or moves the box sets off the buzzer — a miniature burglar alarm your child built. Put the sensor on a study desk and your child can build a "shake meter": tap the desk harder, and more LEDs light up, like a game that measures strength.

The interesting part is that a vibration sensor teaches kids to tell vibration apart from movement. An ultrasonic sensor measures distance, an infrared sensor spots obstacles, but a vibration sensor notices the touches and bumps the other two cannot see. A complete robot needs many senses, and the vibration sensor is one of the easiest for a child to understand — because the child creates the vibration with their own hands.

Four small projects with a vibration sensor

1. The knock light: stick the vibration sensor on a tabletop and wire an Arduino to one LED. Knock once, the light turns on; knock again, it turns off. Your child learns about conditions: the program does not run nonstop — it waits for an event, then acts — just like waiting for the doorbell before opening the door.

2. The treasure box alarm: a small box holds your child's most precious item, with a vibration sensor inside wired to a buzzer. Anyone who lifts the box or opens the lid sets off the alarm. This project teaches a real design lesson: the alarm must be sensitive enough to catch an intruder, but not so sensitive that it goes off when your child simply sets the box down on the table.

3. The washing machine shake meter: place the sensor on a running washing machine and let LEDs show the shaking: a gentle shake lights one LED, a hard shake lights all three. Your child will see that a vibration sensor does not only answer "yes or no" — with the piezoelectric kind, it can also tell the story of "how strong."

4. The "copy the rhythm" game: the Arduino flashes a knock rhythm with blinking lights, and your child must tap the same rhythm back on the table. The vibration sensor counts every tap, the program compares it with the sample rhythm, and scores the result. It is a wonderful way for a child to see how a computer counts events — each knock is one event, and a program is just a list of decisions based on events.

Three games that need no circuit at all

You can play even without a circuit. The "secret knock code" game: the family agrees on a knock code — two knocks, a pause, one knock — and only someone who knocks correctly may open your child's bedroom door. This game is exactly how the knock light works, except the brain processing the code is a person instead of an Arduino.

The "vibration detective" game: one person closes their eyes and rests a hand on the table while another taps one of the four table legs. The blindfolded player must guess which leg the tap came from, using only the vibration travelling through the tabletop. After a few rounds, your child will understand why engineers must place a sensor in the right spot: put it in the wrong place, and the signal gets weak and the machine can no longer "hear" clearly.

The "sensitivity test" game: place a plastic cup on the table and drop marbles into it from increasing heights. The higher the marble falls, the harder the cup shakes. Your child records the smallest height that makes the cup shake visibly — that is the cup's "threshold," just like the sensitivity knob on a real sensor module.

How your child learns this at ManuStem

On stem.manusignal.com, your child wires a vibration sensor into a circuit right in the browser — no kit to buy, no delivery to wait for. The 3D view shows the spring inside the sensor wobbling when there is a knock, the signal changing, and the LED reacting instantly. If the wiring is wrong or the code does not run, the AI coach points out the mistake and suggests a fix in Vietnamese, like a teacher sitting beside them.

The course has 28 lessons — 8 Component Lab lessons and 20 Competition Robot lessons — for kids aged 8 and up, taught in Vietnamese and English, with 4 free trial lessons. The vibration sensor is just one of the senses your child gives a robot: after that come the ultrasonic sensor, the infrared sensor, the OLED display, and even programming competition robots in C++ on the ESP32 kit for ages 13 and up.

One small knock, one small signal — the vibration sensor teaches your child a big engineering lesson: machines do not need complicated senses to understand the world, they just need to listen in the right place. Let your child knock on the table and watch the robot answer.


Let your child build a robot that hears a knock today — no kit needed, try 4 lessons free at stem.manusignal.com.

Read the Vietnamese version:

Cảm biến rung: đôi tai nhỏ nghe được cả bước chân