Arduino PWM Pins 3 And 11 Are Not Working While Using Timer1

Arduino PWM pins 3 and 11 are not working while using Timer1 Projects Programming February 27, 2016, 12:07am 1

Hi guys,

I have been working on a project in which I need to use Timer1 interrupt and as well as PWM pins 3 and 11 for controlling the steering and the speed of my car. It seems that when I use Timer 1 pins 3 and 11 stop working. Please can anyone guide me through where am I going wrong?

February 27, 2016, 12:10am 2

PWM uses timers. When you take a timer out of the pool, PWM capabilities on two pins goes away.

Use a different timer, if you must use pins 3 and 11 for PWM.

February 27, 2016, 12:20am 3

Hi, Thank you for your response. I am confused. So if we use timer 1 on Arduino Uno it breaks the AnalogWrite() on pins 9 and 10. And as you say it might be using pins 3 and 11 as well. Hence does that mean I can use only pins 5 and 6 for controlling the servos?

February 27, 2016, 12:32am 4

Hi, I tried using pins 5 and 6 as well but it seems that when I initialise Timer1 and attach Timer1 interrupt none of the PWM seems to be working. I am using the servo library to control the motors. Hence I am unable to control the steering and speed from any of the PWM pins if I use Timer 1. Please help

February 27, 2016, 12:44am 5

I guess I found the solution. Timer 1 is reserved for Servo library hence if I try to use it separately the servo library doesnt work on any pwm pin. Please correct me if I am wrong.

Topic Replies Views Activity
Problema con PWM y timer Software 3 821 May 7, 2021
Issue with PWM not working correctly on certain pins IDE 1.x 4 5311 May 5, 2021
Timer issues to control PWM pins LEDs and Multiplexing 3 107 February 7, 2025
Pins 3, 9, 10 y 11 are disabled if you use Timer 1 and 2 (Not PWM)? Programming 9 3414 May 5, 2021
PWMServo support (PWM at 50Hz) UNO R4 WiFi 2 1440 June 7, 2024
Unfortunately, your browser is unsupported. Please switch to a supported browser to view rich content, log in and reply.

Tag » Arduino Timer1 Pwm Pins