Navigation

    M5Stack Community

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

    robalstona

    @robalstona

    32
    Reputation
    164
    Posts
    3015
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    robalstona Follow

    Posts made by robalstona

    • RE: How to see print() output and REPL from VSCode?

      Try this extension
      https://marketplace.visualstudio.com/items?itemName=curdeveryday.vscode-m5stack-mpy

      posted in Micropython
      R
      robalstona
    • RE: Micropython and C++

      No you cannot. The term firmware in this case can be a bit misleading. It is compiled code of micropython interpreter written in c/c++ language with implemented support for uploading or running python scripts via uiflow online editor or usb connection. you might as well call a c/c++ program compiled and uploaded using arduino a firmware.

      posted in UIFlow
      R
      robalstona
    • RE: StickC USB support for external USB Memory stick

      No you cannot, between usb and esp is a usb-uart conwerter. Its allow only to serial communication.

      posted in General
      R
      robalstona
    • RE: Getting Microphone Data (decibels) from M5StickC Plus or AtomU

      You cannot read data from this microphone via analog read. This microphone is digital and has two digital pins. One of them is clock signal (probably connected to gpio0) which you should drive with 1MHz signal. Second is digital output which give a signal similiar to pwm signal (pulse density modulation) . So only walues which you read are 0V or 3.3V.

      posted in Micropython
      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: 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/

      posted in Atom
      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: How to distribute Micropython application as binary flash image ?

      You can use esp flash tool
      https://github.com/espressif/esptool

      But it is a command line tool. and need python installed on your pc to work. With this tool you can download whole spiflash content to one bin file. You can also flash it back with this tool.

      I don't use M5burner which probably don't have option to burn custom bin file. By the way, M5burner use esptool in background to flash their firmwares.

      posted in Micropython
      R
      robalstona
    • RE: Guidance on running multiple programs

      Programs on the device are saved in two files
      program_name.m5b (used only by uiflow to put the project back into the editor)
      program_name.py (generated python code based on your project in uiflow). This file is run on the target device.

      You can use the import program_name.py statement in your program in the execute block. Then it will be loaded and run.
      But this method has its drawbacks, because the initialization instructions at the beginning of the program will be reloaded. You have to be careful what variable names you use, so that you don't overwrite the variable values with new ones from the imported file.
      The import statement imports the code the first time and runs it, subsequent imports of the same file just load it into memory without running it (you can find a solution to this problem on google.
      Ewentually you could edit your python code before upload to device with this way to solve above problem

      def main():
        # place whole generated python
        # file in this function with
        # proper intend
      
      main()
      
      posted in UIFlow
      R
      robalstona
    • RE: M5 atom lite connector.

      Probably the grove name is property of seedstudio, so m5stack don't use this in description.

      posted in Atom
      R
      robalstona