-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shields: Add support for M5Stack mbus connector and core2 base shield #62315
shields: Add support for M5Stack mbus connector and core2 base shield #62315
Conversation
61f4ecc
to
3b08ea7
Compare
@kartben I started to prepare support for the m5stack connector. Maybe you find some time to have a look at it. I am happy for feedback. |
da568d1
to
ef607c4
Compare
@kartben What's your preferred name for the extension header? Currently it's name |
ef607c4
to
8ccbb71
Compare
I named the header |
7326eb5
to
a398134
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
~/Downloads > optimizt m5stack_core2_ext.jpg
ℹ Optimizing 1 image (lossy)...
✔ m5stack_core2_ext.jpg
102.912 KB → 55.072 KB. Ratio: 46%
ℹ Yay! You saved 47.84 KB (46%)
2d0ab8c
to
944b4de
Compare
This commit adds basic support for the mbus connection port to m5stack_core2 board. Signed-off-by: Martin Kiepfer <m.kiepfer@teleschirm.org>
This commit adds support for mpu6886, which has compatible register layout. Signed-off-by: Martin Kiepfer <m.kiepfer@teleschirm.org>
9ccd8df
to
9a96975
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't seem to be able to run the mpu6050 demo?
*** Booting Zephyr OS build v3.5.0-rc1-49-gc060ec527fa1 ***
Device mbus_mpu6886@68 is not ready
description: | | ||
GPIO pins exposed on M5Stack M-Bus headers. | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra blank line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
# Copyright (c) 2023 Martin Kiepfer <mrmarteng@teleschirm.org> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config M5STACK_CORE2_EXT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config M5STACK_CORE2_EXT | |
config SHIELD_M5STACK_CORE2_EXT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
For example: | ||
|
||
.. zephyr-app-commands:: | ||
:zephyr-app: samples/drivers/mpu6050 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:zephyr-app: samples/drivers/mpu6050 | |
:zephyr-app: samples/sensor/mpu6050 |
I am suspecting issues with the AXP192, I see different behaviors /errors with cold boot vs. soft reset |
Also, MPU6050 seemed pretty broken? See #63446 |
I cannot reproduce it yet
It doesn't make a difference on soft/hard reboot Can you please check the priorities of
Which project did you use for testing? |
It might have been my fault, sorry. I was testing against #63375, looks like it requires a slightly larger task than 2KB when running on the Core2. Works now :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat! See my comments as well as earlier comments from today.
******** | ||
|
||
M5Stack-Core2 comes with a base shield that is connected to the M5Stack | ||
extension connector. It features a MPU6886 6-axis motion tracker and a SPM1423 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
extension connector. It features a MPU6886 6-axis motion tracker and a SPM1423 | |
extension connector. It features an MPU6886 6-axis motion tracker and a SPM1423 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
References | ||
********** | ||
|
||
.. target-notes:: | ||
|
||
.. _datasheet: | ||
https://docs.m5stack.com/en/core/core2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drop unless you actually have links/footnotes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
9a96975
to
7d7b1da
Compare
a9c33a1
to
4954b5c
Compare
@@ -74,6 +74,7 @@ of the M5Stack Core2 board. | |||
+------------------+--------------------------------------------------------------------------+ | |||
|| 3-axis || The `MPU-6886`_ is a 6-axis MotionTracking device that combines a | | |||
|| gyrosopce || 3-axis gyroscope and a 3-axis accelerometer. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well... now that you mention it ... :D
|| gyrosopce || 3-axis gyroscope and a 3-axis accelerometer. | | |
|| gyroscope || 3-axis gyroscope and a 3-axis accelerometer. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, this is not even the correct description anyway -- should say something like "6 DOF IMU" or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not an expert on these sensors.I reworked the used terms in both documents (m5stack_core2 and m5stack_core2_ext).
60af507
to
9f6ff57
Compare
M5Stack-Core2 comes with a base shield that is connected to the M5Stack extention connector. It features a MPU6886 6-axis motion tracker and a SPM1423 microphone. Signed-off-by: Martin Kiepfer <m.kiepfer@teleschirm.org>
9f6ff57
to
95da89a
Compare
further comments? |
@erwango ping |
M5Stack base and core2 modules support an extension connector. This PR adds support for this connector.
It also includes support for the m5stack_core2 base shield, which features a MPU6886 6-axis motion tracker and a SPM1423
microphone.