In yoir case the best option is a connect externall battery to gnd and vbat on hat port and remove internall battery. But opening m5stick withoit damage internal connection is some difficult. I opened it once to remove magnets and i dont doing this again. Axp is settings default to charge battery with 100mA current, so if you connect bigger capacity battery it will default charge in longer time ( it is safe for battery).
I saw command in uiflow to change axp charge current to predefined values, but i dont test it if this change is permament or you need change this everyvrestartvof device.
Best posts made by robalstona
-
RE: Ways to add external battery
-
M5atom Matrix library (micropython)
Hi
I would like to introduce you to a simple library to support the integrated 5x5 led matrix in the M5atom Matrix. The library was written in micropython.
I have attached to the library examples showing the operation of library functions and an example thermometer application.
At this moment you can use individual pixel set/clear function, display pixmaps/mask or use blink or breathe effectt at one selected pixel (at this time)
Scrolling text are not implemented yet.You can download it at:
github.com -
RE: Unable to install Windows ATOM (CP210x) drivers
Hi. I don't remember exactly, but these drivers should match:
-
RE: UIFlow 1.7.3
When was repaired bug with dissapearing wirtual keyboard on mobile browsers?
-
RE: Another UIFlow 2.0 Suggestion
In my opinion should be a button or menu entry to export blocky program as jpg/png image.
-
MtStickC accuweather.com mini weather station
Hello, I wanted to present a simple mini weather station program showing the current weather using the accuweather.com service. The program was made in UiFlow web ide 1.4.5 and tested on m5stickC firmware 1.4.2.
source code and resource files:
https://github.com/stonatm/m5stickc/tree/master/accuweather
-
RE: Stopwatch - Core2- Need help
Hi. I wrote something like this. I set the timer to increment the counter variable every 0.1s. Button A pauses / resumes timer operation. Button B resets the counter (the counter variable). The current counter value is displayed in the main loop of the program, scaled to seconds and hundredths of a second. One value of the counter variable in my case corresponds to 0.1s. You may need to modify the display_time function, because in my case (firmware 1.4.5) the lcd print function displays the result in the previous place overwriting the previous result. In later firmware the displayed result may overlap the previous one.
This is also an incomplete example, so the displayed time may overwrite hundredths of a second after exceeding 99 seconds
-
RE: How to control m5stickc pins via uiflow?
G26 could be use only as input. Change pin to another eg. G36 and should work. Alternativelly
Try use Advanced ->PIN blocks
use init block, change mode to OUT and pull to PULL_FLOAT to set your pin in output mode then set your pin with set pin block. -
RE: Ui Flow support for onewire and ds18x20
@fb24 Hi. A few days ago I made a custom block for ds18b20 support. Maybe you're interested
https://github.com/stonatm/UiFlow-custom-blocks/tree/master/ds18b20
-
RE: Hosting a simple HTML with M5* device img src problem
@thrasher as you say you did simple web server. If you want implement send images you must handle image receive
request. Analogically to send your web page from string or text file you must send raw binary data from file. If image is small you could be try convert it to text in BASE64 format and insert it into <img src="data:image/jpg..........">online converter
https://www.base64-image.de/encode -
RE: Analog Read gives wrong value.
The adc readings is non linear at both ends of range (flat). So you can't measure voltage below ~0.17V and under ~3.15.
Below is link with explain
https://randomnerdtutorials.com/esp32-adc-analog-read-arduino-ide/ -
RE: How to control m5stickc pins via uiflow?
try another pullup eg PULL_UP
Probably i mistake with these pins G36 can be use only as input and G26 should work( i wrote this earlier from memory). If you connect this relay module to stick you must connect gnd from module with gnd in stick. If you power relay module from 5V then input signal probably must be a higher than 3.5V (high signal from stick has lower level than needed to trigger relay) on in case when its activate as high signal. Try module alone to connect gnd to in and vcc from module to in, when you will known which signal you must take to trigger LOW or HIGH.
At the last you could use G0, but you could problems when you power up or restart stick (if G0 has been in low when stick run in flash mode) -
RE: Ui Flow support for onewire and ds18x20
its weird to me, i use online wersiin of uiflow, its shows 1.4.5. Newer mind.
I based custom block on this file:
https://github.com/stonatm/M5Atom_matrix_library/blob/master/lib/dallas.pythere in a two class which diffirents in one line near return temperature dependent of sensor type
usage:
#run once
import time
from dallas import ds18b20 as sensor
sensor.init( pin )#reading procedure
sensor.convert ( pin )
time.sleep_ms(750)
print ( sensor.read( pin ) )This library is simple and have small amount of code but its sacrified to using only one sensor by pin. I don't implemented search rom procedures.
-
RE: Reprogramming the Faces keyboard
You will need the UsbAsp programmer to program atmega. The maximum supply voltage can be found in the atmega datasheet because it depends on these few letters or numbers after the inscription 328
-
RE: M5atom Matrix library (micropython)
I updated library with scroll text function
In first half of video there are scroll some characters. In second half of video was there are displayed some feeds from my adafruit channel for example. -
RE: How to control m5stickc pins via uiflow?
ewentually power relay module from lover voltage ~3.5-4V. Then should be trigered with 3.3V in in. But in this case the pover voltage could be too low to correct work of relay( may not work in all cases when you trigger it. I had similar problem when i drive this relay from raspberry pi (also 3.3 logic level)
-
RE: Adding external libraries via uiflow
If you use Visual Code you could install this extension
https://marketplace.visualstudio.com/items?itemName=curdeveryday.vscode-m5stack-mpy
Then transfer your modified library to flash. It would be good to change the name to another one, so that the import function does not load the built-in urequests library. Alternatively, you would have to look in what order and from which locations the libraries are imported.
-
RE: UIFlow 1.4.5
Connect the atom to the computer and connect to it with the terminal program, system information along with the API key are displayed during startup. The second option is to keep the matrix button pressed while starting until the colors change pulsatingly. And release it when it is pink / purple. then the atom will launch its access point. Connect to his network via 192.168.4.1 address and then in the browser you will see the API key and you will be able to choose the network to which you will connect.
-
RE: Delay
You can try this:
https://www.google.com/amp/s/techtutorialsx.com/2017/10/02/esp32-micropython-creating-a-thread/amp/
But this may not work properly with all modules included in micropython firmware. You need also micropython version 1.14.
-
RE: ESPNow UIFlow - communication stopps after 10 messages
The set.pmk function is used to "encrypt" data transmissions, you set the same key in the transmitter and receiver. I have not had the opportunity or need to test if it works. You can find a library for arduino esp-now on the internet. Practically the functions have the same or similar names as those in python. I think the easiest way would be to send from the transmitter all values separated by commas as text and receive them the same way. in uiflow or in python using split function which will make you a list with separated values
Lists -> make list from text with delimiter.
As a delimiter you set your separator character e.g. ","
Then you read each value with
Lists -> in list ... get # item number
Translated with www.DeepL.com/Translator (free version)