G
Reaction score
0

Latest activity Postings About

    • G
      Groover replied to the thread Strange PWM Output (4.0).
      Thanks! Will do. Andy
    • G
      Groover reacted to joepasquariello's post in the thread Strange PWM Output (4.0) with Like Like.
      When you do need a timer interrupt, use IntervalTimer instead of TimerOne. IntervalTimer uses Teensy's 4 x PIT (programmable interrupt timer), so it generally won't get in the way of what you're doing with other pins.
    • G
      Groover reacted to jmarsh's post in the thread Strange PWM Output (4.0) with Like Like.
      The TimerOne library uses the same PWM module that controls pin 7, it is stomping over the initial values that you setup.
    • G
      Groover replied to the thread Strange PWM Output (4.0).
      Yep, that was it! I've changed to elapsedMillis as suggested by @joepasquariello Thanks!
    • G
      Groover reacted to joepasquariello's post in the thread Strange PWM Output (4.0) with Like Like.
      I'm guessing you're new to Arduino, and if so, I'd like to point a couple of ways to simplify your program. All Arduino-compatible boards, including Teensy, have a built-in 1-ms timer that you can read via the function millis(), and you can use...
    • G
      Groover replied to the thread Strange PWM Output (4.0).
      4.0 #include <Arduino.h> #include <TimerOne.h> // GPIO pins #define REAR_DUMP_PWM 7 #define LED 13 #define PWM_FREQUENCY_HZ 120 // how often to toggle the LED #define LED_FLASH_PERIOD_MS 1000 static uint32_t Ticks = 0; static...
    • G
      Hi! Here is my code: #define REAR_DUMP_PWM 7 #define PWM_FREQUENCY_HZ 120 ... analogWriteFrequency(REAR_DUMP_PWM, PWM_FREQUENCY_HZ); analogWriteResolution(15); // 0 - 32767 analogWrite(REAR_DUMP_PWM, (int)(32767 * 0.50)); And here is what I...
      • Screenshot 2025-10-01 214709.png
  • Loading…
  • Loading…
Back
Top