Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. robalstona
    3. Best
    R
    • Continue chat with robalstona
    • Start new chat with robalstona
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Best posts made by robalstona

    • 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

      posted in PROJECTS
      R
      robalstona
    • 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

      2_1593357350418_IMG_20200620_182603-1.png 1_1593357350406_IMG_20200620_182525-1.png 0_1593357350361_IMG_20200628_165756-1.png

      posted in PROJECTS
      R
      robalstona
    • RE: Unable to install Windows ATOM (CP210x) drivers

      Hi. I don't remember exactly, but these drivers should match:

      https://www.ftdichip.com/Drivers/D2XX.htm

      0_1606833189952_ftdi.jpg

      posted in Atom
      R
      robalstona
    • RE: UIFlow 1.7.3

      When was repaired bug with dissapearing wirtual keyboard on mobile browsers?

      https://community.m5stack.com/topic/2454/online-uiflow-version-on-mobile-browsers-dissapearing-virtual-keyboard/3

      posted in Official Updates
      R
      robalstona
    • RE: Ways to add external battery

      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.

      posted in M5 Stick/StickC
      R
      robalstona
    • RE: Another UIFlow 2.0 Suggestion

      In my opinion should be a button or menu entry to export blocky program as jpg/png image.

      posted in UIFlow
      R
      robalstona
    • 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

      posted in PROJECTS
      R
      robalstona
    • 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.

      posted in Official Updates
      R
      robalstona
    • RE: UIFlow 1.4.5

      Could you try uPyCraft. I use them on windows system and i can transfer files to/from Atom Lite/Matrix with burned Uiflow firmware. Under linux where i use Linux Mint 19 uPyCraft i cannot run it (problem with installing proper libraries needed to run)

      posted in Official Updates
      R
      robalstona
    • 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

      posted in Arduino
      R
      robalstona
    • 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.py

      there 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.

      posted in UIFlow
      R
      robalstona
    • 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.

      https://youtu.be/D3xJCUcndfc

      posted in PROJECTS
      R
      robalstona
    • 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.

      posted in UIFlow
      R
      robalstona
    • RE: Custom Blocks

      Yes it is possible, but you must wrote code in micropython. And online custom block editor isn't advanced as other code editors.

      posted in General
      R
      robalstona
    • 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.

      posted in M5 Stick/StickC
      R
      robalstona
    • 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)

      posted in M5 Stick/StickC
      R
      robalstona
    • 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)

      posted in M5 Stick/StickC
      R
      robalstona
    • 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

      0_1611061798586_Screenshot_20210119-134354-01.jpeg

      posted in Core 2
      R
      robalstona
    • 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)

      posted in UIFlow
      R
      robalstona
    • 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

      posted in UIFlow
      R
      robalstona