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
6 months ago 00:12:23 1
Як створити інформер YouTube: відображення підписників у реальному часі
8 months ago 00:35:30 110
10 МИФОВ и ЗАБЛУЖДЕНИЙ в области Электроники.
8 months ago 00:20:13 98
Такого ЦАП вы еще не видели: мульти DAC-Q11 Douk Audio ESS9038Q2M+AK4493
8 months ago 00:24:54 90
Спираль баланса – самая загадочная деталь часов!
8 months ago 01:15:36 66
Super Old Broken Motorbike Worth 10USD Uploaded To KAWASAKI As A Gift To My Younger Brother
8 months ago 00:14:56 84
Сделает каждый! Переделка компьютерного блока ATX в лабораторный блок питания. Переделка блока АТХ
8 months ago 00:20:31 11
Параметры 3D принтера собранного своими руками финал
8 months ago 00:34:17 66
Магнитофон жует ленту. Часть 2. Сила трения.
8 months ago 00:32:04 91
Модернизация телевизора Рекорд В312.подключаем DVB-T2 ламповому телевизору ссср.
8 months ago 00:21:36 82
СП3 33 конструкция ремонт восстановление
8 months ago 00:13:15 2
24 часа ВЫЖИВАНИЕ на Полигоне Практик Будущего | Влог
8 months ago 00:11:56 1
Пайка металла. Изготовление кулона. DIY
8 months ago 00:12:06 1
Травление металла в домашних условиях. Оригинальный кулон. DIY Часть 1
8 months ago 00:08:08 1
Делаю контроллер для аквариума. О процессе и немного о своем меню Arduino.
8 months ago 00:09:36 2
СДЕЛАЙ САМ в домашних условиях! ПРИКОЛЬНЫЕ ИДЕИ САМОДЕЛОК. ЧТО МОЖНО СДЕЛАТЬ СВОИМИ РУКАМИ?