[20240307]「陀螺仪」分享会

10 views
Skip to first unread message

danfei

unread,
Mar 6, 2024, 6:45:30 AM3/6/24
to szdiy
本周四的固定聚会由业超分享

聊一聊陀螺仪相关的话题,包括原理、算法、应用等等。

时间是3月7日 周四晚19:00~22:00
地点:深圳市南山区高新南区粤兴一道9号(香港科技大学产学研大楼314-P)
https://www.amap.com/place/B02F37WPFK

无需报名,直接空降
Happy hacking

Mitch Davis

unread,
Mar 6, 2024, 9:32:47 PM3/6/24
to sz...@googlegroups.com
Hello SZDIY hackers!

On Wed, 6 Mar 2024 at 22:45, danfei <df4v...@gmail.com> wrote:

聊一聊陀螺仪相关的话题,包括原理、算法、应用等等。

So, I have a boat.

image.png

More pictures: 


Terry has been on my boat!  Hope you'll come to Melbourne again Terry!

image.png

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.

image.png

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:

image.png

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:

image.png

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:

image.png

And I will do reflow with a cheap sandwich press:

image.png

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.

Terry Ouyang

unread,
Mar 8, 2024, 1:42:03 AM3/8/24
to sz...@googlegroups.com
Cool! I'm about to come for an acceptance test for the Autopilot Sailing project. See you soon!

Terry

Mitch Davis <m...@afork.com> 于2024年3月7日周四 10:32写道:
--
--
You received this message because you are subscribed to the Google
Groups "Shenzhen DIY community" group.
To post to this group, send email to sz...@googlegroups.com
To unsubscribe from this group, send email to
szdiy+un...@googlegroups.com
For more options, visit this group at
http://www.szdiy.org
http://groups.google.com/group/szdiy?hl=zh-CN
---
您收到此邮件是因为您订阅了Google网上论坛上的“Shenzhen DIY community”群组。
要退订此群组并停止接收此群组的电子邮件,请发送电子邮件到szdiy+un...@googlegroups.com
要在网络上查看此讨论,请访问https://groups.google.com/d/msgid/szdiy/CABg7HFPq3zLBQ4pXgNehra4uhe9ZzV9MexL1imOKT9qaxE1JNw%40mail.gmail.com
Reply all
Reply to author
Forward
0 new messages