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.
@jimworden902110 ай бұрын
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-heinzwaldmann63897 ай бұрын
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
@paulmcwhorter7 ай бұрын
Excellent!
@deskriptamcl39667 ай бұрын
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!
@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.
@nejatpolat Жыл бұрын
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!
@paulmcwhorter Жыл бұрын
Glad you enjoyed it!
@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!
@stephenlightkep1621 Жыл бұрын
Thanks Paul. I love your MEMS and Hookes Law explanation. You rock. My prediction is not zero because of gravity.
@louistoweill42328 ай бұрын
I appreciated your explanation of the mechanics and physics behind this process!
@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!
@merrymonkey5172 Жыл бұрын
I really like your lessons. Simple, straightforward, very useful!
@DrDave327 Жыл бұрын
I always enjoy your videos when you are explaining what is happening under the hood, Paul!
@singingadwita2846 Жыл бұрын
I just hooked up to your channel and the details you take through are invaluable.
@jamescullins2709 Жыл бұрын
I love the details and you do it so well!
@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.
@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!!!!
@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.
@320mbАй бұрын
Before i add the "Z" axis I already know what i will see...... it will be more noticed on the Plotter... the Normal "Z" plate reading will read a "1".... the force of Gravity on the Plate. When Up/Down Movement is exerted on the Breadboard, the Up movement should show Less the 1 because of Negative gravity, the Down movement will be More than 1........ Fun Stuff Paul, Thanks.
@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!
@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❤
@philkelsall120711 ай бұрын
19:16 Having work with accelerometers on an industrial scale. Great to hear how micro-electronic versions work
@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.
@davidbosserman324711 ай бұрын
Rumble is the new free speach YT for the moment.
@bartdemeulmeester46625 күн бұрын
Thanks!
@paulmcwhorter5 күн бұрын
Thanks! I really appreciate the support, it means a lot.
@leeg.1402 Жыл бұрын
Great lesson Paul, Thanks.
@freddyveza9 ай бұрын
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
@freddyveza9 ай бұрын
Forget it, everything is working fine...
@allaineilag Жыл бұрын
really love this man, much respect!
@reb132627 ай бұрын
love these videos! Keep it up you are doing a wonderfull work!
@scottwait3585 Жыл бұрын
Thank you so much Paul!
@AleksandrIvin Жыл бұрын
Nice lesson!
@MmWw-zk7hv Жыл бұрын
Thank you sir for great videos.
@paulmcwhorter Жыл бұрын
My pleasure
@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.
@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 🙏
@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
@wangleimail2 ай бұрын
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
@jwaddin3 ай бұрын
Do u have a video how to make this coffee?
@paulmcwhorter3 ай бұрын
Should do that one of these days.
@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.
@pieretjo Жыл бұрын
brilliant
@zflipside Жыл бұрын
OMG!! You're TEACHING RASBERRY PI TOO!!! THANK YOU SO MUCH ;u; SIR You're a blessing!!!!
@asishtechnovia Жыл бұрын
Can arduino be used to implement in a product that should work 27x7???
@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.😊
@alialebady2376 Жыл бұрын
Hello sir. I want class about Kallman filter plz
@asishtechnovia Жыл бұрын
can you do a tutorial for Arduino Mega?
@rupadarshisamanta328811 ай бұрын
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.
@crs1548 Жыл бұрын
I love looking under the hood!
@deniszawad Жыл бұрын
Fun fun fun
@rupadarshisamanta328811 ай бұрын
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 ?
@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.
@patrickfox-roberts7528 Жыл бұрын
hmmm 9.81 appears ?? :)
@paulmcwhorter Жыл бұрын
hmmm . . . we will learn more next week.
@taurus548 Жыл бұрын
No I don't hate it!
@bigbogeyface Жыл бұрын
Here's my homework: kzbin.info/www/bejne/oJ7FcmZ8jc6ticUsi=icliv1u1rSjzC83w I have recorrelated the Axis to align with general consensus 🤷🤷🤷
@briankelly40958 ай бұрын
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.
@paulmcwhorter8 ай бұрын
LEGEND!
@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.
@TheTechRancher Жыл бұрын
Homework Solution Link: kzbin.info/www/bejne/Y6nVpn1rnbeNidk Thanks Paul for the great explanation on under the hood of the MPU6050
@paulmcwhorter Жыл бұрын
LEGEND!
@jbelmont723 ай бұрын
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