I've designed wave height (boat heave) sensor. It uses IMU accelerometer and gyroscope and runs on esp32 atomS3.
https://github.com/bareboat-necessities/bbn-wave-period-esp32
Thanks
I've designed wave height (boat heave) sensor. It uses IMU accelerometer and gyroscope and runs on esp32 atomS3.
https://github.com/bareboat-necessities/bbn-wave-period-esp32
Thanks
How can I read built-in mpu6886 FIFO on atomS3?
M5Unified library doesn't have an example and looking at the code
many methods for FIFO are commented out and made non-public.
Can someone provide an example? I need higher sample rate and
synchronized gyro and accelerometer samples. The FIFO register supports burst reads of synchronized data for the specified data rate. The interrupt function is used to determine when new data is available.
Looks like using FIFO is only correct way to get accurate data.
Thanks
I’ve made Bareboat Necessities (BBN) Marine OS for CoreMP135 from m5stack.
It’s free and open source system based on Debian Bookworm.
CoreMP135 of BBN OS version includes:
BBN OS on CoreMP135 turns it into boat appliance able to communicate with N2K, NMEA 0183, PyPilot motor controller and IMU, Victron Cerbo MQTT.
The CoreMP135 device loaded with BBN OS is practically plug and play. After initial boot you can just wire your boat devices via RS-485 or CAN and start using it. No configuration required.
The documentation, source code and download links:
https://github.com/bareboat-necessities/lysmarine_gen/tree/coremp135_bookworm
@ajb2k3 said in CoreMP135 screen saver sleep for built in LCD:
@mgrouch You need to create a program for that
I do not see how. There are examples for displaying things on ILI9342C
using framebuffer and LVGL.
I do not see how to turn off backlight on ILI9342C. Is there some code example? Or command line utility with the code to control brightness? I was able to code that on m5stack tough on esp32 which has same ILI9342C.
Also how to wake up screen by touch?
I guess with brightness off touch functions are still there. So I need example of code listening for touch event and controlling backlight (voltage of it?) on ILI9342C.
I need some help.
Thanks
Does coremp135 have hardware 9-bit uart? Like in SeaTalk1.
Thanks
Is there a way to enable sleep for built in LCD to
turn it off to conserve power and turn on/wake up by touch?
I’m using Debian image.
Thanks
@mgrouch said in CoreMP135 Debian image:
Ok. I got the device and I loaded Debian image M5_CoreMP135_debian12_20240628 from
https://docs.m5stack.com/en/guide/linux/coremp135/image
It did boot.
However, upon boot it didn't resize the root partition to occupy whole SD card.
As a result I can't install anything because there is no space.I had to use fdisk to resize /root partition (#5 for me, making sure I use same starting block and preserve filesystem type, see https://askubuntu.com/questions/24027/how-can-i-resize-an-ext-root-partition-at-runtime) and then
resisz2fs command (something like resize2fs /dev/mmcblk0p5).
It would be too hard for an average user to repeat that.Also the kernel on it is very old. 5.15.118
On Raspberry Bookworm it is much newer. (6.x)There are many errors related to USB reported by dmesg.
I have powered USB HUB and keyboard is connected via it.
Keyboard works though.Is it possible for next versions to have image which would resize to SD card size?
Same way as Pi OS does?Is it possible to have have newer linux kernel? I think USB errors might be related to old version of it.
Thanks
USB errors were my fault. I plugged usb 3.0 hub into usb 2.0 port.
One more question:
What are the tty devices names of RS-485 and UART6 under /dev?
Thanks
According to specs coremp135 is supposed to have 4Gb memory.
However debian image reports only 462Mb
free --mega
Ok. I got the device and I loaded Debian image M5_CoreMP135_debian12_20240628 from
https://docs.m5stack.com/en/guide/linux/coremp135/image
It did boot.
However, upon boot it didn't resize the root partition to occupy whole SD card.
As a result I can't install anything because there is no space.
I had to use fdisk to resize /root partition (#5 for me, making sure I use same starting block and preserve filesystem type, see https://askubuntu.com/questions/24027/how-can-i-resize-an-ext-root-partition-at-runtime) and then
resisz2fs command (something like resize2fs /dev/mmcblk0p5).
It would be too hard for an average user to repeat that.
Also the kernel on it is very old. 5.15.118
On Raspberry Bookworm it is much newer. (6.x)
There are many errors related to USB reported by dmesg.
I have powered USB HUB and keyboard is connected via it.
Keyboard works though.
Is it possible for next versions to have image which would resize to SD card size?
Same way as Pi OS does?
Is it possible to have have newer linux kernel? I think USB errors might be related to old version of it.
Thanks
@teastain said in CoreMP135 Debian image:
@mgrouch https://github.com/m5stack/M5Stack_Linux_Libs
The Official M5Stack CoreMP135 library repository.
I’d like to port my esp32 LVGL app to Linux on coremp135.
This app:
https://github.com/bareboat-necessities/bbn-m5stack-tough
Are there any guides on porting?
Thanks
@ajb2k3 said in CoreMP135 Debian image:
@mgrouch yes but you will need to access the coreMP135 directly to find the initial IP address. I have been working on documentation but been busy since I started work on making the image compilation steps.
Documentation is definitely lacking steps on
using CAN, i2c, uart, RS-485 on coremp135
What is Linux kernel version on Debian image?
Thanks
@prima said in CoreMP135 Debian image:
@mgrouch said in CoreMP135 Debian image:
I’m considering buying that CoreMP135 and
I need to make sure I will be able to use CAN Bus interfaces, i2c, uart, USB, Bluetooth, RS485, Both Ethernets and WiFi, as well as
touchscreen of CoreMP135 with the Debian image provided.AFAIK there is no wifi/BT on this device. Dual ethernet works using the available Debian image though. That image has some defects but I guess this is being sorted out.
You can now build your own image (see post above) but I haven't tried that yet.
- I have not tried the CAN bus and the other interfaces.
- USB: seems to work, but I only plugged in a mouse and keyboard
- The serial console works over USB-C and I also use the USB-C cable to power the device from my PC.
When it boots, does it boot into some kind of framebuffer LVGL GUI on 2” touchscreen?
Is there code example how to do that?If that can help: I recently posted on how to develop Python apps in GTK or QT, using the frame buffer with Xorg/Openbox.
This is roughly the approach I have used for developing on Raspberry PI and other SBCs.
The touch screen work without problem for me.
Ok. No wifi or bt is not an issue for me as long as Ethernet works.
Is it working as DHCP client? I mean it’s just plug into router and I could ssh?
I do care about working CAN, i2c, UART, and RS-485 out of the box with provided Debian image.
Does anyone have experiences with those interfaces on CoreMP135 with their provided OS image?
Thanks
Is there Debian image for CoreMP135 which includes kernel built with all drivers for hardware interfaces of CoreMP135.
I’m considering buying that CoreMP135 and
I need to make sure I will be able to use CAN Bus interfaces, i2c, uart, USB, Bluetooth, RS485, Both Ethernets and WiFi, as well as
touchscreen of CoreMP135 with the Debian image provided.
When it boots, does it boot into some kind of framebuffer LVGL GUI on 2” touchscreen?
Is there code example how to do that?
Or CoreMP135 is sold as hardware platform and users are left to build own Linux kernel and Debian images to support hardware CoreMP135?
Or there is a Debian image which fully supports
CoreMP135 Hardware and all interfaces?
Hardware is not much of use for me if there is no software with drivers supporting it.
Thanks!
I’m planning to start a project with m5stack modules.
The idea is to build various devices to monitor conditions on a boat and raise alarms.
For more detail on proposed architecture (hardware and software) look at this link:
https://bareboat-necessities.github.io/my-bareboat/bbn-boat-monitoring.html
Please reply here if you would like to join this effort.
Thanks!
Re: Call for articles with your product on M5Stack!!
M5Stack Tough (ESP-32) Sailing Instruments Display and Autopilot Control
M5Stack Tough (ESP-32) Sailing Instruments Display and Autopilot Control Arduino sketches
With LVGL UI
Mostly oriented for boating projects (can be interesting to RV and off-grid living users, or Arduino and esp32 or other microcontroller enthusiasts and hobbyists)
I've made some examples with LVGL and M5Stack Tough.
They are for Arduino.
https://github.com/bareboat-necessities/bbn-m5stack-tough
Somehow I can't make bluetooth to work on it.
Thanks
Anyone has bluetooth (C/C++) example for m5stack tough?
I can't get it to work.
Thanks
Where can I find some working
LVGL example Arduino project for m5stack core2 or tough
with UI and touch working?
Thanks