Idea
In short
How do you build a tilt switch step counter?
A ball tilt switch counts steps in a shoe or pocket and shows a total, a very cheap pedometer for learning. You need ATtiny85-20PU microcontroller, Tilt sensor (ball switch, SW-520D), TM1637 4-digit display, CR2032 coin cell and CR2032 coin cell holder.
- Level
- Beginner
- Time
- About 60 min
- Parts
- 5
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal
Count events from a simple mechanical sensor and filter bounce.
Parts list
- Integrated Circuits
- Sensors
- Displays
- Batteries
- Power
How to build it
- Read the tilt switch on a pin
- Ignore pulses closer than 250 ms
- Count steps
- Show the total on a 4-digit display
- Compare with counting by hand over 100 steps
Common questions
What parts do I need for the tilt switch step counter?
ATtiny85-20PU microcontroller, Tilt sensor (ball switch, SW-520D), TM1637 4-digit display, CR2032 coin cell and CR2032 coin cell holder.
How long does the tilt switch step counter take to build?
About 60 minutes for a beginner maker.
