I cannot find any opportunity to drive the stepper slow towards the home position where a switch waits to tell the M5 that the stepper has reached the zero point. The G-Codes are non modal, so cannot make single steps in a loop.
Has anyone a solution?
@andyt coming From a background of coding 8bit PIC's etc, I have a fare grip on assembler language. So once i get to grips with this ULP coding methods . My next step will be to add a routine to check battery level% change and wake from sleep to update the LCD battery level icon. As at the moment while it is sleeping with the LCD on the M5stack could run out of power and shut down. Or stay displaying the wrong battery level while it sleeps as at the moment it only updates while awake. Just need to get my head around the fundamentals of data handling and storage and setup of ULP. Good that there is more info on this topic these days. Exciting times!!![
My M5stack waking up and quickly turning on wifi, grabbing my local environment agency river levels .and showing the levels and if they are rising or falling triggering speaker alarms and displaying waring icons when reaching or above flood levels. To conserve battery it is asleep while the backlight remains on at a duty cycle dependant on battery level. Getting dimmer as the battery % lowers for 10 minutes minimum and then display the weather forecast from a weather API. cycling through these screens quicker or slower depending on the level of importance to the viewer. So while the river levels are low the weather will be displayed longer. pressing one of the front buttons wakes the device and scrolls to the next page, so that the user can look through the pages at a glance. It's like doing a painting. Always improving to the code to finished slick working device. next stage is to right a nice routine for a user interface to input their own wifi and postcode location. So the device can select local levels and weather.
I try the example available on m5stack GitHub (https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Application/Bala2) without success. I build project from Arduino IDE and from plaformIO with the same issue. After download binary file on bala2, screen remains black and motors are turned off. I can just do gyroscope calibration when btnB is pressed at power on. With verbose log enable, there is following error: "getBytesLength(): nvs_get_blob len fail: angle NOT_FOUND "
Please let me known how I can solve problem, all framework and libraries seem to be updated.
I'm trying to get the time from an NTP server, but I keep getting OSError: -202 MOST of the time. Every once in a while it would work.
Took me a while to figure it out, but finally did. So wanted to document it here.
What isn't clear in the examples and documentation is that even though you obviously have a good internet connect because you can download the code from UIFLOW, when your program runs, you need to reconnect the WiFi.
Once I did that as part of the initialization, I could get the NTP time just fine.
@ajb2k3 said in Application M5Stack Demo-Board (Factory-Test):
Try deleting the circle at the beginning of the line.
I've already done that, erased the circle in front of the bracket.
But nevertheless it runs only up to function 6!
Just found out, that I get the following error message working with Arduino 1.8.9 when I load the code into Arduino !!
Error message : "MFRC522_i2C.cpp" contains unknown characters. If the code was created with an older version of Arduino, you might want to use Tool -> Correct Coding & Reload etc. etc. to correct the code.
But even afterwards the program runs only up to function 6!
@krso said in M5stack STEP 3D files:
Would it be possible to add STEP 3D models to all products. It's very convenient for project planning.
Now (last month) JTAG debugging went free on PlatformIO/Visual Studio Code and Andreas Spiess did a YouTube video on debugging with the Espressif ESP-prog board JTAG interface for the ESP-32.
First thing I did was check into M5Stack Core and found it wouldn't work.
Another version with IO12-15 available for JTAG inline debugging would be necessary and appreciated.
Thanx a 1,000,000 for taking the time to help me.
Oops, my bad! I had also been playing with a Heltec 32 WiFi kit, and forgot to change the board (how embarrassing).
I am still indoors, so will either need to use a battery or, perhaps, sit by the window to test GPS.
At the moment, after a few seconds the software reports "Brownout detector was triggered" over serial, then reboots. I will investigate that & ask a new question if I can't solve it. Sorry to have taken your time.