M5Stack | M5Stack Arduino Library | Runtime Evironment library
kandi X-RAY | M5Stack Summary
kandi X-RAY | M5Stack Summary
English | 中文 | 日本語.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of M5Stack
M5Stack Key Features
M5Stack Examples and Code Snippets
Community Discussions
Trending Discussions on M5Stack
QUESTION
I have an M5Stack Basic and installed the deep_sleep.toit example. It is flashed with the open source version of toit.
The application runs fine, I can see that using jag monitor
, however I am unable to connect to it and run another application. The reason is that it is awake for such a short time that jag is unable to discover it. I have tried to reflash it, it works but the deep_sleep
application is still there.
Can I remove the application using an USB connection, not wifi?
...ANSWER
Answered 2022-Feb-10 at 07:16As of Jaguar v0.9.1, the installed applications are correctly invalidated when you reflash, so doing:
QUESTION
This text has been translated, so it may be poorly written.
Hello, I am trying to use M5stack to get the acceleration and ECG of my Polar OH1+, but the notifyCallback is not working.
I found some code in Python that did something similar, so I followed the same procedure to make the connection.
According to this, I found out that this is the procedure to follow.
- Read the value of pmd control uuid
- Write to the pmd control uuid
- Read the pmd data uuid
The following program tries to achieve that with M5stack.
...ANSWER
Answered 2021-Jun-30 at 06:10The specification you provided shows the correct flow of messages needed to start streaming. You have to start by requesting the streaming settings first.
For requesting the ppi settings just send 0x01 0x03
to the P=MD control point.
While looking at the source code of the polar-ble-sdk I found this in BlePMDClient.java (I added comments to the relevant parts):
QUESTION
Basically, I made a weighing machine using m5stack that is connected to the internet. I am importing my live data to the Google spreadsheets but, I don't want that much data. I only want to display that live data in a single cell. (like a meter?)
I tried to write a code in an app script for the same but Find out difficult.
Here is my code for importing my data to the spreadsheets:
...ANSWER
Answered 2021-Feb-12 at 07:30I believe your current situation and your goal as follows.
- Your value of
postdata.sensor.a
is correct value you expect. - You want to put the value of
postdata.sensor.a
to a cell and you want to create a chart of gauge type (this is fromlike a meter?
).
- From your script, I would like to propose to use 2 sheets. One is a log sheet which is append the values of
sheet.appendRow([date_time,postdata.sensor.a]);
as a log. Another is a chart sheet which shows a gauge chart using the current value.
When above points are reflected to your script, it becomes as follows.
Modified script:Before you use this script, please set your Spreadsheet ID and the maximum and minimum values for the gauge chart you expect.
QUESTION
i wrote a script in python for serial communication between my M5Stack Stick C (like raduino) and the raspberry pi. all work fine. i can send "X","Y" or "Z" from raspberry py to the stick and he will reply the value (G-Force) back to the raspi! so far so good
Codes:
Python on raspy:
...ANSWER
Answered 2020-Aug-13 at 04:58There are a number of layers that are used in the communication process and depending where you tap into that stack will depend what coding you need to do. The other complication is that BlueZ (the Bluetooth stack on linux) changed how it works over recent times leaving a lot of out of date information on the internet and easy for people to get confused.
With two Bluetooth devices, they need to establish a pairng. This is typically a one off provisioning step. This can be done with tools like Blueman or on the command line with bluetoothctl
. Once you have a pairing established between your RPi and the M5Stack Stick, you shouldn't need to discover nearby devices again. Your script should just be able to connect if you tell it which device to connect to.
The M5Stack stick is advertising as having a Serial Port Profile (SPP). This is a layer on top of rfcomm.
There is a blog post about how this type of connection can be done with the standard Python3 installation: http://blog.kevindoran.co/bluetooth-programming-with-python-3/
My expectation is that you will only have to do the client.py on your RPi as the M5Stack Stick is the server. You will need to know its address and which port to connect on. Might be some trial and error on the port number (1 and 3 seem to be common).
Another library that I find helpful for SPP, is bluedot as it abstracts away some of the boilerplate code: https://bluedot.readthedocs.io/en/latest/btcommapi.html#bluetoothclient
So in summary, my recommendation is to use the standard Python Socket library or Bluedot. This will allow you to specify the address of the device you wish to connect to in your code and the underlying libraries will take care of making the connection and setting up the serial port (as long as you have already paired the two devices).
Example of what the above might look like with Bluedot
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install M5Stack
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page