Navigation

    M5Stack Community

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

    Posts made by mdevel1

    • RE: SH200Q vs. MPU6886 vs. IMU scaling

      @m5stack said in SH200Q vs. MPU6886 vs. IMU scaling:

      @mdevel1 The minimum acceleration measurement range of SH200Q is ± 4g. For details, you can refer to this datasheet.

      Thanks, I've read the datasheet, but there is no general way to set the 4G scale through the IMU class. The only way is to detect the hardware, and duplicate the functionality of the IMU class for both chips (and inherit one from SH200Q class). I would like to use a general method, but since I only own MPU6886 versions, my code will be specific to this. If others have interest, this might change, so this is the reason behind my original question. I don't want to invest time to create more divergent code as my other two pull requests remained unanswered yet.

      posted in M5 Stick/StickC
      mdevel1
    • SH200Q vs. MPU6886 vs. IMU scaling

      Hi,

      I'm using the integrated IMU and found that the default accelerometer scale of 8G is too big, 4G or even 2G would be better. There is no support in the IMU class for setting the scale, and the current SH200Q and MPU6886 classes are incompatible: MPU6886 has AFS_2G as the first item in the enum, but SH200Q doesn't have a placeholder, and begins with AFS_4G (besides the former one having it public while the latter is protected). I understand the different hardware capabilities, but it seems to be too much effort to extend the IMU class to handle this well.
      What is your opinion? Is anybody interested in a general solution, or the number of SH200Q devices is so small, I can safely go with the MPU6886 class matching my hardware?

      posted in M5 Stick/StickC
      mdevel1
    • RE: Screen stopped working, nonsense AXP data

      For the record: the coulomb counter data is fixed, but still undocumented in the newest version of the library (not released yet, only on Github).
      There was another issue with the newest version, with a fix that is not yet merged, and available only as a pull request.

      posted in M5 Stick/StickC
      mdevel1
    • RE: Different board versions

      There is a new case: 2019.10 Upgrade the bottom and add copper nuts. PCB is unknown in this version.

      Image from Lang-Ship and M5Stack on Twitter

      posted in M5 Stick/StickC
      mdevel1
    • RE: GROVE connector - still powered when StickC (orange) is turned off?

      @maxrom

      Hi, can you post pictures of the yellow PCB to the Different board versions topic? I'm going to copy the pics of @world101 there.

      posted in M5 Stick/StickC
      mdevel1
    • RE: Different board versions

      @mdevel1 said in Different board versions:

      I will leave it alone for a day to verify (it can't power on now without attaching USB power, but continues with correct time measured from the power on after the upload)

      I can confirm it now, if the battery voltage dops below a certain level, the RTC forgets the time, and it restarts counting from 2000-00-00 00:00:00 when external power is connected to the black PCB version (without the button battery).

      posted in M5 Stick/StickC
      mdevel1
    • RE: How to recharge the battery

      @skink
      Can you test with https://github.com/mdevel1/M5StickC_Battery_Monitor? The best would be logging the data via a serial port and uploading it to a file sharing site (with a complete charge/discharge cycle). I plan on adding some graphing (first on desktop, then on device) to the project in my (not enough) free time.

      posted in M5 Stick/StickC
      mdevel1
    • RE: Different board versions

      @maxrom said in Different board versions:

      No blue wire. I have to say, it sounds like your black PCB could be a copy. Have you tested the RTC to see if it keeps time after the main battery has died? Without the button battery, I don't think it would work properly.

      No blue wire in my second stick. It has a red wire in the same position. :)
      I think if the main battery dies, my least concern would be the RTC time.
      I uploaded the RTC example code (with the SetTime and SetData calls commented out) to my second stick now, which had its battery drained somehow (would not power on before plugging in to USB), and it started counting from 2000-00-00 00:00:00. This seems to be a strange new kind of Y2K bug, but it could confirm your theory. Since I did not upload any RTC code AFAIK to this stick, I will leave it alone for a day to verify (it can't power on now without attaching USB power, but continues with correct time measured from the power on after the upload)

      posted in M5 Stick/StickC
      mdevel1
    • RE: M5StickC screen don't work

      @nsfilho
      I'm sorry, I did not know that the code fails earlier, I just had to exclude the possibility that it can fail in a way which results the strange output from the AXP chip I was seeing when my screen was not working. This also means that my problem was different.
      In this case I don't have any more ideas, except taking apart the stick completely very carefully (see the photos how it can break, and then desolder the LiPo battery (or just cut the cables separately, very close to the PCB). I don't know if your stick has the button battery (mine does not), and what is it connected to, but it's possible that it must be disconnected somehow too. When you don't have any batteries or power sources connected, you might try to discharge any capacitors nearby, which should definitely put the AXP chip in a known stable state without the risk of shorting and damaging any battery. I would then inspect the AXP chip, the PCB traces and the components nearby for shorts, cuts, corrosion or any anomaly. If nothing found, then try to power from USB (preferably with a current meter) and see what happens.
      I'm not aware of others having the exact same problem, so yours might be unique.

      posted in M5 Stick/StickC
      mdevel1
    • RE: M5StickC screen don't work

      @nsfilho Have you tried to upload my AXP data query code? I added the possibility to dump the results to USB as well as an external serial port, so no other device is needed for running it.

      posted in M5 Stick/StickC
      mdevel1
    • Different board versions

      Hi,
      after taking off the top of my M5StickC to remove the loose magnets inside, I searched for others having the same issue, but only found other pictures of the inside of other M5Sticks. The interesting things on these pictures (definitely taken months before mine) are:

      • red main PCB
      • some sort of button battery under the TFT
      • the label "M5Stuck I" near the two LEDs in the corner
      • good quality soldering

      You can see them here:
      https://github.com/aenertia/m5stick-scope-ecg
      https://fccid.io/2AN3WM5STICKC/Internal-Photos/Internal-Photos-4305610

      Mine (ordered from Banggood.com on the last days of 2019, photos at https://ibb.co/album/fTxsJv) has:

      • black main PCB
      • no button battery
      • no label
      • low quality soldering
      • a blue wire from somewhere
      • clipped VIN pin from hat connector board

      Can you post which version (red or black) do you have?

      Can you spot more differences?

      Since taking it apart seems to be destructive, can you post more pictures if you have a non-working black version?

      Can we get a description about the changes and identification?

      posted in M5 Stick/StickC
      mdevel1
    • RE: Loose magnets inside can short the battery and other components

      Found more pictures of the inside after searching for magnet issues:

      https://github.com/aenertia/m5stick-scope-ecg

      posted in M5 Stick/StickC
      mdevel1
    • RE: M5StickC screen don't work

      I had the same issue with one of my two sticks, which appeared and disappeared without (intentionally) shorting anything and found two loose magnets inside. See the Loose magnets inside can short the battery and other components topic for more details. The magnets might have shorted some pins while I was trying to remove them (or caused the whole issue beforehand).
      While my stick was defective I had access to the AXP on the I2C bus (I think the M5.Axp.GetBatState() or any other Axp call would not work otherwise), but the returned values were incomprehensible. Since my stick is working now, can you test the code posted there to dump the data form the AXP chip?

      posted in M5 Stick/StickC
      mdevel1
    • Screen stopped working, nonsense AXP data

      Hi,
      I've got two pieces of M5StickC a few days ago. After trying out some of the example codes, the display stopped working in one of them (similar to the "M5StickC screen don't work" topic). I uploaded a small test program into it, which writes to serial port, to see if the other parts were still operating. Incidentally this program dumps data from the AXP chip and the results were surprising:

      Output from the one without working display:

      GetBatState: 1
      GetCoulombchargeData: -1
      GetCoulombdischargeData: -1
      GetCoulombData: 0.0000

      GetBatVoltage: 4.7685
      GetBatCurrent: 0.0000
      GetVinVoltage: 7.3695
      GetVinCurrent: 2709.3750
      GetVBusVoltage: 7.3695
      GetVBusCurrent: 1625.6250

      GetTempInAXP192: 288.8C

      GetBatPower: 2362232.0000
      GetBatChargeCurrent: 2167.5000
      GetAPSVoltage: 6.0690
      GetBatCoulombInput: 23860.5645
      GetBatCoulombOut: 23860.5645

      GetWarningLevel: 1

      Output from the correctly working one:

      GetBatState: 1
      GetCoulombchargeData: -1
      GetCoulombdischargeData: -1
      GetCoulombData: 0.0000

      GetBatVoltage: 3.5805
      GetBatCurrent: -58.5000
      GetVinVoltage: 2.6520
      GetVinCurrent: 0.0000
      GetVBusVoltage: 0.0000
      GetVBusCurrent: 0.0000

      GetTempInAXP192: 20.0C

      GetBatPower: 266.9931
      GetBatChargeCurrent: 0.0000
      GetAPSVoltage: 3.5784
      GetBatCoulombInput: 23860.5645
      GetBatCoulombOut: 23860.5645

      GetWarningLevel: 0

      Both outputs were generated while the stick was running on its internal battery.
      The source is on github: https://github.com/mdevel1/M5StickC_Battery_Monitor

      After finding and removing two loose magnets inside the case (see "Loose magnets inside can short the battery and other components" topic), and power cycling the stick, the AXP chip somehow returned into a working state, the dumped values are back to normal (except which didn't make sense before), and the display is working too.

      posted in M5 Stick/StickC
      mdevel1
    • Loose magnets inside can short the battery and other components

      Hi,
      the screen of my M5StickC suddenly stopped working, so I continued my project on another one and placed the two close to each other. Then I noticed a strange noise from the faulty one when it was moved around the good one, but it was silent when I tried to shake it a bit. After taking out the screws and removing the top, I found two small magnets inside. One of them was in contact with the circuit, very close to the LiPo battery solder points.

      Since I could not remove the main panel without taking the risk of breaking it, it was hard to remove the magnets with tweezers but they were not attached firmly to the housing. After the removal, the AXP chip was still in a "confused" state (see "Screen stopped working, nonsense AXP data" topic), but charged the battery, then turning it off and on again suddenly turned on the screen, and the unit started to work correctly.

      There is no insulation on the magnets or between magnets and the circuits, so they chould have caused more damage. There are only a few mentions of the inbuilt magnets of the M5StickC on the net, but nothing in the official documentation. BTW the weight was reduced from 15g to 13g.

      I took some photos, they can be viewed here: https://ibb.co/album/fTxsJv

      posted in M5 Stick/StickC
      mdevel1