Navigation

    M5Stack Community

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

    frank26080115

    @frank26080115

    0
    Reputation
    11
    Posts
    699
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    frank26080115 Follow

    Posts made by frank26080115

    • RE: You guys put the wrong threads in M5-StickT, you put M6, not 1/4"-20

      And while you guys fix the nylon 3D printed case design, please also add holes for the infrared emitter.

      I see the IR emitter LED on the PCB but there's no holes on the case to let the light out.

      And if you are wondering, yes, I do need it.

      It would be helpful if you guys posted a file type better than STL so I can actually edit the 3D model myself. Like STEP or IGES.

      posted in PRODUCTS
      F
      frank26080115
    • RE: You guys put the wrong threads in M5-StickT, you put M6, not 1/4"-20

      I opened it up, it's not a threaded insert, it's a plain M6 hex nut inside in a rectangular recess.

      Man this is annoying... a normal sized 1/4"-20 nut is like a hair too big (actually about 2mm too big) for the original rectangular recess, I have to bench grind it down to the right size before putting it back in.

      Can you guys (M5Stack staff) redesign the nylon case for the correct nut and send me a new case? Just the nylon 3D printed case is needed. I'm not asking for a $500 product exchange, just a new nylon 3D printed case.

      posted in PRODUCTS
      F
      frank26080115
    • You guys put the wrong threads in M5-StickT, you put M6, not 1/4"-20

      My M5-StickT came with the wrong threaded insert, it doesn't fit 1/4"-20, making it impossible to mount on top of a camera. The threads matched M6 screws.

      posted in PRODUCTS
      F
      frank26080115
    • What is this card you mailed me?

      0_1662153018038_20220902_140804.jpg

      This card came in my last order. Does this card do anything? Is it RFID?

      posted in PRODUCTS
      F
      frank26080115
    • WebP image decoder

      It'd be cool to have a decoder for WebP images, written in C++, for the LCD screen on the M5Stack and M5Stick, the PNG one is nice but in some instances WebP can achieve a better compression for raster images.

      Thanks

      posted in Features Wish List
      F
      frank26080115
    • M5StickC-Plus MPU6886 cannot report upside-down pitch, only between 0 to 90

      I'm using the M5StickC-Plus with the Arduino library provided at https://github.com/m5stack/M5StickC-Plus

      Specifically, tested using https://github.com/m5stack/M5StickC-Plus/blob/master/examples/Basics/IMU/IMU.ino and my own application is using the same function calls, the most important one being M5.IMU.getAhrsData(&pitch, &roll, &yaw);

      The problem is the pitch angle reported with the function does not ever go upside-down, it goes from 0 to 90 deg and then back to 0 again as the device is being rotated continuously.

      I need the value to go from 0 to 90 to 180, then -180, then -90 then 0, during a full rotation on the pitch axis.

      How can I accomplish this?

      Thanks

      posted in PRODUCTS
      F
      frank26080115
    • IR LED seems to be always on, even freshly after a reboot

      I am using UIFlow v1.9.7

      This is weird. Point your phone's camera at the IR LED of a M5Stick or M5Stack that has the IR LED. Even just after a reboot, it seems to be glowing.

      I cannot use the built-in "ir" object because it implements NEC protocol, which is not what I need. I need to generate a 40KHz pulse train for SIRC protocol

      Taking manual control over the LED by deinitializing the RMT, I can turn off the pin using machine.Pin

      But after reinitializing RMT module, the LED starts to glow again.

      I am trying code that looks like

      >>> rmt.loop(True)
      >>> rmt.write_pulses([1, 100000], start=0) # this should make the LED dim
      

      and

      >>> rmt.loop(True)
      >>> rmt.write_pulses([1, 100000], start=1) # this should make the LED bright
      

      The weird thing is that one of these should make the LED appear off, or at least dim. The opposite snippet should make the LED appear very bright. This is not the case. I see no change in brightness

      What am I doing wrong?

      Has anybody successfully used the IR LED for anything? The MicroPython version implemented in UIFlow is extremely old and won't match the latest documentation, the best documentation is actually this particular commit in the official ESP32 port of MicroPython https://github.com/micropython/micropython/blob/1678f417445703750e187b1b8a83c8c3e0e3796f/ports/esp32/esp32_rmt.c

      oh and in case anybody needs to know, to deinitialize the RMT because you can't use the settings M5Stack is forcing upon you, I'm using this

              try:
                  ir.__dict__['_tx_encode']._rmt.deinit()
                  del ir.__dict__['_tx_encode']._rmt
                  del ir
              except:
                  pass
      
      posted in General
      F
      frank26080115
    • esp32.RMT constructor example is not accepting the tx_carrier parameter

      Look at the example code here https://docs.micropython.org/en/latest/library/esp32.html?highlight=rmt

      Specifically the line

      r = esp32.RMT(0, pin=Pin(18), clock_div=8, tx_carrier=(38000, 50, 1))
      

      it throws an exception

      TypeError: extra keyword arguments given
      

      removing the parameter tx_carrier will stop the exception, but I need it to have a 38KHz carrier frequency, that's the whole point of the IR LED

      How do I make the m5stick send out pulses with a 38KHz carrier frequency?

      Thanks

      PS yes I know it's pin 9 on m5stick

      PS I would say what micropython version I'm running but it's reporting as "798485f45-dirty"

      posted in Micropython
      F
      frank26080115
    • RE: How to see print() output and REPL from VSCode?

      Currently my solution is that I wrote software that tunnels data between a virtual serial port and a real one, while displaying it to me. It uses com0com to setup the fake serial port.

      Basically, m5stick is COM4, com0com is configured with fake COM6 and COM7. COM6 is connected to COM4 via my app and I can see the text in between them and inject keystroke too. VSCode talks with COM7 and all of the data from COM7 goes to COM6, to my screen, then to COM4

      I also coded it so if I hit ESC, it sends the CTRL-C signal to the terminal so it brings up REPL. (pressing CTRL-C will quit the whole terminal lol)

      This solution still sucks, exceptions are still printed to the LCD instead of to the COM port

      posted in Micropython
      F
      frank26080115
    • RE: How to see print() output and REPL from VSCode?

      @robalstona said in How to see print() output and REPL from VSCode?:

      Try this extension
      https://marketplace.visualstudio.com/items?itemName=curdeveryday.vscode-m5stack-mpy

      Thanks I have already installed that. Where in that extension can you see serial port print output while simultaneously being able to access the files?

      posted in Micropython
      F
      frank26080115