聊一聊陀螺仪相关的话题,包括原理、算法、应用等等。
More pictures:
Terry has been on my boat! Hope you'll come to Melbourne again Terry!
For the past few years, I've been working on a project to build an autopilot. An autopilot will keep the boat sailing in the same direction when you're not at the wheel steering. It's necessary for convenience and safety, especially if you're sailing solo.
The autopilot is based on the PyPilot project.
That website has the software (in Python) and suggested schematics. I took the schematics and made my own hardware design.
The autopilot needs an "9-axis" IMU. That's an accelerometer (for translation movement), gyroscope (for rotation) and magnetometer (for direction). I've been buying IMU modules that use the MPU9255.
There are several problems with these modules: They aren't cheap (about RMB85), the MPU9255 is no longer made, and they often don't work properly - defective when you receive them 😡.
Recently I've been looking at other IMUs, in particular the ICM20948. PyPilot supports this chip. I hope I can try the ICM20948, and if it works, add it to the next version of my autopilot directly onto the circuit board.
Here's my breakout board for testing:
I designed it in KiCad. The board has the IMU, a 1.8V regulator, and two MOSFETs to convert the I2C interface from 3.3V to 1.8V.
The small parts are 0402, like this:
While it's easy to design a board in KiCad that uses these parts, I confess that I cannot hand-solder 0402 parts, nor can I solder the ICM20948. For this I will need a solder paste stencil, and to use solder reflow. This would be easy in Shenzhen, where you can buy good tools from 华强北 and get a stencil next day from JLC, but it's not so easy or cheap in Australia. I am currently experimenting with cutting stencils from PET/mylar using a laser cutter:
And I will do reflow with a cheap sandwich press:
It's generally a good idea to remove the sandwich before doing the reflow! 🤪
I would come to SZDIY, but it's a long swim from Australia. Wish I was there to see you!
Mitch.