LabNote: MPU6050 Based IMU Arm Motion Capture + Blender Realtime Sync

  Рет қаралды 12,040

-T.K.-

-T.K.-

Күн бұрын

▹ Come across the idea someday that if every joint's world rotation angle can be captured, combined with the dimension of the length of each bone, we can in fact compute the relative gesture of the entire armature, as well as the relative positional information!
▹ If this expands well to whole body, then perhaps we just need a single tracker for getting the world location?
▹ Code: github.com/T-K...

Пікірлер: 61
@IamSH1VA
@IamSH1VA 2 жыл бұрын
Very cool & seems fast 👍🙌👏🏻👏🏻 This is the best mocap project I have seen 🤯
@gokz9079
@gokz9079 8 ай бұрын
Very cool video, I'm doing this exact thing for my college project and I wanted to ask how I could get started. I feel very overwhelmed and dont know what combination of sensors and arduino to use, what software to output the data visually etc. Any help would save my life!
@-T.K.-
@-T.K.- 8 ай бұрын
I would recommend start from simple, follow the Arduino tutorials. If Adafruit is accessible to you, they provide decent tutorial and docs for their products.
@DudimusReviews
@DudimusReviews 2 ай бұрын
Great project! Is it possible to translate those coordinates into angles that servos can use to capture the arm motion? I can't seem to make the MPU6050 understand the difference when my arm is stretched out to the side versus when it's stretched out front since both of these positions only have acceleration in the Z-direction.
@abelgetachew838
@abelgetachew838 10 ай бұрын
its a great project and can you give us more details on the project about the wiring , the code is it only c++ or other ...
@prateeksarkar8573
@prateeksarkar8573 Жыл бұрын
Compilation error: 'class MPU6050' has no member named 'dmpInitialize'; did you mean 'initialize'? this is the error i get. I am running on esp8266
@1Chitus
@1Chitus Жыл бұрын
Awesome!!!
@chriscarr2488
@chriscarr2488 Жыл бұрын
Great project! Long story short, working on a very important project. Trying to implement a boxing device for positioning, in this case, the shoulders and wrist will be connected together. The whole purpose will be to have the guard up, my question is it is possible to connect 2 sensors in 1? 2 sensors acting like 1 for each hand. Really need help on this please help us on this!
@-T.K.-
@-T.K.- Жыл бұрын
I don't quite understand what you mean by "two sensors acting like 1". In my case here, I'm putting one on upper arm and one on lower arm. To get the two joint positions, I would do a coordinate transform in blender.
@gambikules
@gambikules 9 ай бұрын
@@-T.K.- Hello you use rasberi pi or anduino ?
@-T.K.-
@-T.K.- 9 ай бұрын
@@gambikules Arduino, in particular the nRF52840 Itsy Bitsy by Adafruit
@-T.K.-
@-T.K.- 9 ай бұрын
@@gambikules Arduino, in particular the nRF52840 Itsy Bitsy by Adafruit
@yj1035
@yj1035 13 күн бұрын
Hi, I am currently doing a similar project, I have export a rigged model to three.js and tried to set quaternion value from sensor to the mode, but the arm's rotation is totally different than expected...is there anything need to be noticed during calibration and rig. do we need extra calculation to convert sensor rotation data to blender's one (because I have calibrate the sensor data from local coordinate system to human body coordinate)
@-T.K.-
@-T.K.- 11 күн бұрын
@@yj1035 hmmm, I would recommend checking all the reference frame etc. to see if they match up
@yj1035
@yj1035 11 күн бұрын
@@-T.K.- emm, what do you mean by reference frame. and not sure when we rig the character, do we need to care about the local coordinate system's direction of bone
@ДанилСтарновский-д7н
@ДанилСтарновский-д7н 8 ай бұрын
Большое спасибо очень крутой проект
@corneliuswelling3210
@corneliuswelling3210 Жыл бұрын
Hello, your Project looks very nice and I am trying to do it myself. I get the right data from my sensor in the Arduino IDE Serial Monitor and it changes when moving the sensors. However, when using your code with blender I only get the same starting value over and over again and it does not update after moving the sensors. Although the data changes in the Arduino IDE. So my animation only changes her arm position once. Do you know how I could fix this?
@-T.K.-
@-T.K.- Жыл бұрын
Can u try to add some print() statements in Python loop to first verify that the loop is actually running?
@endrisbuzhala4914
@endrisbuzhala4914 Жыл бұрын
I have kind of the same problem...
@corneliuswelling3210
@corneliuswelling3210 Жыл бұрын
@@-T.K.- I added "print("Test")" in line 40 and the output seems weird. Output: All started. Test : Incorrect packet received. Test Test : Incorrect packet received. Test [`0.79`, `-0.60`, `0.06`, `-0.10`, `0.80`, `-0.60`, `0.07`, `0.07`, ``] Test [`0.79`, `-0.60`, `0.06`, `-0.10`, `0.80`, `-0.60`, `0.07`, `0.07`, ``] [`0.79`, `-0.60`, `0.06`, `-0.10`, `0.80`, `-0.60`, `0.07`, `0.07`, ``] [`0.79`, `-0.60`, `0.06`, `-0.10`, `0.80`, `-0.60`, `0.07`, `0.07`, ``] [`0.79`, `-0.60`, `0.06`, `-0.10`, `0.80`, `-0.60`, `0.07`, `0.07`, ``] [`0.79`, `-0.60`, `0.06`, `-0.10`, `0.80`, `-0.60`, `0.07`, `0.07`, ``] [`0.79`, `-0.60`, `0.06`, `-0.10`, `0.80`, `-0.60`, `0.07`, `0.07`, ``] …
@-T.K.-
@-T.K.- Жыл бұрын
@@corneliuswelling3210 hmmmm... I'll try to polish the project some time...
@corneliuswelling3210
@corneliuswelling3210 Жыл бұрын
@@-T.K.- okay thank you very much. Pls let me know if you find a solution :D.
@sanjeevpatelsanjeevpatel4295
@sanjeevpatelsanjeevpatel4295 2 жыл бұрын
Hello sir your project is too good I want to make this type of project for my college i tried your code and your file . Code is run perfectly but there is a problem in body there is no movement so please can you solve out my this problem
@-T.K.-
@-T.K.- 2 жыл бұрын
It's hard to debug with comment section... I'm just going to share my procedure: 1. Did you get reading from serial port? 2. Is the data from serial port correctly framed? 3. Is the data converted to correct angles? 4. Is blender responding to those angle changes commands? Can have a separate piece to test e.g. set joint to a certain fixed value 5. If it still don't work, I will just rewrite 😆
@sanjeevpatelsanjeevpatel4295
@sanjeevpatelsanjeevpatel4295 2 жыл бұрын
It's working now thank you so much
@sanjeevpatelsanjeevpatel4295
@sanjeevpatelsanjeevpatel4295 2 жыл бұрын
Can I expand this to whole body?
@ahmedbenhassen2007
@ahmedbenhassen2007 Жыл бұрын
@@sanjeevpatelsanjeevpatel4295 im having the same problem .Can you please share with us what modifications you have made ?
@zasranets-vonu4ih
@zasranets-vonu4ih 2 жыл бұрын
Очень круто!
@TheGnipahellir
@TheGnipahellir Жыл бұрын
... thats a beautiful hand you have)
@Zumito
@Zumito Жыл бұрын
you have the MPU 6050 with 6 or 9 axis?
@-T.K.-
@-T.K.- Жыл бұрын
6
@Zumito
@Zumito Жыл бұрын
@@-T.K.- wow that's incredible, the result is perfect and you only use 6 axis, i'm going to try this
@qntkk_
@qntkk_ Жыл бұрын
Awesome!!! can you make a python based one for raspberry pi?
@-T.K.-
@-T.K.- Жыл бұрын
It will be pretty similar ---- the complex part is on Blender's side for serial communication
@qntkk_
@qntkk_ Жыл бұрын
@@-T.K.- i dont really need it for blender, just need the xyz values printed in console on the rpi also does this code measure world position? i want to have only one mpu6050 that i can move around anywhere and see how many meters it is far from starting position
@TinNguyen-wx4fq
@TinNguyen-wx4fq 2 жыл бұрын
good job
@ztdeng
@ztdeng 5 ай бұрын
您能提供 Python 数据与 Blender 通信的视频吗?
@sinawkey
@sinawkey 3 ай бұрын
How is the realtime sinc so fast?
@maksimmaksim7872
@maksimmaksim7872 2 ай бұрын
У меня blender зависает когда начинают данные поступать
@SaideepPowar
@SaideepPowar 11 ай бұрын
hello sir please provide connection diagram?
@Royerbin
@Royerbin 4 ай бұрын
The previous code worked wonderfully, boss, can you resend it to me or upload it to git, please, please .blend pls
@-T.K.-
@-T.K.- 3 ай бұрын
Perhaps try this one? github.com/T-K-233/Dual-MPU6050-Motion-Sync
@Royerbin
@Royerbin 3 ай бұрын
@@-T.K.- thank you very much boss you are a crack....like
@madcatdev
@madcatdev Жыл бұрын
what Ardruino are you using here ?
@-T.K.-
@-T.K.- Жыл бұрын
nRF52840. I use it simply because I have plenty of them sitting in my bin. Any small Arduino board would work here in the USB tethered setting.
@lapateja7325
@lapateja7325 2 жыл бұрын
.blend is empty :S Can you update on github please?
@-T.K.-
@-T.K.- 2 жыл бұрын
Shouldn't be... I've tried to download zip from GitHub and open it, looks good on my end. I'm using Blender 3.0.1, if that helps
@lapateja7325
@lapateja7325 2 жыл бұрын
@@-T.K.- It was that!, a very clean code. Congratulations!! Thank you!!
@lapateja7325
@lapateja7325 2 жыл бұрын
I receive a UTF8 error when the script is executed :S
@-T.K.-
@-T.K.- 2 жыл бұрын
@@lapateja7325 Oops, that's on Python side? That's weird.... I would suspect that the bone names are resulting this error (vrm model is imported from Vroid, which is a Japanese software). Perhaps try setting system language setting to support japanese or chinese?
@-T.K.-
@-T.K.- 2 жыл бұрын
@@lapateja7325 Something like this www.digitalcitizen.life/changing-display-language-used-non-unicode-programs/
@balamurugan.k2981
@balamurugan.k2981 Жыл бұрын
Script run perfectly but no movement in body and no any data in console
@-T.K.-
@-T.K.- Жыл бұрын
It's hard to debug in the comment section... But - have you programmed the microcontroller correctly? - Try opening the serial monitor and first check the reading there?
@balamurugan.k2981
@balamurugan.k2981 Жыл бұрын
It show value to but blender not
@-T.K.-
@-T.K.- Жыл бұрын
@@balamurugan.k2981 is baudrate set to the correct value?
@sehntai2477
@sehntai2477 Жыл бұрын
Now play Bad Apple on it
Blender 4.2 Facial Motion Capture
19:18
Default Cube
Рет қаралды 72 М.
Зу-зу Күлпаш 2. Интернет мошенник
40:13
ASTANATV Movie
Рет қаралды 460 М.
Кәсіпқой бокс | Жәнібек Әлімханұлы - Андрей Михайлович
48:57
Open Source Motion Capture for Autonomous Drones
10:34
Joshua Bird
Рет қаралды 621 М.
[DIY] Motion Capture на Arduino и MPU6050
27:09
Random Games
Рет қаралды 10 М.
Why motion capture is harder than it looks
8:36
Vox
Рет қаралды 582 М.
3D Tracking with IMU
3:28
SebMadgwickResearch
Рет қаралды 554 М.
Making a pawn that can actually turn into a queen | Blender 4.0
12:43
Simple Object Tracking Camera Android OpenCV DIY
2:20
Robotics Learner
Рет қаралды 142 М.
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 5 МЛН
Do you REALLY need a good GPU for Blender?
13:16
Curtis Holt
Рет қаралды 26 М.
31 portals of impossible shape
35:50
optozorax
Рет қаралды 916 М.
Animating F-35 jets in Blender
13:18
MLT Studios
Рет қаралды 251 М.
Зу-зу Күлпаш 2. Интернет мошенник
40:13
ASTANATV Movie
Рет қаралды 460 М.