🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Flashlight Module: How to use it with PWM

    PRODUCTS
    1
    1
    1.2k
    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.
    • S
      simoc
      last edited by

      Dear forum members,

      I hope this message finds you all well. Currently, I am working in a project that involves utilizing the M5Stack Timer Camera F within the ESP-IDF (Espressif IoT Development Framework) environment. As I progress with my project, I have encountered a problem regarding the functionality and proper usage of the FlashLight module, which operates through a 1-wire interface.

      I have looked at the example, but I was unable to reproduce the behavior in the ESP-IDF environment.

      Based on the documentation provided for the UNIT FlashLight module , it is mentioned that the module can be controlled using PWM (Pulse Width Modulation) techniques. I was able to use the flashlight using pwm on the "S" pin of the module. However, I have noticed that in practice, achieving smooth regulation of the light intensity is proving challenging. When attempting to use smaller values for duty cycles, the light fails to power on. Additionally, it appears that the module primarily functions reliably for higher duty cycles.

      I would greatly appreciate any insights, experiences, or suggestions you may have in addressing this matter. If anyone has successfully used the UNIT FlashLight module with the ESP-IDF environment and has overcome similar challenges, your input would be immensely helpful.

      Thank you in advance for your valuable time and support.

      Best regards,

      Simone

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