Multiple timers problem
Posted: Wed Dec 11, 2013 5:39 pm
Hello,
I'm building a line-following robot that also avoids obstacles. So, I wanted to use an ultra-sound sensor mounted on a servomotor to check for the obstacles. However, i encountered a problem when trying to assign 4 timers: 1 for the motors TIM4 (pwm output), 1 for the servomotor (pwm output), and 2 for the ultra-sound sensor(icu and pwm output).
I couldn't get the timers 1,2 and 8 to work along with the timers 3,4 and 5.
Could someone please tell me if there is something that I missed because I'm really stuck...
Thank you in advance
I'm building a line-following robot that also avoids obstacles. So, I wanted to use an ultra-sound sensor mounted on a servomotor to check for the obstacles. However, i encountered a problem when trying to assign 4 timers: 1 for the motors TIM4 (pwm output), 1 for the servomotor (pwm output), and 2 for the ultra-sound sensor(icu and pwm output).
I couldn't get the timers 1,2 and 8 to work along with the timers 3,4 and 5.
Could someone please tell me if there is something that I missed because I'm really stuck...
Thank you in advance