• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
M5Stack Community
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

IR LED

M5 Stick/StickC
4
7
10.5k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X
    xis
    last edited by Apr 25, 2020, 8:46 AM

    Hello,
    How can I control the IR LED from UI Flow?
    Thanks

    1 Reply Last reply Reply Quote 0
    • R
      robalstona
      last edited by robalstona Apr 25, 2020, 7:41 PM Apr 25, 2020, 11:40 AM

      By default, there are no blocks that support sending remote control codes if that's what you mean. You can only turn on or off the builtin IR LED using the blocks from the section:

      Advanced -> Easy I/O -> digital write / digital toogle

      If you would like to send remote control codes, you would have to manually turn the diode on and off with a given switching on time and a given sequence of switching on and off manually. In mstickC there is only an IR sending diode, if you want to receive an IR signal you must attach external elements of type TSOP1738 or Infrared receiver LED

      1 Reply Last reply Reply Quote 0
      • X
        xis
        last edited by Apr 25, 2020, 2:22 PM

        Thank you very much.

        1 Reply Last reply Reply Quote 0
        • L
          lukasmaximus
          last edited by Apr 27, 2020, 12:42 PM

          You can also consider the RMT module in micropython modules of the latest firmware 1.5.0

          1 Reply Last reply Reply Quote 0
          • T
            tntrtr
            last edited by May 7, 2020, 11:54 PM

            Hello. I updated the firmware to 1.5.0 but i cant find any source or any kind regarding the RMT module on uiflow and the codes i find on the internet are not working. i cant understand why you sell a unit when you dont fully support it on your software.

            1 Reply Last reply Reply Quote 0
            • L
              lukasmaximus
              last edited by May 8, 2020, 1:50 AM

              It is quite well documented for esp32 devices using arduino, see this video I made https://www.youtube.com/watch?v=V8rmir-Tmy8 You can find the RMT module within the machine module. Since IR requires accurate pulse control and the RMT module which does this was only just released in the latest version of micropython you'll have to be patient as uiflow is based on micropython we can only go as fast as the developers of micropython. I agree on your point for some of M5Stack devices, but with a hobbyist product generally a little user ingenuity is required. I have been researching the RMT module and will be sure to make a video on it once I'm succesfully able to use it

              1 Reply Last reply Reply Quote 2
              • T
                tntrtr
                last edited by May 8, 2020, 8:38 AM

                I understand and thanks for your time, i used to program in arduino and i liked how ui flow is and was wondering why there is no code for it.

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post