Jump to content

Recommended Posts

  • 4 months later...

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.

Link to post
Share on other sites

You need to modify IRremote.cpp under "\hardware\msp430\libraries\IRremote".


Comment these lines :


// 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

Link to post
Share on other sites

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.. 




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.




Link to post
Share on other sites

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  ;-)

Link to post
Share on other sites
  • 2 months later...

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);
    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
I find root cause, must disable P2.3 Timer output function.
P2SEL &=~BIT3;
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...