@macsbug Thank you!
Posts made by david-bethesda
-
RE: Writing and re-writing text?
@agreedk thanks! I guess that means I have to figure out how tall a font is in pixels, and how wide the phrase is, ugh. Feels very imprecise and clunky.
-
RE: Writing and re-writing text?
Thanks @ajb2k3 but I'm writing this particular code in C++ / Arduino so I'm using M5.Lcd
-
Writing and re-writing text?
I'm trying to create a text area on the screen where I can write some text (like a sensor value) and then periodically replace this with new text somehow. I can't find anything about how to do common operations like this. How do I erase the prior value and replace it with the new value? thanks
-
High speed / animation on Core 2 display
I have a python app that is monitoring the voltage of a rapidly changing signal (think audio amplitude) from a sensor and I am driving the width of a rectangle shape, modulating the width with the value of the signal. I would like to have a smooth update frequency of about 30 per second. Basically I want to emulate the look of old fashioned VU meters, either the electromechanical kind of the 60's or the LED bars of the 80's. I don't know the best way to do this. I.e. do I draw the rectangle, then erase it, then draw the new rectangle at the new width? I tried a couple of different approaches but they didn't look correct. Thanks.
-
RE: M5Stack Core 2 appears to be bricked
I was finally able to Erase and get things back to normal.
-
RE: Core 2 and ADC Input
@bschwahn I would think a digital sensor would be much more accurate and easy to use than an analog one. Once you figure out what library you need for the protocol e.g. this might help https://randomnerdtutorials.com/esp32-multiple-ds18b20-temperature-sensors/
-
RE: M5Stack Core 2 appears to be bricked
@ajb2k3 Thanks. I referenced my attempt with Burner in the original post. I tried a subsequent time and it finally worked. So I think I'm good now. It's not clear to me how Burner could ever work if a program is attached to the serial port -- does Burner not require the serial port itself?
-
RE: M5Stack Core 2 appears to be bricked
@ajb2k3 thanks but when you say “wipe” using Burner which operation are you talking about? In my post I show the output from an attempt to use M5Burner. I agree with your theory that The unit is running my sketch which is either holding up the serial connection or doing something similar. What I don’t understand about this unit is the apparent lack of a factory reset using the buttons somehow and starting from scratch with a boot strap or something similar. Is there no such function?
-
M5Stack Core 2 appears to be bricked
No response ( no display or sound) upon plugging in usb power. Was working fine until I tried uploading a sketch. Burn fails. I am getting a response to ls:
ls /dev/tty.wch*
/dev/tty.wchusbserial537E0144481File "/Applications/M5Burner.app/Contents/Resources/packages/tools/serial/serialposix.py", line 268, in open
raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 16] could not open port /dev/tty.wchusbserial537E0144481: [Errno 16] Resource busy: '/dev/tty.wchusbserial537E0144481'Any suggestions?
-
Looking for a current tutorial for M5Stack Core 2 using Arduino coding
I want to make sure I am using recent instructions, I'm running a Mac. Thanks.
-
Pulse sensor connection
Can this pulse sensor https://www.amazon.com/Shuian-Consumption-Compatible-Raspberry-MAX30100/dp/B09NZPDWB2/ref=sr_1_8 be connected to the grove port on a Core 2?
-
RE: Mis-match between M5stack Core2 version and flow.m5stack.com
@felmue Ok, so I'm using the Web IDE successfully but only in WiFi mode, I can't figure out how to connect a USB device while using web IDE, only desktop IDE (which I understand now is no longer maintained). I am doing this because for use in a school environment they only have "captive" WiFi.
-
RE: Noob Q : Motion Detection, Lorawan & Battery Power
If you're monitoring motion then that PIR has to be powered full time. I think even a large USB battery might only get you a few days. Solar is a possibility, but now you have to include a battery plus charge circuit ( you can buy the charge circuit preassembled).
For an experience person this project is of low/moderate complexity. For you it would be a great learning experience and will likely require quite a bit of work.
Make sure there is a Lora receiver somewhere close by (a few blocks).
WiFi is pretty lousy but if you have a strong signal where the box is, it saves you from buying a lora device.
Adafruit.com and sparkfun.com would be good sources for things including solar parts.
You might be able to rig up a trip wire or something to flip a switch, which wakes the unit, it transmits, and then sleeps. You would have to figure out if M5 can sleep and be re-awakened with a switch. I'm new to the platform so I don't know if it can do that. This is probably not the best option but who knows.
-
RE: Mis-match between M5stack Core2 version and flow.m5stack.com
@ajb2k3 The instructions you gave, to change the Version to Beta, only apply to the web app, but then you say the web app is out of date. Therefore it's unclear whether I should be using the desktop or web UI. Thanks. Note: I just found that I can use flow.m5stack.com UI, it shows 1.9.3 version upper left, which matches my device version. I can't figure out how to get the desktop software to 1.9.3. Oh well.
-
How to go "back" in M5Stack Core2 screen ui?
I can't figure out how to return to the previous screen. E.g. I go to the App List, then how do I return to the main menu?
Also, what are the three red circles on the device? Are these target spots that can be programmed? Do they do anything by default? thanks
-
RE: Where is documentation of the http capability in UIFlow?
I was able to get my code working but would still be interested in finding solid documentation of this function thanks.
-
Does UIFlow client support clipboard copy/paste?
On Mac in UIFlow app I cannot seem to copy python code to clipboard.
-
Where is documentation of the http capability in UIFlow?
I want to issue a GET to an endpoint and retrieve a single string that it returns as text. I cannot find documentation demonstrating how to do this? I'm also comfortable using python but prefer to take advantage of UIFlow if possible. Specifically, I don't see how to retrieve the value returned from the GET operation. Thanks