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

Thread: Using analogWriteFrequency on Teensy 4.1 @ ~2 Hz or lower

  1. #1
    Junior Member
    Join Date
    May 2022
    Posts
    1

    Using analogWriteFrequency on Teensy 4.1 @ ~2 Hz or lower

    Hello All,
    I'm working on a project using the Teensy 4.1 and I want to use the analogWriteFrequency function to set the frequency to around 2 Hz. Will this cause any issues?
    I read on an earlier forum post that there might be issues regarding running the analogWriteFrequency function at a lower clock. I wasn't sure if this was relevant anymore because the post was from years ago. Will it also be able to run consistently at around 1Hz to 0.5 Hz?

    My best,
    Jonah

  2. #2
    Senior Member+ manitou's Avatar
    Join Date
    Jan 2013
    Posts
    2,699
    see discussion on "slow PWM" for Teensy 4 using XBAR
    https://forum.pjrc.com/threads/25164...l=1#post247337

  3. #3
    Senior Member
    Join Date
    Jan 2020
    Location
    Toronto, Canada
    Posts
    117
    Another choice is to use Teensy_Slow_PWM library

Posting Permissions

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