2

Author Topic: IR receiver problem  (Read 571 times)

0 Members and 1 Guest are viewing this topic.

Offline nanotechopolis_grTopic starter

  • Jr. Member
  • **
  • Posts: 20
  • Helpful? 1
IR receiver problem
« on: July 03, 2013, 01:58:29 PM »
hi guys!
i have an ir receiver(TSOP38238) and a sony remote control! my problem is that when i press one button it displays 3 times the same code, for example if i press 4 then it appears c10 its something wrong with the code or with the sony control?
                                                                                                 c10
                                                                                                 c10
code:
#include <IRremote.h>

int receiver = 7;

IRrecv irrecv(receiver);

decode_results results;

void setup()

{

  Serial.begin(9600);

  irrecv.enableIRIn();

}

void loop()

{

  if (irrecv.decode(&results))

  {

    Serial.println(results.value, HEX);

    irrecv.resume();

  }

}
"On the 29th of May, the last day of the siege, our Lord God decided, to the sorrow of the Greeks, that He was willing for the city to fall on this day into the hands of Mahomet Bey the Turk son of Mu

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,943
  • Helpful? 98
Re: IR receiver problem
« Reply #1 on: July 03, 2013, 07:34:24 PM »
No, remote control senders typically send the code multiple times for error checking.
Google "Sony remote controller decoding" for lots of info.

http://picprojects.org.uk/projects/sirc/sonysirc.jpg

Offline nanotechopolis_grTopic starter

  • Jr. Member
  • **
  • Posts: 20
  • Helpful? 1
Re: IR receiver problem
« Reply #2 on: July 04, 2013, 01:04:29 AM »
thanks  :)
"On the 29th of May, the last day of the siege, our Lord God decided, to the sorrow of the Greeks, that He was willing for the city to fall on this day into the hands of Mahomet Bey the Turk son of Mu

 


Get Your Ad Here

data_list