CptSky 0 Posted May 13, 2018 Share Posted May 13, 2018 Hello, I'm using IRremote library and IRrecvDemo is working perfectly, however IRsendDemo is not working. I've commented out these lines in IRremote.cpp //pinMode(TIMER_PWM_PIN, OUTPUT); //digitalWrite(TIMER_PWM_PIN, LOW); // When not sending PWM, we want it low and removed the if (Serial.read() != -1) condition, but it is still not working. Do you have any idea what might be the problem? Thanks. Quote Link to post Share on other sites
terjeio 134 Posted May 14, 2018 Share Posted May 14, 2018 Protocol mismatch? Wrong modulation frequency? Hardware problem? Use a mobile phone camera to see if there is any activity out of the IR diode, assuming you are using one for transmission. Quote Link to post Share on other sites
CptSky 0 Posted May 14, 2018 Author Share Posted May 14, 2018 5 hours ago, terjeio said: Protocol mismatch? Wrong modulation frequency? Hardware problem? Use a mobile phone camera to see if there is any activity out of the IR diode, assuming you are using one for transmission. There is no output at pin P2_3, that’s the problem. Literally nothing happens. I debugged it and it enters the for loop but sends nothing. Quote Link to post Share on other sites
Fmilburn 445 Posted May 15, 2018 Share Posted May 15, 2018 Hi @CptSky You haven't provided much information - no code really, no information on the microcontroller, the pins used and how they are connected, etc. If you have commented out code as described in your first post then of course there will be no output if TIMER_PWM_PIN is P2_3. //pinMode(TIMER_PWM_PIN, OUTPUT); //digitalWrite(TIMER_PWM_PIN, LOW); // When not sending PWM, we want it low I don't think it is possible to give meaningful help without more information. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.