Navigation

    M5Stack Community

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

    Posts made by Ricky_M5Station

    • RE: M5station485 factory installed program

      @felmue Hi Felix,

      I see what you meant now. Wire(Pin 32,33) are brought out to A1 and A2, all the internal chips use Wire1(pin 21 and 22) for their I2C. So "Wire" is not the correct I2C to use. Thus the example has a bug. Need to trace the libraries to find out. A manual is badly needed :).

      Thanks!

      Ricky

      posted in PRODUCTS
      R
      Ricky_M5Station
    • RE: M5station485 factory installed program

      @felmue Hi Felix,

      That works!! Thanks! But can you please explain a little bit about Wire? I thought it's only the i2C interface handle.

      Thanks again!

      Ricky

      posted in PRODUCTS
      R
      Ricky_M5Station
    • RE: M5station485 factory installed program

      Hi @felmue,

      When I opened the example, no board was chosen. Is this also true on yours? What board did you choose? The M5station? Just to make sure we are on the same page. Maybe I should also post the code here to compare.

      Thanks,

      Ricky

      posted in PRODUCTS
      R
      Ricky_M5Station
    • RE: M5Stack boards package for Arduino causes compile errors

      Hi @paulskpt,

      What additional board URL did you put in? I had similar problems until I changed the URL to this:

      https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json

      Ricky

      posted in Arduino
      R
      Ricky_M5Station
    • RE: M5station485 factory installed program

      Hello @felmue

      What do you mean by the log output? The serial monitor?

      Just to make sure: you said the example is working on your hardware. Did you also use M5station-485?

      Thanks again!

      Ricky

      posted in PRODUCTS
      R
      Ricky_M5Station
    • RE: M5station485 factory installed program

      Hello Felix,

      I tried the INA3221.ino example again after upgrading to Arduino 2.0.3 and removing and reinstalling the M5station libraries. Unfortunately the result is still the same 0V and 0ma for all ports. I've connected a RS485 module to one of these ports and the light on the module is on so I suppose power is there. Also with the factory installed program voltage and current values can be seen for that port.

      That said, the factory installed program has very different power management codes for reading the values, I wonder if that has to do with it.

      Thanks,

      Ricky

      posted in PRODUCTS
      R
      Ricky_M5Station
    • RE: M5station485 factory installed program

      @ajb2k3 Thanks for the info. Using the M5Station.exe program I am able to recover the factory program(I thought it was a generic binary downloading program but later found out it can only burn the factory default binary:) ). I am look forward to your documentation and thank you!

      posted in PRODUCTS
      R
      Ricky_M5Station
    • RE: M5station485 factory installed program

      @felmue Thanks for the info! I've only worked with Arduino and ESP-IDF so not so familiar with PlatformIO. The factory installed program can read the voltages and current correctly but not the INA3221.ino m5station example under the Arduino environment. I browse the libraries they use for the INA3221 and they are not the same. It's kind of hard to go on without documentations.

      Thank you.

      posted in PRODUCTS
      R
      Ricky_M5Station
    • M5station485 factory installed program

      I am looking for the source code for the program that comes with the unit. I found in the example a "factory.cpp" that I supposed was it, but I think there is something wrong. In particular under "main.cpp" a function "M5.Power.Axp192.setEXTEN(1)" was called but I cannot find the definition for it. Also is there a place where we can find the API documentation for the m5station? I tried several examples in the library such as the INA3221.ino but it didn't work correctly(All voltages and currents for the ports display zero). Many thanks!

      posted in PRODUCTS
      R
      Ricky_M5Station