Navigation

    M5Stack Community

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

    Posts made by felmue

    • RE: ATOMS3 Screen Backlight → Want to Switch OFF

      Hello @hugo-reed

      according to the M5AtomS3 documentation the backlight is connected to GPIO16. So setting that to LOW should turn it off. (Note: not tested)

      digitalWrite(16, LOW);
      

      Note: GPIO16 gets initialized and set to HIGH in function M5Display::begin().

      Thanks
      Felix

      posted in Atom
      felmue
    • RE: Arduino using GROVE B as I2C

      Hello @alpaka

      unfortunately GPIO36 (one of the GPIOs used for Port B) is an input only GPIO. See here - section M5GO Base Pins and here - GPI: GPIO34-39 can only be set as input mode and do not have software-enabled pullup or pulldown functions.

      I2C however requires one GPIO as output (SCL) and one GPIO which can be an out- or input (SDA). Therefore Port B cannot be used for I2C.

      Thanks
      Felix

      posted in M5Stack Fire
      felmue
    • RE: [CoreS3] I2C doesn't work...

      Hello @Amedee

      on M5CoreS3 the 5 V on the Groove ports needs to be enabled explicitly. See section Power Management here.

      Try calling below function in setup():

      M5.Axp.powerModeSet(POWER_MODE_USB_IN_BUS_OUT);
      

      Thanks
      Felix

      posted in Arduino
      felmue
    • RE: CoreS3 touch with Arduino

      Hello @jaysom

      please find a simple touch application drawing random colored circles here.

      Thanks
      Felix

      posted in Cores
      felmue
    • RE: SIM7080G Module speed and stability

      Hello @alan-zhang

      1. Are you connecting with NB-IoT or Cat-M? According to the documentation the speed are:
        Cat-M: Up: 1119Kbps (= 140KB/s) Down: 589Kbps (= 74KB/s)
        NB-Iot: Up: 150Kbps (= 19KB/s) Down: 136Kbps (= 17KB/s)
        In other words far away from 1MB/s.
        Maybe increasing the Baudrate might help?

      2. Freezing could be a power issue. Make sure you use a good power source for your M5Stack and modem. Maybe consider to power the modem separately using one of these? (Please note: I cannot guarantee that this fixes the issue though. It's just an idea.)

      Thanks
      Felix

      posted in Arduino
      felmue
    • RE: Unable to roll back from UIFlow2

      Hello @ciconde

      • go to the UIFlow2 website
      • click the device selector (bottom, left from the Run button)
      • in the Select Device dialog, hover over the device you want to unbind
      • click the edit button (top right within the bluish frame around the device)
      • in the Device Info dialog, click the Unregister Device (bottom left).

      Note: I did not test this myself.

      Thanks
      Felix

      posted in UiFlow 2.0
      felmue
    • RE: M5 Tough Can't Dim Screen

      Hello @KirkThomas1

      see this thread.

      Thanks
      Felix

      posted in General
      felmue
    • RE: Power Supply of COM.LTE (SIM7600)

      Hello @DanK

      actually there is an AMS1117 version with exactly the output voltage you measured: 2.85 V - coincidence?

      From the AMS1117 datasheet - feature list: Three Terminal Adjustable or Fixed Voltages* 1.5V, 1.8V, 2.5V, 2.85V, 3.3V and 5.0V

      But yes, the input voltage is probably on the low side.

      Thanks
      Felix

      posted in Modules
      felmue
    • RE: Power Supply of COM.LTE (SIM7600)

      Hello @DanK

      looking at the picture you've posted again I don't think the AMS1117 is the regulator for the SIM7600G-H. I think the 6 pin IC labelled JB3N (or so) on the right side is - the traces from Vin also go there. The output of that IC goes through the coil (squarish black thing) which is then feed into the AMS1117 pin 3. So my guess is that the SIM7600G-H is actually powered from the 3.75 V coming out of the coil. This would almost match the recommended voltage of 3.8 V.

      Note: I am obviously guessing here as I do not have this particular green board to verify myself.

      While we do not have the schematic of the green board we do have the pinout of the SIM7600G-H so you could double-check (if you haven't already) what the actual voltage is that goes into VBAT (pin 38, 39, 62, 63).

      Note: if my above assumptions are correct then I don't know what the AMS1117 is doing and what it's output voltage is needed for. Well, maybe it's used for the active GPS antenna.

      Thanks
      Felix

      posted in Modules
      felmue
    • RE: StickC Plus + PaHUB + 3 Ultrasonic I2C units

      Hello guys

      @teastain : See example here.

      @gavin67890 : yes it still works when I add PaHub as unit on Port A.

      @robot_alf : have you tried something similar in UiFlow/Micropython? E.g. only adding one Ultrasontic unit and then manually select the PaHub port/channel?

      Thanks
      Felix

      posted in Units
      felmue
    • RE: StickC Plus + PaHUB + 3 Ultrasonic I2C units

      Hello guys

      the following worked for me (M5StickCPlus fw 1.12.3, PaHub, 2x ultrasonic unit *)).

      *) I don't actually have an ultrasonic unit - I simulated two of them with two ESP32C3 acting as I2C slaves on address 0x57.

      Note: I did not add PaHub as unit. Just the two Ultrasonic units.

      from m5stack import *
      from m5ui import *
      from uiflow import *
      import unit
      
      setScreenColor(0x111111)
      Ultrasonic_0 = unit.get(unit.ULTRASONIC, unit.PAHUB0)
      Ultrasonic_1 = unit.get(unit.ULTRASONIC, unit.PAHUB1)
      
      label0 = M5TextBox(37, 38, "label0", lcd.FONT_Default, 0xFFFFFF, rotate=0)
      label1 = M5TextBox(38, 115, "label1", lcd.FONT_Default, 0xFFFFFF, rotate=0)
      
      label0.setText(str(Ultrasonic_0.distance))
      label1.setText(str(Ultrasonic_1.distance))
      

      Edit: I just thrown in four additional I2C units (RFID, EXT.IO2, Gesture and 4 Relay), all connected to the PaHub and everything still works fine for me.

      Thanks
      Felix

      posted in Units
      felmue
    • RE: Changing from Wifi to NB-Iot using a U111 Module

      Hello @GAZZZ6

      I didn't realize you are looking for an UIFlow solution.

      UIFlow has a configuration flag which allows to connect via modem instead of WiFi. However that option only seems to be implemented for M5Stack devices with can stack COM.X modules.

      0_1693840640787_UIFlowConfigCOMX_20230904.png

      I've tried to enable that option for M5Station, but it is ignored and the connection goes through WiFi still.

      Thanks
      Felix

      posted in General
      felmue
    • RE: Changing from Wifi to NB-Iot using a U111 Module

      Hello @GAZZZ6

      I don't see NB-IoT (SIM7020) as supported on the Blynk website. See here - Arduino connection types - Cellular (GSM/3G/LTE).

      Also the Blynk code templates use TinyGSM which also doesn't support SIM7020 (yet).

      Maybe consider a modem that already is supported by Blynk?

      Thanks
      Felix

      posted in General
      felmue
    • RE: Power Supply of COM.LTE (SIM7600)

      Hello @DanK

      well, there is another difference. The one I have is a SIM7600G (which is only CAT1) whereas it seems the shop now sells SIM7600G -H. The H actually makes it a CAT4 device (as advertised). See my post here.

      BTW: mine had very poor reception until I realized the antenna cable was connected to the GPS connector by mistake. My post at the time.

      Thanks
      Felix

      posted in Modules
      felmue
    • RE: Power Supply of COM.LTE (SIM7600)

      Hello @DanK

      interesting. My COM.LTE board looks like this one.

      0_1693715613975_SIM7600G_GreenBoard.png

      No AMS1117 on that board.

      Thanks
      Felix

      posted in Modules
      felmue
    • RE: Power Supply of COM.LTE (SIM7600)

      Hello @DanK

      where on the board did you find the AMS1117? Does it have a different marking on its case?

      Thanks
      Felix

      posted in Modules
      felmue
    • RE: Power Supply of COM.LTE (SIM7600)

      Hello @DanK

      you are correct that the SIM7600 expects a power supply voltage between 3.4 V and 4.2 V.

      However the modem is powered via P1/1,2 which is between 5 V and 12 V. (The actual voltage depends on the dip switch setting; whether external power is applied or not and if not which M5Stack device used.)

      Then on the green board there is another DC/DC converter (not in the schematic) which creates the necessary voltage for the SIM7600.

      BTW: P3/3 is to turn the modem on (e.g. power key).

      Without external DC power the modem gets powered from the M5Stack device (via 5 V on the M-BUS) stacked to it. Depending on the M5Stack device the voltage / current might not be enough.

      I suggest you try to power the modem via external DC power.

      Thanks
      Felix

      posted in Modules
      felmue
    • RE: PbHub + 2-Relay Units - only 1 relay channel working?

      Hello @emsea22

      which version PbHub are you using? v1.0 U041 or v1.1 U041-B?

      I think only version v1.1 can both pins have set to outputs on all channels. The original PbHub has its IN pins for CH4 and CH5 connected to ADC inputs of the Mega328 which I guess means they can only be inputs.

      Have you tried a different channel, e.g. CH0?

      Thanks
      Felix

      posted in Units
      felmue
    • RE: M5 Tough UART Communication

      Hello @samkhan2050

      it is hard to tell what is going on as I do not have this sensor and I cannot test myself.

      Yes, I think it is possible that the sensor is waiting for the INIT command before doing / sending anything.

      I also noticed that the Micropython code you posted doesn't seem to match the posted UIFlow blocks. In the Micropython code I can see two UART init lines, both not using the correct RX and TX pins.

      uart2 = UART(2, baudrate=115200, bits=8, parity=None, stop=1, tx=9, rx=10, rts=-1, cts=-1, txbuf=256, rxbuf=256, timeout=0, timeout_char=0, invert=0, flow=0)
      
      uart2.init(baudrate=115200, bits=8, parity=0, stop=1, tx=32, rx=33, rts=-1, cts=-1, txbuf=256, rxbuf=256, timeout=0, timeout_char=0, invert=0, flow=0)
      

      Thanks
      Felix

      posted in General
      felmue
    • RE: M5 Tough UART Communication

      Hello @Alee35

      hmm, looking at the datasheet for the eval board I cannot find any info about the voltage RX and TX are using. That said, my best guess is that since it is meant for the FTDI cable and the power supply requires 5 V you would still need a level shifter from 5 V of the eval board to the 3.3 V of the M5Tough.

      With only GND and 5 V supplied to the eval board you should be able to measure the voltage of the TX pin. If it is different from 3.3 V you'll need a level shifter.

      Note: the M5Tough supplies 5 V on the groove connector, but the RX and TX lines are only 3.3 V as they are coming directly from the ESP32.

      Thanks
      Felix

      posted in General
      felmue