You'll need to write your own MicroPython or UiFlow program for it to do anything.
Cognitive5525
@Cognitive5525
Posts made by Cognitive5525
-
RE: My M5DINMeter is not working.
-
RE: what's the Pin for M5dial BtnA
@codeblue
This diagram on page two.
Here a cutout with my annotation:
-
RE: what's the Pin for M5dial BtnA
I haven't tried the M5dial, but If you look at the hardware documentation (diagrams) for both the
M5Dial and the M5StampS3 there is no mention of a BtnA.As far as I can figure out there are 3 buttons in total:
- "RST" on the back of the M5dial connected to ESP32-EN" (designated "S4" on the m5dial-diagram)
- "Wake" on the front of the M5dial (the "main button" of the M5Dial I suppose) connected to the power-on circuit but routed via the "wake" signal to ESP-G42. (designated "S1" on the M5dial diagram.)
- The "user button" of the M5StampS3 connected to ESP-G0 (designated "S1" on the M5StampS3 diagram)
-
RE: Help with AIN4-20mA units
This one?
https://shop.m5stack.com/products/ain4-20ma-unitand you mean "external" as like so?
Then you should not use the 24V and GND only IN+ and IN- like so and wtih your Transmitter/tester in "passive" mode (may need to read the manual of you tester):
if your transmitter/tester is "active" then you should connect like this - i.e. no need for a separate power supply:
-
RE: Resetting RTC flag
I don't think this is a reliable way of checking whether the boot was caused by the RTC or the some other reason. From the BM8563 datasheet (my highlighting):
8.3.2.1 Interrupt output
Bits TF and AF: When an alarm occurs, AF is set to logic 1. Similarly, at the end of a
timer countdown, TF is set to logic 1. These bits maintain their value until overwritten
using the interface. If both timer and alarm interrupts are required in the application, the
source of the interrupt can be determined by reading these bits. To prevent one flag being
overwritten while clearing another, a logic AND is performed during a write access. -
RE: Request info to download API_KEY
Forgot that you can also see the API-key in the M5Burner:
while your device is connected with USB to your PC click configure (see picture above) and then choose the COM-port where the device is connected.
-
RE: Request info to download API_KEY
It is a while since I last used UIFlow as I prefer programming directly in Micropython, but as far as I recall you don't need to download the API-key.
The device generate a unique key by itself and you then need make sure it is connected to internet via WiFi. On the UIFlow web site you then select your device model and enter the API key.
M5Stack devices with a display will normally show the API on the display.
But you can also connect a terminal program via USB and catch the boot text where the API is printed. -
RE: Where is the API ?
@gavin67890 said in Where is the API ?:
Hi @cognitive5525,
Were you thinking more like a M5Stack reference rather than how-do document? I would love that.
Maybe like this
https://docs.m5stack.com/en/uiflow/hardwares/microphone
with further breakdown of each function with syntax and parameters in MicroPython code.Yes a reference as you'll find for the stock Micropython. Tutorials or Howtos are also find but usually only in the very beginning.
Have you tried using Visual Studio Code to program devices directly? I might try Thonny because I need something that works across macOS, RPi and Linux. VS Code was ideal, and I have been using it, but I couldn't "add device" when I tried on macOS today.
I tried it once or twice with VS some time ago, but I couldn't get the plugin work well. It was difficult to establish a stable connection to the devices.
I had to tweak Thonny though:
https://community.m5stack.com/topic/5268/micropython-for-atom-s3-lite/4 -
RE: Is it possible to connect two M5Atom with a cable...
Sorry!
For some reason I completely overlooked that you wanted to connect two devices together.So the answer is yes! Get a Grove cable:
https://shop.m5stack.com/products/4pin-buckled-grove-cable?variant=16804807082074Remove/cut the the red (+5v) wire and setup the UARTs on both devices with "crossover" pin-config.
I.e.:- Device A UARTx Tx=32 Rx=26
- Device B UARTx Tx=26 Rx=32
or vice versa.
I'm not sure what you mean by "using interrupt", but you could (with same cable) define say pin 32 as output on device A and the same pin as an input defined to an interrupt on Device B and then perhaps the opposite with Pin 26
-
RE: Where is the API ?
I totally agree with the OP!
A proper API documentation would be appreciated (Hope someone from M5Stack is looking here)Maybe slightly off topic but:
I also don't like UIfLow with its strange and unnecessary complicated "cloud connection" to be able to program the devices and it becomes incredible difficult to work with as soon as you slightly increase the complexity of your programs, but when I program my M5stack units directly in Micropython with Thonny I use UIFLow (offline) as a kind of API to find functions in the main M5Stack libraries mentioned by the OP (m5stack, m5ui, uiflow ).A further tip:
In Micropython (like in Python) you can always inspect any library with
help(<library_name>) or dir(<library_name>)
At least this will give at list of objects that may hint you to available functions.By the way, does anyone know of release note for the M5Stack Micropython binaries?
There is quite often a new release but there is no info about bug fixes new features etc.