UPDATE: If you are getting an error when you try and import IMU, then change the name of the library folder on your pico from libs to lib. That should fix it. Seems it is an issue for some and not for others. In any event, if it is a problem, rename the folder.
@drdentin3215 Жыл бұрын
I found that out. Thanks for confirming. Charlotte mentioned that in the premier. I tried a second Pico and changed the library name at the same time. It had to be one or the other.
@jimworden90218 ай бұрын
I had this problem and (after a bit of research) ran across this bit of code: import sys sys.path.append("/libs") Seems to work fine. Now I have both /lib (which contains to ssd1306 libraries) and /libs. Is there a downside to this method?
@karl-heinzwaldmann63895 ай бұрын
Dear Paul, I would like to thank you for the excellent presentation of this topic. I wasted a lot of time on German tutorials and didn't understand anything. Your channel then brought me enlightenment. Greetings from Germany and my appreciation
@paulmcwhorter5 ай бұрын
Excellent!
@deskriptamcl39666 ай бұрын
Dear Paul, this video is maybe the best spent time for me on KZbin ever. I like the scientific secrets you reveal, to know how engineering was able to make that those tiny elements are aware of the sensation that we humans are able to feel (but only to some extent). I find that fascinating, and your explanations are very concise and full of information. Thank you so much. I have just discovered this channel.
@quaternion-pi Жыл бұрын
Love the under the hood discussions. The more math and engineering details, the better. Would love to hear more about your hands-on experiences in nanotech.
@paulmcwhorter Жыл бұрын
Excellent!
@nejatpolat11 ай бұрын
I love this extra theoretical information. I have never heard of micro-mechanical devices built in chips. I thought only electronic devices were inside these chips. I follow your lessons with admiration, excitement, and a huge curiosity. My appreciation!
@paulmcwhorter11 ай бұрын
Glad you enjoyed it!
@diggee172 Жыл бұрын
I love this detail. This stuff wasn’t invented when I was in school Paul. I’m retired and I’m older than you😅. I thank God everyday I’m still learning.
@paulmcwhorter Жыл бұрын
Oh wow!
@luizbergo Жыл бұрын
It's always time to learn, all we need is humility and strive. Keep going and congratulations.
@polkcountymike6274 Жыл бұрын
Paul, I really appreciate your descriptions of what is going on under the hood. I understand accelerometers, but I didn't know it was done with ic technology. Thank you.
@luizbergo Жыл бұрын
Thanks sir, we may call this a Masterclass. Indeed, I've found problem with libs directory, change to lib and fix, "surprising" I've found measurement on z axis, but makes sense. What I noted is this is less than 1G, I think it's because I'm almost 1 thousand meters high from sea level. Thanks for the opportunity to learn with you.
@paulmcwhorter Жыл бұрын
Excellent
@bobvines00 Жыл бұрын
Paul, please continue explaining the details of subjects like MEMS and other items used with microcontrollers/SBCs that you cover!
@mobiletitan4484 Жыл бұрын
Sir my carrier changed by your Arduino tutorial 4years ago I really appreciate it and you are always mentor for me .
@paulmcwhorter Жыл бұрын
Keep it up!
@stephenlightkep1621 Жыл бұрын
Thanks Paul. I love your MEMS and Hookes Law explanation. You rock. My prediction is not zero because of gravity.
@merrymonkey5172 Жыл бұрын
I really like your lessons. Simple, straightforward, very useful!
@DrDave327 Жыл бұрын
I predict the mpu6050 will be sensing a positive G force of 1, from the force of the tabletop supporting it, keeping it from falling. I had a mishap with my PicoW connection and regret I cannot complete the homework this week. Thanks for the great content, Paul!!!!
@rickbonari4493 Жыл бұрын
Great lesson Paul. Please continue with your great explanations including the math. This makes everything easier to understand. Thanks again for your awesome lessons and teaching skills and amazing technical knowledge !!!!!
@paulmcwhorter Жыл бұрын
More to come!
@louistoweill42326 ай бұрын
I appreciated your explanation of the mechanics and physics behind this process!
@cbrombaugh Жыл бұрын
This is a great lesson! The explanation of how the accelerometers work is very interesting. Please include similar information in future lessons. I spent a couple hours with the libs issue and a couple operational problems, but adding the z-axis data was done in a couple minutes.
@garethhunt6220 Жыл бұрын
hi paul really appreciate classes, i love you taking the time to explain the math and physics of how these amazing devices work! how great it would have been to work on these in their infancy, would love to hear more on your works! - good stuff looking forward to the next lesson❤
@DrDave327 Жыл бұрын
I always enjoy your videos when you are explaining what is happening under the hood, Paul!
@sirfredericksonfasbeangerp1673 Жыл бұрын
I love your lessons sir. I've just started learning about the Arduino board and your channel has helped me a lot
@edSabio572 Жыл бұрын
Thanks Paul! I had a bit of a problem with Thonny loading the libraries but now everything works.
@paulmcwhorter Жыл бұрын
If you have trouble importing the library, rename libs to lib on the pico.
@singingadwita284611 ай бұрын
I just hooked up to your channel and the details you take through are invaluable.
@qzorn4440 Жыл бұрын
A wonderful Acceleration video. Something that is used so much and I know very little about like drones? Let the games begin! 😎 Thank you.
@jamescullins270910 ай бұрын
I love the details and you do it so well!
@davidbosserman32479 ай бұрын
Rumble is the new free speach YT for the moment.
@philkelsall120710 ай бұрын
19:16 Having work with accelerometers on an industrial scale. Great to hear how micro-electronic versions work
@leeg.1402 Жыл бұрын
Great lesson Paul, Thanks.
@allaineilag Жыл бұрын
really love this man, much respect!
@scottwait3585 Жыл бұрын
Thank you so much Paul!
@reb132626 ай бұрын
love these videos! Keep it up you are doing a wonderfull work!
@AleksandrIvin Жыл бұрын
Nice lesson!
@MmWw-zk7hv Жыл бұрын
Thank you sir for great videos.
@paulmcwhorter Жыл бұрын
My pleasure
@johnsnow7043 Жыл бұрын
Please make tutorial on the FreeRTOS And Embedded Linux You are the best teacher ever i found. If you have paid version i am ready to pay. Please 🙏 please 🙏
@zflipside Жыл бұрын
OMG!! You're TEACHING RASBERRY PI TOO!!! THANK YOU SO MUCH ;u; SIR You're a blessing!!!!
@louisdirect Жыл бұрын
I had to rename the subfolder ''libs'' as ''lib'' to get the program to run from the root folder. We are going to have lots of fun with the MPU6050.
@crj9416 Жыл бұрын
I also like the "under the hood" discussions. I didn't make a video but when I added the Z-axis, it reads 1G which is expected because the force of gravity is normal (down) toward the earth. Also when I turned the breadboard on any of the edges, the Z-axis becomes 0G and either the X-axis or Y-axis becomes +/-1G depending on the board orientation.
@paulmcwhorter Жыл бұрын
Which means we could use it to make a . . . ?
@crj9416 Жыл бұрын
@@paulmcwhorter a level
@freddyveza7 ай бұрын
I have that IMU from Sunfounder's Raphael Kit (RPi Kit). X and Y axes are returning negative on the direction pointed for those little arrows marked on PCB, just the opposite you mentioned on 34:09, only Z axis works properly
@freddyveza7 ай бұрын
Forget it, everything is working fine...
@pieretjo11 ай бұрын
brilliant
@EETechStuff Жыл бұрын
Absolutely brilliant. I'm not worthy 😁 What I've never understood about those nanometer-type mechanics is how it's possible to get, for example, super tiny springs that have the right combination of tininess and also the right amount of spring force for such a tiny "proof mass". And also the tiny wires which connect to the proof mass and substrate to measure capacitance. How can their presence not impact the motion of the mass? Every time I pick up my smart phone and it detects the acceleration and turns on the screen I'm scratching my head how it's possible. I guess I've always assumed that instead of springs it used some type of magnetic repulsion force. Thanks.
@paulmcwhorter Жыл бұрын
OK the answer is very complicated, but let me at least give a few simple answers. As far of tiny, understand that with IC manufacturing I can lay down a layer of material to almost atomic precision. That is, the thickenss of the layer is exactly what I want, within the thickness of an atom. Secondly, I can then etch it to create a structure in x and y to almost atomic precision. So the tiny spring I want is exact in width, height and length. Now as far as tiny wires to connect, the springs themselves are conductive, so I connect to the proof mass electrically through the springs themselves. The springs are the wires if you will. Matybe I should do a live stream on how these things are made in detail.
@EETechStuff Жыл бұрын
@@paulmcwhorter Ahh, okay, conductive springs. Though my brain is exploding trying to imagine designing and fabricating atomic-level springs. Why not use magnets instead of springs, like when we see a repelling magnet hovering above another magnet? Thanks much!!
@TheTechRancher Жыл бұрын
@@paulmcwhorter I would enjoy a live stream on this.
@arnoldschmucker9977 Жыл бұрын
I had a problem while using a PC with Windows 11. The Thonny didn't recognize the directory /libs. I had to change the directory to simply /lib to get it to work. Any thoughts?
@paulmcwhorter Жыл бұрын
People are reporting that. So, yes if you have the problem, rename libs to lib.
@asishtechnovia Жыл бұрын
Can arduino be used to implement in a product that should work 27x7???
@rupadarshisamanta32889 ай бұрын
Traceback (most recent call last): File "", line 6, in File "/lib/imu.py", line 95, in __init__ MPUException: No MPU's detectedTraceback help me to get over this error please.
@richardvanworkum4964 Жыл бұрын
I created the lips directory and added the Kepler libraries. The pick w file structure looks exactly like in the video. When I try to import imu I get an error - no module named imu. Any lead of what the problem might be? Thanks.
@paulmcwhorter Жыл бұрын
If you have trouble importing the library, rename libs to lib on the pico.
@richardvanworkum4964 Жыл бұрын
Changing libs to lib worked. Thanks Paul.😊
@rupadarshisamanta32889 ай бұрын
When i run the program it always throws an error like : MPUException: No MPU's detected. I did everything perfectly, can anybody help me to get over this ?
@crs1548 Жыл бұрын
I love looking under the hood!
@wangleimailАй бұрын
Hi Paul, You got math wrong @ 11:59, please double check it. If C = e*A/d and assume e and A are constant, then to get the relationship between delta_C and delta_d, you need to take derivative of both sides of capacitance equation. So delta_C = -e*A/d^2*detla_d. In the other words, if C = e*A/d, then delta_C is NOT simply equal to detla_C = e*A/delta_d. In fact, it should be delta_C = - e*A/d^2*detla_d. Furthermore, detla_d = - delta_C/(e*A/d^2) @12:28
@alialebady2376 Жыл бұрын
Hello sir. I want class about Kallman filter plz
@jwaddin2 ай бұрын
Do u have a video how to make this coffee?
@paulmcwhorter2 ай бұрын
Should do that one of these days.
@asishtechnovia Жыл бұрын
can you do a tutorial for Arduino Mega?
@Fbarrett Жыл бұрын
Anybody else get this error? File "", line 1, in ImportError: no module named 'imu'
@paulmcwhorter Жыл бұрын
If you have trouble importing the library, rename libs to lib on the pico.
@Fbarrett Жыл бұрын
@@paulmcwhorter Thanks Paul .It works now.
@taurus548 Жыл бұрын
No I don't hate it!
@deniszawad Жыл бұрын
Fun fun fun
@TheTechRancher Жыл бұрын
Homework Solution Link: kzbin.info/www/bejne/Y6nVpn1rnbeNidk Thanks Paul for the great explanation on under the hood of the MPU6050
@paulmcwhorter Жыл бұрын
LEGEND!
@briankelly40957 ай бұрын
I'm very late handing in my assignments Paul. Life gets in the way sometimes. But I will catch up! Here's my homework for Lesson 40 kzbin.info/www/bejne/ppLbc3yedsp0nas Please continue explaining the math & physics in your lessons. It's important that people understand the principles behind the technology. Thanks for all your hard work. PS - I like the new trailer, the armed guards were a bit of a surprise. And did Suno create your soundtrack from a lyric sheet ?!? . I'd like to hear about the creation process.
@paulmcwhorter7 ай бұрын
LEGEND!
@patrickfox-roberts7528 Жыл бұрын
hmmm 9.81 appears ?? :)
@paulmcwhorter Жыл бұрын
hmmm . . . we will learn more next week.
@bigbogeyface Жыл бұрын
Here's my homework: kzbin.info/www/bejne/oJ7FcmZ8jc6ticUsi=icliv1u1rSjzC83w I have recorrelated the Axis to align with general consensus 🤷🤷🤷
@LiamAllbright Жыл бұрын
Why has no one commented yet-
@paulmcwhorter Жыл бұрын
I review all comments before publishing them. So, lots of people had commented, I had just not reviewed. I review comments once a day.
@jbelmont722 ай бұрын
I'm hoping someone can offer some insight. I have made numerous attempts to follow the tutorial and have done so to the 'T.' I have changed the chip address in the imu.py library to reflect mine. I get this persistent error( I thought I addressed the 'chip_id' in line 158 by changing the i2c address to mine) : I2C SCANNER i2c devices found: 1 I2C hexadecimal address: 0x68 Traceback (most recent call last): File "", line 19, in File "/lib/imu.py", line 105, in _init_ File "/lib/imu.py", line 158, in chip_id MPUException: I2C failure when communicating with IMU this is the simplified program I am trying to run: from imu import MPU6050 from machine import I2C,Pin import time i2c=I2C( 0,sda=Pin(16), scl=Pin(17), freq=400000) print('I2C SCANNER') devices = i2c.scan() if len(devices) == 0: print("No i2c device !") else: print('i2c devices found:', len(devices)) for device in devices: print("I2C hexadecimal address: ", hex(device)) time.sleep(.2) mpu = MPU6050(i2c) while True: xAccel=round(mpu.accel.x,1) yAccel=round(mpu.accel.y,1) print('x: ',xAccel,' G ', 'y: ',yAccel,' G') time.sleep(.1) Using Thonny as well as VS code with micro-pico