Navigation

    M5Stack Community

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

    forestial

    @forestial

    0
    Reputation
    8
    Posts
    147
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    forestial Follow

    Posts made by forestial

    • RE: Micropython for Atom S3 Lite

      @ajb2k3 On more careful inspection I see that my module is just ATOM LITE, not ATOM S3 LITE. So I have selected "ATOM" in M5Burner and then re-burned with "UIFlow_Lite" v1.11.8. However this does not appear to boot successfully, I cannot get to the >>> python prompt.

      Can you comment on what is going on? Am I using the wrong firmware for an ATOM LITE? (I can revert to the ATOM S3 version, which was working fine, but I am trying to learn how to do this properly.)

      posted in Micropython
      F
      forestial
    • RE: DLIGHT - read from microPython

      Actually I mis-identified my module, it's ATOM LITE not ATOM S3 LITE on closer inspection (the names of these things can be confusing). I got the pin numbers scl 32 and sda 26 from the legend on the device itself, and I think they must be correct since it is able to reply with the [35] from the scan() function.

      I tried looking at the Arduino code from GitHub to see if it does some kind of initialization of the DLIGHT before reading, but I can't figure it out.

      Anyway thanks for replying Terry.

      posted in Modules
      F
      forestial
    • DLIGHT - read from microPython

      I have an ATOM S3 Lite with a DLIGHT connected to the Grove interface. DLIGHT is the "Ambient Light Unit" with a light sensor of some kind. I have the UIFlow v2 on the ATOM, so microPython is working. I want to read the values from the DLIGHT sensor.
      I have code like the following:

       import machine
       i2c = machine.SoftI2C(scl=machine.Pin(32), sda=machine.Pin(26))
       i2c.scan()
       i2c.readfrom(35, 2)
      

      the scan() function returns [35] so I presume it is connecting successfully.
      But the readfrom() always returns b'\x00\x00' no matter what brightness the light is on the sensor.
      Is there something else I need to do, to initialize the DLIGHT?
      Or do I need to pass 'freq' or other parameters when I create the i2c object?

      posted in Modules
      F
      forestial
    • RE: Micropython for Atom S3 Lite

      @ajb2k3 OK, I will try using M5Burner. I have an Atom Lite, so should I select "ATOM" in the list of devices on the left? And then should I select "Micropython" from the list on the right? I only want micropython, not UIFlow (at this stage).
      0_1685140075284_218b0db7-b0b1-4a4d-9a95-8e7b92784017-image.png

      posted in Micropython
      F
      forestial
    • RE: Micropython for Atom S3 Lite

      I was able to flash my S3 Atom Lite using the file M5STACK_ATOM-20230426-v1.20.0.bin from this location https://micropython.org/download/GENERIC_S3/
      I have not tried to use thonny with it but I can connect via the serial port and execute Python statements.

      posted in Micropython
      F
      forestial
    • RE: ATOM S3 Power Requirement

      Good info; thanks everyone

      posted in Atom
      F
      forestial
    • RE: ATOM S3 Power Requirement

      OK: supposing there is nothing connected to it. How much current does the ATOMS3 device itself require?

      posted in Atom
      F
      forestial
    • ATOM S3 Power Requirement

      I have ordered a "ATOMS3 Dev Kit w/ 0.85-inch Screen".
      What mA will this require from the USB-C power? I cannot find this information in the spec sheet.

      posted in Atom
      F
      forestial