Failing to use mpu6050 as a gesture sensor

Hi, I'm a beginner in arduino and I was wondering how to get the mpu6050 working as a gesture sensor, so I looked and searched around until I found this interesting YouTube tutorial explaining exactly what I needed, it's only 10 minutes, but his explanation is very clear. But the problem is, that I can't to get it right like he did in his tutorial. So I will leave the YouTube link below. And so can anyone please tell me what he or she did to get it work. I know that's a lot to ask, but I want you to know that it is really appreciated.

The YouTube tutorial is from DastardlyLabs:

I am not going to fall for your trick to get me to go to some link. Please explain what your device/program did that is different.

Paul

faissal-b:
Hi, I'm a beginner in arduino and I was wondering how to get the mpu6050 working as a gesture sensor, so I looked and searched around until I found this interesting YouTube tutorial explaining exactly what I needed, it's only 10 minutes, but his explanation is very clear. But the problem is, that I can't to get it right like he did in his tutorial. So I will leave the YouTube link below. And so can anyone please tell me what he or she did to get it work. I know that's a lot to ask, but I want you to know that it is really appreciated.

The YouTube tutorial is from DastardlyLabs:
https://youtu.be/twLQG540neY

If you didn't manage to make it work it seems like it wasn't that clear.

When asking technical questions you need to at least explain what you want to do and what you've tried so far.

There are lots of things he did in that video. What was the last one that worked and the first one that didn’t.
.

The first thing that went wrong is when I tried to install the npm package via the prompt command, like he did, but that didn't even work, and the first thing that went right is when I installed the Node.js which obviously isn't the hardest part but still...

nicolajna:
If you didn't manage to make it work it seems like it wasn't that clear.

When asking technical questions you need to at least explain what you want to do and what you've tried so far.

So this is what I want: I want to use the mpu6050 as a gesture sensor meaning, I want the sensor to record a movement for example my hand movement and every time I do that same movement, an LED will light up And maybe later on to add some more movements and LED's. So that's my goal.
And for what I'v tried so far is following that guy on YouTube, which didn't go well. But let's see, I downloaded the app called Node.js then I copied his line from his description and pasted it in the command prompt, and from there everything went side ways, the command prompt says that he can't find the apps location. So that's all.

Let’s get this straight, you did get the bit with the cascading numbers down the serial monitor he showed before loading in the node.js stuff?

Yes, it worked perfectly until that step. And this is my wiring: INT of the mpu6050 to pin 2 of the Arduino, VCC to VCC, ground to ground SDA to A4 and SCL to A5.

OK so the big problem here is that you are not telling us what you did and what the actual results were. The phrase "didn't work" is almost meaningless in electronics.
Did you get an error message?
What was it?
What line did it occur on?
What code were you trying to run? - That means posting your code.
So get serious about your feedback if you want to peruse this line of work.

So this is what I want: I want to use the mpu6050 as a gesture sensor meaning, I want the sensor to record a movement for example my hand movement and every time I do that same movement, an LED will light up And maybe later on to add some more movements and LED's. So that's my goal.

That final thing is beyond what he is doing here.
What he is doing is plotting out the smoothed data from the sensors on a graph. He is then doing his gesture and freezing the plots. Then he is looking at the numbers in the plot and using a separate program to look for those sequence of numbers.

This will only work with the simplest and grossest of movements. In a way it is a simple trick which will be prone to both signaling a gesture when there was not one given and failing to give one what it is. It looks reliable in his video because he did it few times and I suspect he edited out the failures.

Gesture recognition is hard, it is very hard and much harder than he makes out. With several gestures stored, then it takes a time to go through them all check them, several seconds. This technique is called template matching, and is nothing like he does. The result of a template match will be a percentage of certainty that a given gesture matches a stored one.

If you really want to have a go at what the Arduino can do then look at this link:-
AI - Google’s flagship machine learning library: “TensorFlow“
But you will need a BLE33 Sense, a much more powerful Arduino than you have been using.

Grumpy_Mike:
OK so the big problem here is that you are not telling us what you did and what the actual results were. The phrase "didn't work" is almost meaningless in electronics.
Did you get an error message?
What was it?
What line did it occur on?
What code were you trying to run? - That means posting your code.
So get serious about your feedback if you want to peruse this line of work.

That final thing is beyond what he is doing here.
What he is doing is plotting out the smoothed data from the sensors on a graph. He is then doing his gesture and freezing the plots. Then he is looking at the numbers in the plot and using a separate program to look for those sequence of numbers.

This will only work with the simplest and grossest of movements. In a way it is a simple trick which will be prone to both signaling a gesture when there was not one given and failing to give one what it is. It looks reliable in his video because he did it few times and I suspect he edited out the failures.

Gesture recognition is hard, it is very hard and much harder than he makes out. With several gestures stored, then it takes a time to go through them all check them, several seconds. This technique is called template matching, and is nothing like he does. The result of a template match will be a percentage of certainty that a given gesture matches a stored one.

If you really want to have a go at what the Arduino can do then look at this link:-
AI - Google’s flagship machine learning library: “TensorFlow“
But you will need a BLE33 Sense, a much more powerful Arduino than you have been using.

Does a mega 2560 have enough power to do the same?

No a mega has exactly the same processing power as Uno.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.