Group Details Private

Global Moderators

Forum wide moderators

 
  • RE: GPIO ports for the grove connector?

    Hello @cerietke

    it is not very intuitive, but I managed to turn GPIO32 on and off. Here are my steps:

    • download and flash m5stack-core2_full_16MB_v0.6.2.bin onto M5Core2
    • setup wifi connection (check M5Core2 has connected)
    • setup mqtt connection (check M5Core2 has connected)
    • setup gpio output
      Pin: 32
      Type: LED
    • restart M5Core2 (so all gets properly subscribed and published)

    Now send an MQTT publish command to turn GPIO32 on / off:

    • On:
      Topic: hasp/plate/command/output32
      Payload: "{\"state\":\"on\",\"val\":\"255\"}"
    • Off:
      Topic: hasp/plate/command/output32
      Payload: "{\"state\":\"on\",\"val\":\"0\"}"

    Note: I did not manage to turn the output on/off by manipulating the state value. Only changing the dim value from 0 to 255 and back worked for me.

    Thanks
    Felix

    posted in SOFTWARE
  • RE: Is ezdata working or not?

    Hello @lmartu68

    I can use get multiple times but I see the same error as you after the second set command. Also at that state when running the same code again, my M5Core2 reboots.

    @m5stack : as ezData is of today it's fairly unusable with M5Core2 (haven't tried other M5Stack devices). What are we missing?

    Thanks
    Felix

    posted in General
  • RE: Making a Robot: USB-C -> ATOM -> 2x SERVO2 ?

    Hello @Schlabbermampf

    looking at the schematics I don't see a path from the 5V the M5Stack device provides to the outputs of the servos. I think that statement "When the battery base is used for power supply, the maximum output power is 5V / 2A". is wrong. Also a little below there is another statement "The module must use the external power supply of DC interface when driving the servo." which contradicts the first one.

    That said, I don't own this particular module so I cannot say for sure what is correct and what not.

    Thanks
    Felix

    posted in PROJECTS
  • RE: Some questions...

    Hello @ajb2k3

    I think you might still be thinking about the wrong module. (I know it's a bit confusing as both these modules are listed on the specs page.)

    The Stepmotor Driver Module (HR8825) uses an TCA9554 and not an STM32. So no open source firmware as far as I can see.

    Thanks
    Felix

    posted in PRODUCTS
  • RE: V-Training down

    Hello @KC5JIM

    the second link was dead for me for a while too, but when I tried again it worked.

    the first link results in the error you described - try http://vtraining.m5stack.com/build/index.html

    Thanks
    Felix

    posted in General
  • RE: Making a Robot: USB-C -> ATOM -> 2x SERVO2 ?

    Hello @Schlabbermampf

    just to be clear. The servos attached to the SERVO2 module will not be powered from the Battery Module (or the battery bottom of the FIRE). The Battery Module will only power the M5Stack device.

    The SERVO2 module has a separate VBAT_2 line which is not connected to the VBAT of the Battery Module or M5Stack device. Check the schematic here. Subsequently the magnetic charger will only charge the battery for the M5Stack.

    You'll need to attach a separate battery to the SERVO2 module directly at the DC INPUT (6 - 12V) using the provided thick wired cable. And it probably will need substantially more capacity than the 500mAh of the Battery module anyways. One servo has a rated Locked rotor current of about 750mA and your battery needs to drive 12 of them. See specification here.

    And you'll have to charge the battery for the servos with an external charger.

    I would probably start w/o the battery for the servos and initially power them through an external power supply. With that setup you could measure the DC current of the working robot and then depending on how long it should run from battery decide on the size and capacity of the battery. (Which will add additional weight to the robot.)

    Thanks
    Felix

    posted in PROJECTS
  • RE: Some questions...

    Hello @ajb2k3

    correct, but @NilZ was asking about the Stepmotor Driver Module (HR8825). Or did I miss something?

    Thanks
    Felix

    posted in PRODUCTS
  • RE: Some questions...

    Hello @NilZ

    1. apart from the M5Stack color (white vs. black) there is no difference - you can double-check that yourself as for both the schematic link is the same.
    2. yes
    3. no, the I2C address is fixed to 0x27. There are no dip switches or solder pads to change the I2C address I can see. That said, in the schematic you'll see that the chip doing I2C has three address pins but they are all tied to VCC.

    Thanks
    Felix

    posted in PRODUCTS
  • RE: Random restarts of the M5Stack Core 2 (code/backtrace included)

    Hello @JackRazors

    to avoid the crash add a delay(1) into the for loop of the BtnScrController() task function. This allows the system to reset the watchdog.

    Thanks
    Felix

    posted in Core 2
  • RE: Stamp-C3 and I2C

    Hello @Bram

    have a look at this thread.

    Thanks
    Felix

    posted in PRODUCTS