Five builds on a six-axis accelerometer and gyroscope: a digital spirit level, a direction detector, a step counter, a fall-detection alarm and a multi-page sensor dashboard. This is the sensor behind most of our assistive wearables.
What is inside
Pitch and roll turned into a moving bubble, exactly like a physical spirit level.
Reads the accelerometer and calls the movement Forward, Backward, Left or Right with arrows on screen.
Watches for the sudden acceleration signature of a fall, sounds the alarm and keeps a fall counter.
Detects the walking rhythm in the motion data and counts steps in real time.
Acceleration, tilt angles, activity state, step count and fall count across pages you switch with a button.
Circuit connections
| Connection | Arduino pin |
|---|---|
| MPU6050 SDA / SCL | A4 / A5 |
| OLED SDA / SCL | A4 / A5 |
| Push button | D2 to GND |
| Buzzer S | D8 |
| Module power | 5V + GND |
Bench note: Both the MPU6050 and the OLED sit on the same two I2C wires. That is normal — they have different addresses, so A4 and A5 are shared, not duplicated.
Libraries used
Wire.hAdafruit_GFX.hAdafruit_SSD1306.hGet the parts
Two ways to build this, and you can choose either. Take the complete kit in one box, or buy only the individual components you are missing. Both use the normal shop cart.
Option 1 — Complete kit
₹5,499eARgle Assistive Technology Kit — everything needed, boxed, with the quick-start card and reference sketches.
Enquire to orderOption 2 — Individual components
₹880Live prices from our partner Robolark: ₹880 for 7 of 7 parts in stock. Add them all at once, or pick single items from the list below.
Add all 7 components- Uno R3-Microcontroller (ATmega328p)-Arduino CompatibleR-0007₹380Add to Parts Box
- MPU6050-GY-521: 3-Axis Accelerometer and Gyroscope Sensor-I2CR-0369₹210Add to Parts Box
- Oled Display - 4 pin (0.96 Inch)R-0036₹200Add to Parts Box
- 4-pin Push Button (5mm)- Pack of 3pcsR-0150₹10Add to Parts Box
- Buzzer 5VR-0273₹15Add to Parts Box
- Breadboard 400 Tie pointsR-0160₹45Add to Parts Box
- Jumper Wires - Male to Male × 2R-0457₹20Add to Parts Box
Already own the board or the display? Skip them — the sketches do not care where the parts came from.
From the bench
Source code
Every sketch on this page is open source. Clone it, change it, break it, tell us what you learned.
Want to be taught this, not just handed the code?
We run this as a mentor-led session for schools, colleges and individual learners, online or at our centre. Tell us what you want to build.