Blogger

Delete comment from: Ken Shirriff's blog

Ema said...

I searched through the IRremote library and I founded this:
void IRsend::mark(int time) {
// Sends an IR mark for the specified number of microseconds.
// The mark output is modulated at the PWM frequency.
TIMER_ENABLE_PWM; // Enable pin 3 PWM output
delayMicroseconds(time);
}
/* Leave pin off for time (given in microseconds) */
void IRsend::space(int time) {
// Sends an IR space for the specified number of microseconds.
// A space is no output, so the PWM output is disabled.
TIMER_DISABLE_PWM; // Disable pin 3 PWM output
delayMicroseconds(time);
}

I took this code from IRremote.cpp
It looks like that some codes are disableing my pin 3PWM, and this is the Pin which I use for "go forward" . I guess that is why my robot doesn't go forward , because the Pin is disabled. Even I unncoment #define IR_USE_TIMER1 , I still can't use all my motors, unless i change the analogWrite with digitalWrite. But I need in my project the analogWrite.
How to change the file, to work properly?
Is there anything that I can change in the IRremote?

Mar 1, 2014, 1:18:02 PM


Posted to A Multi-Protocol Infrared Remote Library for the Arduino

Google apps
Main menu