Code: Select all
analogWrite()Alam ko kayang i-manipulate yung AVR timer registers directly —
Code: Select all
TCCR0BCode: Select all
TCCR1BCode: Select all
TCCR2BCode: Select all
delay()Code: Select all
millis()Plan ko ngayon: gamitin yung Timer 1 (pins 9 + 10) for motor PWM, leave Timer 0 alone. Pero mawawala na yung
Code: Select all
analogWrite()May nakapag-try na ba nito sa sumo or line-follower? Mainly:
- Did the higher PWM frequency actually improve motor smoothness, or placebo lang?
- Any L298N gotchas? Baka nga hindi ito tumatanggap ng PWM above 10kHz nang maayos.
- Mas okay ba mag-Mega na lang for the dedicated timer pins?