This time I will show you how to make balancing Led dot using WS2812 led strip and MPU6050 accelerometer and gyroscope module.
This module is physically attached to the LED-strip, so when the LED-strip is held at a certain angle, the chip measures the angle of the LED strip and the Arduino uses this information to update the position of a virtual object as if it was a ball that is balanced on a beam and rolls from one side to the other if the beam is held at an angle. The position of the virtual object is indicated on the LED strip as a single LED that is illuminated. The code is taken from the Roel Arits blog with minor changes in hardware and software. Specifically I use Arduino Nano and LED strip with 37 LEDs.
To update the position of a virtual object that is falling to the earth under the influence of gravity, we use the formula :
y = y0 (V0 * t) (0.5 * a * t^2)
y = travelled distance in meters
y0 = start distance in meters
v0 = start velocity in meters/second
a = acceleration (gr
86 views
37
10
9 years ago 00:08:32 327
DIY Arduino Battery Capacity Tester V1.0
10 years ago 00:02:03 537
DIY Arduino ribbon synth demo
4 years ago 00:11:28 100
Arduino DIY Camera Slider
10 years ago 00:05:15 120
Meganome -- DIY Arduino MIDI Controller
1 year ago 00:29:31 1
DIY Arduino PCB milling CNC
5 years ago 00:15:27 30
DIY Arduino based RC Receiver
6 years ago 00:12:24 1K
DIY Arduino based Automatic Motor Winding Machine
5 years ago 00:11:43 139
DIY Arduino 2d motion Racing Simulator
4 years ago 00:01:52 34
skinnerbox diy arduino based stepsequencer
4 years ago 00:02:54 32
DIY Arduino sequencer demo
5 years ago 00:03:29 31
DIY Arduino height measuring machine
9 years ago 00:02:15 2
DIY arduino controlled EggBot
9 years ago 00:09:58 560
DIY Arduino watch - самодельные часы на Ардуино
4 years ago 00:04:16 97
DIY Arduino Balancing Led strip
6 years ago 00:10:50 117
DIY Arduino based 2D wire bending machine
4 years ago 00:34:37 9
Tevio MIDI Controller - Arduino DIY (ITA)
5 years ago 00:19:33 95
DIY Arduino based Bobbin Winding Machine
9 years ago 00:03:02 175
Diy Arduino Laser CNC Engraver and PCB Exposer
6 years ago 00:09:09 1
Arduino Kit Diy
12 years ago 00:01:47 17
Diy usb arduino with ZIF socket
4 years ago 00:08:24 125
DIY Arduino MIDI arpeggiator demo
4 years ago 00:01:08 67
DIY segway with Arduino - second version
9 years ago 00:09:45 165
How to: DIY Arduino CNC Router Cutter Welder(Part 1: Base and X-Axis)