Navigation

    M5Stack Community

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

    Topics created by pattiuak

    • P

      want to power off m5stickC from code
      Arduino • • pattiuak

      6
      0
      Votes
      6
      Posts
      9761
      Views

      T

      In case anyone else is looking for the real PowerOff (and NOT deep sleep or any other sleep method), the command to use is M5.Axp.PowerOff(); (mind the capitals) After this command you have to power your M5Stick manually by pressing the power button, but it works as a charm.
    • P

      Get Y ACC was swap with Get Z ACC ini V 1.1.2
      Bug Report • • pattiuak

      1
      0
      Votes
      1
      Posts
      2981
      Views

      No one has replied

    • P

      How to read Standard RC signal
      Lessons and Guides • • pattiuak

      8
      0
      Votes
      8
      Posts
      10987
      Views

      H

      Method 1: As far as I know the pulse goes from 1ms to 2ms (1.5ms is middle position). It should be possible to "analogify" or mathematically say "integrate" the PWM signal using a R-C combination on the input pin and read the voltage from this. But the voltage level will be low due the duty cycle which goes from approx. 1:20 (1ms/20ms) to 1:10 (2ms/20ms). From 5V full scale you read 0.25V to 0.5V. You may add an analog OPAMP amplify it to 5V. This method will slow down the reaction time a little bit Method 2: Before doing the Method 1 it may be less effort to write it in Arduino and use either a PWM read library or use a interrupt to measure the pulse width. You can also read the low time to determine if the input signal is valid or not eg. to detect signal loss. Method 3: This is the simple but ugly workaround! Add a small Servo to your signal and drive a potentiometer which ist then read by the M5 analog input.
    • P

      Sharing Code for RC Servo tester
      PROJECTS • • pattiuak

      7
      1
      Votes
      7
      Posts
      10680
      Views

      @pattiuak said in Sharing Code for RC Servo tester: @ajb2k3 I don't mind. Please do it. Thank you Very Much!