misterhay 0 Posted September 5, 2012 Share Posted September 5, 2012 Has anyone been able to get the IRsend demo (or anything else related to IRremote) to compile in Energia? Quote Link to post Share on other sites
energia 484 Posted September 5, 2012 Share Posted September 5, 2012 IRremote library with all it's examples is included in Energia 0101E0008. The receive examples have been tested and should work for you. Due to lack of test hardware we were not able to test the send demo's. Quote Link to post Share on other sites
bluehash 1,581 Posted September 5, 2012 Share Posted September 5, 2012 Is there anything in particular that you would like to test it with.. I can send that over provided it is under $10. Quote Link to post Share on other sites
GeekDoc 226 Posted September 6, 2012 Share Posted September 6, 2012 I have some IR stuff in my parts bin as well. List what you need and it will probably get filled pretty quickly. Quote Link to post Share on other sites
energia 484 Posted September 6, 2012 Share Posted September 6, 2012 Thanks for the offer guys. Really appreciate it! I won't be able to get to it for a while though due to work on FraunchPad support. Hopefully somebody in the community will test it and let us know if there are any issues with it. Quote Link to post Share on other sites
pivden 6 Posted January 26, 2013 Share Posted January 26, 2013 IRsendDemo working example (energia-0101E0009)? IR LED connected to P2.3 but nothing happens :? IRrecvDump - works without problems (via TSOP4836) MCU - g2553 Quote Link to post Share on other sites
sarvinen 0 Posted January 27, 2013 Share Posted January 27, 2013 http://forum.43oh.com/topic/3266-irremote-library-does-not-work/ Any ideas, what is wrong? Quote Link to post Share on other sites
joshferns 0 Posted January 30, 2013 Share Posted January 30, 2013 hi has anyone had any luck with the IRsend demo?i am getting an output at pin 1.2, but no data is being sent, and nothing happens at pin2.3(which pin should the output be connected to?). i am using 2 launchpads, the IRrecv demo works fine.ran the IRsend demo on an arduino and it works fine there. Quote Link to post Share on other sites
PowerX 2 Posted February 2, 2013 Share Posted February 2, 2013 You need to modify IRremote.cpp under "\hardware\msp430\libraries\IRremote". After the TIMER_PIN_SELECT(); Comment these lines : // pinMode(TIMER_PWM_PIN, OUTPUT);// digitalWrite(TIMER_PWM_PIN, LOW); // When not sending PWM, we want it low The pin output is P2_3. For the demo you need to send something on serial to transmit. PS: Tested and working IRrecv and IRsend with 2xmsp430g2553. Hope it helps, Have fun joshferns and pivden 2 Quote Link to post Share on other sites
joshferns 0 Posted February 4, 2013 Share Posted February 4, 2013 thanks a lot PowerX.. works perfectly... Quote Link to post Share on other sites
joshferns 0 Posted February 4, 2013 Share Posted February 4, 2013 just wanted to know if it is possible to send and receive at the same time. ie.. use the IRremote library for transmitter-receiver pair on the same launchpad so that it can detect its own signals. possible application would be obstacle detection.. thanks Quote Link to post Share on other sites
PowerX 2 Posted February 5, 2013 Share Posted February 5, 2013 just wanted to know if it is possible to send and receive at the same time. ie.. use the IRremote library for transmitter-receiver pair on the same launchpad so that it can detect its own signals. possible application would be obstacle detection.. thanks I don`t exactly understand your question but you can make a transceiver between 2 microcontrollers. I dont know why would you want to transmit and receive at the same time data on the same uC it is like if (1==1) loop, if you want to use ir for sensing you can use adc ex: a photoresistor or phototransistor and a ir led. Regards, Mihai Quote Link to post Share on other sites
pivden 6 Posted February 5, 2013 Share Posted February 5, 2013 I dont know why would you want to transmit and receive at the same time data on the same uC it is like if (1==1) loop there are many tasks where it is needed, such as learning remote control, IR extender, RX/TX data via IR etc. I also did not work at the same time send and receive (because Send and Receive both share the same timer). P.S. for testing IR I'm using PDA with Irda and software NR DELUX - highly recommend! and a mobile phone with a camera of course ;-) Quote Link to post Share on other sites
deen 0 Posted April 15, 2013 Share Posted April 15, 2013 hi all : I try to modify the main loop to make send and receive function, but why i send any data from UART?the P2.3 will make 9.8kHz frequence? void loop() { if (irrecv.decode(&results)) { Serial.println(results.value, HEX); dump(&results); irrecv.resume(); // Receive the next value } else if(Serial.read() != -1) { for (int i = 0; i < 3; i++) { irsend.sendSony(0xa90, 12); // Sony TV power code delay(100); } irrecv.enableIRIn(); } } I find root cause, must disable P2.3 Timer output function. P2SEL &=~BIT3; Quote Link to post Share on other sites
misterhay 0 Posted April 18, 2013 Author Share Posted April 18, 2013 After a long hiatus I came back to it and it worked. I realized that that the issues was probably that I was trying to compile for the 2231 and running out of space. My code is at https://github.com/misterhay/IR-Power-Buttons-for-Projectors/blob/master/TBC_Projector_Remotes/TBC_Projector_Remotes.ino if anyone is interested. 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.