Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: PWM Control of Brightness for TI TPS61165

  1. #1
    Junior Member
    Join Date
    Jan 2021

    PWM Control of Brightness for TI TPS61165

    I have a Newhaven display that uses a TI TPS61165 driver ( I am trying to control the brightness with a teensy 3.2. According to the documentation for the TPS61165 a PWM signal can be used to control the display brightness ( The description of pwm control starts on page 12 of the datasheet. The PWM frequency should be between 5 and 100 kHz according to those docs.

    So far I have only been able to get the display to either be full brightness or not on at all. I've tried several frequencies and resolution settings with no difference in behavior. Here is the latest code that I've tried:

    analogWriteFrequency(DISPLAY_PWM_PIN, 35156.25f);
    analogWrite(DISPLAY_PWM_PIN, 1024);
    DISPLAY_PWM_PIN is pin 5. This results in the display at full brightness, as soon as I call analogWrite with any value lower than 1024 (or lower than 256 when resolution set to 8) the display completely turns off. If I then call analogWrite with 1024 again the display comes back on at full brightness. This looks fairly straight forward so I'm not certain where I could be going wrong. Any ideas?

    For completeness the display is connected via HDMI to a raspberry pi 4. The full project code is c++ using platformio.


  2. #2
    Junior Member
    Join Date
    Jan 2021
    I found a thread on the Newhaven display forums that seems to imply that this is an issue for arduino in general for some reason with these display:

    Going to reach out to Newhaven to see if they have any direction.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts