Alot of the core commands can be found by googling Micropython, Circuit python and Python.
The M5 Specific apis are proving more elusive and I'm doing my best to log them in my UIFLow book found in my github.
https://github.com/Ajb2k3/UIFlowHandbook

Posts made by ajb2k3
-
RE: Where is the WiFi config held?
-
RE: [M5Paper] Ideas/recommendations for a revision or V2 model
@bricox said in [M5Paper] Ideas/recommendations for a revision or V2 model:
@fonix232
on https://www.espressif.com/en/support/documents/technical-documents
No pdf for S3, just C374HC4094D, IO extander, needs many pins
ESP32-D0WD => 48 pin (m5paper)
ESP32-C3-FH4 => 32 pin, with 4 Mo flash only
ESP32-WROVER => 38 pin (LilyGo), with 16 Mo Flash and 8 Mo SDRAM
ESP32-S2-FN4R2 => 56 pin, with 4 Mo flash and 2 Mo SDRAM integratedSYL
No data for the S3 exist because it officially doesn't exist.
Some WIP samples are out in the wild but the information the testers have and IDF support is incomplete as the silicone can change. -
RE: 2 Relay on PaHub
You should be able to run up to 5 relay units connected to the i/ohub (pbhub).
-
RE: Separate firmware from M5burner
@jimwsmith said in Separate firmware from M5burner:
@world101 It doesn't run on one of our students Windows 10 32bit machine
Does it generate an error message to say why it doesn't run?
There are many many reasons why it could fail. -
RE: UIFLOW Device not Connected
@michaelxy the web version requires internet access as it programs "over the air."
The offline version is old and needs updating.
USB mode for the online version is experimental and depends on the status of the web browser. -
RE: [M5Paper] UiFlow support
@titimoby said in [M5Paper] UiFlow support:
As this is not my first M5 board, I think I was in App mode. But as the main source of errors is often between the chair and the keyboard, I'll focus my attention on this point 😉
I'm writing a book on the coreink and m5paper and spent a week trying to work it out!
now if i could only get the internal sht30 to work -
RE: [M5Paper] UiFlow support
OK, I got it.
To use Thonny or other micropython IDE's with the M5Paper, you need to put the paper into "App Mode" in the menu as UIFlow and USB mode do not allow access to REPL. -
RE: Micropython - SHT30 in BTC Base
@kedulowt said in Micropython - SHT30 in BTC Base:
temperature, humidity = sht30_sensor.measure()
I can't get this to work
File "<stdin>", line 1, in <module> File "sht30.py", line 40, in __init__ NameError: name 'I2C' isn't defined >>>
-
RE: Micropython - SHT30 in BTC Base
@sj3fk3 said in Micropython - SHT30 in BTC Base:
I honestly don't understand M5Stack's way of working. There is this ENV2 with python support: https://docs.m5stack.com/#/en/unit/envII it has a SHT30, but then you spend $80 on a M5Paper and you don't get python support for the SHT30. How hard is it to put in the the right lib.
I know I can do it myself, but M5stack should have done this already :-/
Micropython on the M5Paper is in early alpha because we pushed M5Stack to get it out before the holiday. I spent yesterday doing some testing and I cannot get any SHT30 devices to work no matter if its the internal SHT30 on the paper or the env2 unit.
What lib are you using as I cant even get raw reg read and writes to work. -
RE: concerns with TOF measurement
@a1exandr you found Kapton tape on the sensor?
You need to message M5Stack about that as it should have been removed during assembly. -
RE: Drive 4 DC motors without encoder - NO LEGO
@ramaker said in Drive 4 DC motors without encoder - NO LEGO:
@ajb2k3:
I have the original LGO cables too - cutting and crimping would be an option. But I found that the crimping tool is expensive and crimping that lot of cables is "not an exciting job" - and I have to buy all the LEGO cable and throw away one connector.
Woud be ok for 1 or 4 cables but not for 200pcs up.
(I have to take care, that the costs for our clients should be very low - we are private people without sponsoring.)I looked at the JPL mars rover and think it should be easy to make.
I will redesign the main mechanical parts, so that I can use 3D-printed parts, for the weel-drive-motors I'll design my standart motors. (wthout decoder) and for steering I'll design medium servos. This combination works perfect for vehicles in that size. In this design 2 DC motor drivers and 4 servos will work. So I can use the GoPlus2 module.
The plastic parts have a simple design, so I can use them for my training.As far as I guess a M5Stack in the "face display" would be easy to include and the display would look good.
So the complete control unit will be the M5Stack Core2 and the GoPlus2 - very compact.I'll make one side of the rocker bogie suspension and will simulate it.
regards
K.D.200+?
For that quantity you should invest in the tool!
I used to use a pair of needle nose pliers to crimp 2.54mm pins and i broke loads (still break them even with the tool)
The connectors are on ebay and LCSCI've tried asking for the firmware for the go unit but they say it not reprogrammable.
-
RE: [M5Paper] UiFlow support
@titimoby said in [M5Paper] UiFlow support:
That's very nice to be able to use UIFlow with M5Paper, thanks. 🥰
This also open the door to micropython.
I tried it and it works in UIflow.Now, I'm trying to figure out how to add libraries.
With M5 core, I use either thonny or rshell.
But I could not connect to M5Paper with those.The only tool that worked was Mu editor, but only to see the REPL. Could not access files.
Is there a trick to upload files on M5Paper?
Yes, there is a trick but alas i forget the trick and struggle to upload.
I'm using thonny and its hit and miss accessing the paper. -
RE: Drive 4 DC motors without encoder - NO LEGO
@ramaker I brought the official m5stack lego cables and chopped them up for the terminated ends.
Sorry, brain fried at moment and will need to clear brain and think on it.
-
RE: M5Paper I2C
@powersoft said in M5Paper I2C:
Today I rewrote the routines for the BMP280 and BME280 for a single device.
Simple include the source into the main program, and call it.
This is now working as I wont. It takes a afternoon of work!
Now put the finishing touches on the BMP280/BME280.Would it make sense to post them on the forum when they are ready?
Cheers
JanHi @Powersoft sorry for the absence, ive had some issues to deal with.
nice work finding the issue.
Create a project in the project forum and post your code and solution in there. -
RE: M5Paper I2C
@powersoft said in M5Paper I2C:
Today I rewrote the routines for the BMP280 and BME280 for a single device.
Simple include the source into the main program, and call it.
This is now working as I wont. It takes a afternoon of work!
Now put the finishing touches on the BMP280/BME280.Would it make sense to post them on the forum when they are ready?
Cheers
JanHi @Powersoft sorry for the absence, ive had some issues to deal with.
nice work finding the issue.
Create a project in the project forum and post your code and solution in there. -
RE: Drive 4 DC motors without encoder - NO LEGO
@ramaker Sorry, wasn't aware you already had the hardware, I just presumed you were planning.
These are the pre-terminated leads https://m5stack.com/collections/m5-accessory/products/m5stack-lego-motor-adapter-cable
Please give me a day or 2 to find the connectors but they are crimp connectors and available on ebay and other suppliers.
Edit - They are JST 6 pin connections
@ramaker have you been looking at JPL's Open mars rover project?
I would be interested in a collaberation as I too was looking into it. -
RE: UIFlow for M5Paper
oserror 118 is an issue with Micropython. from what i can tell, its an issue baffling the main MP devs.
-
RE: M5Paper I2C
Ahh, I'm not sure about arduino as I'm working on documenting UIFlow.
-
RE: Where is M5Paper API Key?
When you install UIFlow and finish setting up the wifi, the API key will be displayed on the screen along with the mode and the network you have connected the device to.
-
RE: M5Paper I2C
What code are you using for the scanner?
Just run a test on mine using this code
And getting a working scan.