# Usermod update for MPU6050; request

**URL:** https://wled.discourse.group/t/usermod-update-for-mpu6050-request/7587
**Category:** Usermods
**Created:** [February 25, 2023, 1:42pm UTC](https://wled.discourse.group/t/usermod-update-for-mpu6050-request/7587 "2023-02-25T13:42:04Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Tech500](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/tech500/32/4458_2.png) [@Tech500](https://wled.discourse.group/u/Tech500)
#### Post date: [February 25, 2023, 1:42pm UTC](https://wled.discourse.group/t/usermod-update-for-mpu6050-request/7587/1 "2023-02-25T13:42:04Z")

</div>

Good Morning,

Created a sketch that will create variables: “effects,” “intensity,” and “color pallete” for use with WLED.

OpenAI’s, ChatGPT assisted on the project.

[MPU6050\_WLED Sketch results](https://drive.google.com/file/d/1g_-iDbVlO1EGKQ-RoPPbJha8NOVTSQiS/view?usp=share_link)

[Github repository of MPU6050\_WLED project](https://github.com/Tech500/MPU6050_WLED)

[Short video showing WLED effects, intensity, and color palettes](https://drive.google.com/file/d/12BliFWaQwevh7K2Fu8r-Fuq78ZKXXvYJ/view?usp=share_link)

Struggling at modifing Usermods ; being a newbie to WLED Usermods, is there anyone that could create Usermod for this Sketch. Goal is for this to be user interactive; using a “paddle” with MPU6050 mounted on “paddle,” along with a battery powered ESP32 sending: effects, intensity, and color palettes depending on the MPU6050, Accelometer outputs.

Regards,  
William

---

<div class="post-metadata">

### Author: ![ALDIY](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/aldiy/32/2716_2.png) [@ALDIY](https://wled.discourse.group/u/ALDIY)
#### Post date: [February 25, 2023, 1:47pm UTC](https://wled.discourse.group/t/usermod-update-for-mpu6050-request/7587/2 "2023-02-25T13:47:33Z")

</div>

MPU6050 usermod demo here [Discord](https://discord.com/channels/473448917040758787/473449361498570762/1072001791237042287) , might be easier to modify that

---

<div class="post-metadata">

### Author: ![Tech500](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/tech500/32/4458_2.png) [@Tech500](https://wled.discourse.group/u/Tech500)
#### Post date: [February 26, 2023, 3:08am UTC](https://wled.discourse.group/t/usermod-update-for-mpu6050-request/7587/3 "2023-02-26T03:08:37Z")

</div>

@ ALDIY Link has no content on Discord; just Intro page.

William

---

<div class="post-metadata">

### Author: ![ALDIY](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/aldiy/32/2716_2.png) [@ALDIY](https://wled.discourse.group/u/ALDIY)
#### Post date: [February 26, 2023, 5:50am UTC](https://wled.discourse.group/t/usermod-update-for-mpu6050-request/7587/4 "2023-02-26T05:50:28Z")

</div>

> **[WLED/usermods/mpu6050\_imu at mdev · MoonModules/WLED](https://github.com/MoonModules/WLED/tree/mdev/usermods/mpu6050_imu)**
>
> mdev/usermods/mpu6050\_imu

Demo for that on discord search for MPU6050

 ![image](https://global.discourse-cdn.com/free1/uploads/wled/original/2X/9/983bca61830a41db0374ecfa2e36382127b87b87.png)

---

<div class="post-metadata">

### Author: ![Tech500](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/tech500/32/4458_2.png) [@Tech500](https://wled.discourse.group/u/Tech500)
#### Post date: [March 11, 2023, 1:00pm UTC](https://wled.discourse.group/t/usermod-update-for-mpu6050-request/7587/5 "2023-03-11T13:00:22Z")

</div>

Good Morning,

Struggling to figure out a way to keep motion detection active using an interrupt, for sequential data readings; decide on another approach. Using a touch pin with a conditional statement. I have the desired result working.

If the “Chromawand” is in use the motion function is called; when not in use, noMotion function is called. Nearly perfect; except for some math processing time I think, as there is some lag between “Chromawand” movement and seeing the change in RGB effects.

“Chromawand” uses MPU6050, Accelerometer and Gyroscope to send motion data; after conversion to WLED variables. Variables make up a custom URL String; sent by HTTPClient to a WLED Controller. I am sending ny WiFi; from Sketch running on an ESP32. Sketch will also run on an ESP8266.

Project should work with any WLED Controller; since it utilizes the WLED HTTP api. There is no need for a Usermod. Project was developed with an assist from OpenAI’s. ChatGPT.

[Code is on GitHub](https://github.com/Tech500/MPU6050_WLED)

William

---

<div class="post-metadata">

### Author: ![ALDIY](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/aldiy/32/2716_2.png) [@ALDIY](https://wled.discourse.group/u/ALDIY)
#### Post date: [March 11, 2023, 6:24pm UTC](https://wled.discourse.group/t/usermod-update-for-mpu6050-request/7587/6 "2023-03-11T18:24:47Z")

</div>

i will get MPU6050 tomorrow if we could test that

---

<div class="post-metadata">

### Author: ![Tech500](https://yyz2.discourse-cdn.com/free1/user_avatar/wled.discourse.group/tech500/32/4458_2.png) [@Tech500](https://wled.discourse.group/u/Tech500)
#### Post date: [March 11, 2023, 8:04pm UTC](https://wled.discourse.group/t/usermod-update-for-mpu6050-request/7587/7 "2023-03-11T20:04:22Z")

</div>

Hookup diagram for ESP32 is included in the GitHUb repository.

[GitHub repository for project code](https://github.com/Tech500/MPU6050_WLED)

William
