IBM
Creating an IMU-based 3D Mouse with an ESP32-S3
Creating an IMU-based 3D Mouse with an ESP32-S3
#Creating #IMUbased #Mouse #ESP32S3
“element14 presents”
Why is nobody making a mouse with a motion sensor!? All the mice Clem could find online use optical sensors, so he asks the …
source
To see the full content, share this page by clicking one of the buttons below |
The FULL CODE Breakdown video is in the first link below the video! Also pictures and a blog post with more details!
And as always all the files can be downloaded there!
Getting position from acceleration is taught in high school.
Given a slightly elevated stand to help maintain the mouse angle and revert back to no movement between tilts, I can almost picture potential here to be less frustrating than a regular mouse. You know, because you're not running out of tracking space or knocking the coffee over.
If it's already Bluetooth, why not couple time of flight with the imu?
For little rodents that can gnaw their way into anything, and are scared of cats, "mice" is right, yes.
But for mechanical rodents (I've heard people refer to a mouse as "rodent", and was impressed by this) as far as I'm concerned the correct plural is "mouses", not mice. Mice are little rodents. Lots of them. Mice is their collective noun. Mouses are just metaphorical mouse instances. It's much more sensible to keep things simple, call them mouses, and leave whatever ancient reason there was to give the word "mouse" and irregular plural, whereas "house" plurals to just plain "houses", regularly.
Hmm … lice are the plural of louse, so it's not a perfectly irregular thing.
If they make a device they decide to call a louse, go with "louses" and not "lice", in the plural, as well.
Lots of words in an irrelevant matter, yes I know. What can I say? This is the Internet. This kind of thing is happening all the time.
You know that prototyping is a thing, right 😛
Doing a double integral of IMU samples wouldn't be too hard. The problem is that the IMU isn't perfect – you are measuring acceleration with a bit of error. And you're integrating the error twice as well – and that's why the device just shoots off in seconds.
Similar problem needs solving for VR. There, it's universally accepted you need to correct it several times a second to get proper readings (an external system provides an absolute position, but slowly, an IMU can be sampled at hundreds of Hz, but by itself would run away. So an IMU fills in the blanks between samples of another positioning system).
What an IMU can measure very well is rotation, so a trackball would be possible if the PCB was inside the ball with a battery. To get rotation, samples from a gyro get integrated – but only once – so it drifts, but at a constant speed, so it's manageable. The other sensors in an IMU can be used to correct that drift. I'd recommend madgwick's algorithms for doing so, correcting the drift is actual hard math. For a drift-free result you'll need gyro+accel+magnetometer. Magnetometers aren't great, usually needing calibration because they are influenced by metals around them, but you could provide a fake stronger north with a magnet in the casing
I was pretty sure you would not be able to get the original concept off the ground!
You are not incorrect in calling them mouses, computer mouse is an acronym: Manually-Operated User-Selection Equipment the plural of which is MOUSEs. Mice refers to the animals.
thank you for posting very informative videos on electronics , we learn a lot from them
What is its battery life?
As a native English speaker, I have always used mouses as the plural for a computer mouse
if you designed the bottom plate like a half ball shape, you can use it on an surface, an tip it in all directions, or just design the bottom like a spinning top. So you can use it in mid air, and on a table too.
tried to transplant an MPU6050 once and had similar results – not sure if I threw it in the ultrasonic cleaner, but they're definitely sensitive
Try making a PS/2 to Bluetooth using esp32. Let's revive good old keyboards!
Great build !!!! I think maybe specially abled people could find good use of the mouse !!! What do you think ??
Great video and project, love the little face on the mouse!
thats cool with a gyro 😎 but kinda missing the middle click button or a scroll wheel for "full" functionality
It looks like you have recreated the 3d space mouse that some CAD users are fond of, just a floating version. I still prefer the traditional mouse.
Can you elaborate more why IMU mouse require complex math?
13:38 "We should find an actual use case where this thing is actually useful." Uh oh, Clem is talking crazy again!
I'm surprised you can't get them optical mouse sensors from Mouser, of all places 😅
Maybe you should ask ChatGPT for some integral code 😅
Trackballs do not reqire integration like a IMU mouse would. You just need to have ball drive two slotted wheels and then count the slots as the wheels rotate.
You can make it with a rumble Pack inside And make the scroll wheel control the speed of the vibration. Mmmmmm that be good ❤
Make a small stash in it… just enough for a gram or 2..