Go Down

Topic: Mpu6050 with Nodemcu board for Neopixel on a swing (Read 37 times) previous topic - next topic


Mar 24, 2019, 12:49 pm Last Edit: Mar 24, 2019, 12:57 pm by nervusvagus
I'm trying to install neopixel lights on a swing so they would light up with the speed of the swing. I tried a couple of times but I believe I need to clear a few things.

Im trying to use the MPU6050_tockn library https://github.com/tockn/MPU6050_tockn however I have a few things I couldnt wrap around my head:

1- Im using the nodemcu-mpu6050 hooked up to a powerbank. Do I need to calibrate the mpu6050 each time I launch it using the powerbank.

2- Insteas of pitch, yaw, roll I would like to solve using accelerometer. I have hard time understanding how the motion of a childrens swing translates to the accelerometer. I would think either of the x, y, z values would give me the result I need however the swing tilts along with the acceleration and I do believe this effects the values.

Attaching code and excel sensor results though all is a mess. How would you go about this project?

Go Up