B4R Library IR send and receive

rIRremote (Arduino) is based on IRremote open source project: https://github.com/z3t0/Arduino-IRremote
rIRremoteESP8266 (ESP8266) is based on IRremoteESP8266 open source project: https://github.com/markszabo/IRremoteESP8266

These libraries allow receiving IR signals with a IR receiver module and transmitting signals with an IR led.

The two libraries are mostly identical.

Receiving signals:
B4X:
Sub Process_Globals
   Public Serial1 As Serial
   Private ir As IrReceive
End Sub

Private Sub AppStart
   Serial1.Initialize(115200)
   Log("AppStart")
   ir.Initialize(6, "ir_Decoded") 'receiver is connected to pin 6, GND and 5v (or 3.3v on ESP8266)
   ir.Enable
End Sub


Private Sub ir_Decoded (Result As IrResult)
   Log("result: ", Result.DecodeType, ", ", Result.Value)
End Sub

Sending signals:
B4X:
Sub Process_Globals
   Public Serial1 As Serial
   Private irsend As IrSend
   Private timer1 As Timer
End Sub

Private Sub AppStart
   Serial1.Initialize(115200)
   Log("AppStart")
   irsend.Enable(38) 'frequency = 38khz
   timer1.Initialize("timer1_Tick", 500)
   timer1.Enabled = True
End Sub

Sub Timer1_Tick
   Dim m As UInt = Bit.And(Millis, 0xfff) 'get 12 bits
   Log("sending: ", m)
   irsend.SendRC5(m, 12)
End Sub

On ESP8266 the Enable method includes another parameter for the pin number.
On Arduino the pin is set in the library:
Arduino Mega 9 and 3 on other Arduino models.

The transmitting led should be connected with a 100 ohm resistor.

I'm not sure why, but in my tests the transmitting led range was very short (a few centimeters).
 

Attachments

  • rIRremote.zip
    98.6 KB · Views: 582
Last edited:
D

Deleted member 103

Guest
Incredibly, yesterday you spoke of it and today the library is already finished. o_O
 

woniol

Active Member
Licensed User
Longtime User
Hi,
what kind of IRReceiver should be used with this lib.
Was it tested with ESP8266 ?
Is the pin number in Initialize simply 6 or pin.D6, when receiver output is connected to physical pin 6?
B4X:
ir.Initialize(6, "ir_Decoded") 'receiver is connected to pin 6, GND and 5v (or 3.3v on ESP8266)
 
Last edited:

derez

Expert
Licensed User
Longtime User
I don't understand. I have successfully decoded a remote signal - NEC (1) with value 551489775.
Now I want to send it by the ESP instead of the remote. How do I tell the application what to send ? I use sendNEC but what is m built of ?

I have another remote (the AC control !) which gives an unknown result and the values are inconsistent, so it needs a raw data to be logged and then sent. How can I do that ?

I'm not sure why, but in my tests the transmitting led range was very short (a few centimeters).
Try to point the top of the led to the appliance.
 
Last edited:

woniol

Active Member
Licensed User
Longtime User
Can you show the schematics you used to connect the IRReceiver to ESP?
 

derez

Expert
Licensed User
Longtime User
Very simple. I use a tsop1736 as the IR sensor.
upload_2016-9-15_13-56-11.png


The central pin (+) goes to 3.3v of the ESP, the pin close to it is GND (-) and goes to G on the ESP, the signal pin (>) goes to any pin, I chose pin 6 and it is initialised like this: ir.Initialize(d1.D6, "ir_Decoded")
 

GanjaKyp

Active Member
Licensed User
Can this library work with YS-IRTM? https://forum.arduino.cc/index.php?topic=359707.msg2861077#msg2861077

http://data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxIQEhMSEhMWFhUXFRcYGRgYERgYFhgYFxgWFhcVFxMaHyghGR0lGxgYITEiJSotLi4uGB8zODMuNygwLisBCgoKDg0OGxAQGy0iHyUtLS0uLS4tLS0rKy0tLS0rLSsuNy0tLS0vLy0tKy0tLy0tLSstLS0tLS0tLS0tLSstN//AABEIAOEA4QMBIgACEQEDEQH/xAAcAAEAAgMBAQEAAAAAAAAAAAAABQYDBAcCAQj/xABAEAACAQIEAwUFBgMGBwEAAAABAgADEQQSITEFIkEGE1FhcTJCgZGhFCNSYrHBBzPhQ2NysvDxFXOCkqLC0Rb/xAAYAQEAAwEAAAAAAAAAAAAAAAAAAQIDBP/EACYRAQEAAgICAQQBBQAAAAAAAAABAhEDIRIxQRMiUWEEMlJxscH/2gAMAwEAAhEDEQA/AO4xEQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEjsRxampKqQ7DcAjQ+BPQ+W8kCZyvgNVWN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WX0Z8rFwHs8xUXXu09BnPko90eZ/rLdhcMlJQqKAB4fqT1MzxM20miIiEkREBERAREQEREBERAREQEREBERAREQEREDW4hhBWpvSYkB1Km2+vUSN7McE+x0WpFsxao73tbRth8h87ybnyRr5HO/4WH73Fjyon6PIfivZ+njuJ1sPVLKHNVgynUMAGBsdD6TpPDOB0cNUq1KQINXLcdAF2CjpuTKdSQrx0aaE1LfGgG/W8z1ZJ/lbe3MeP9hsTg8VToko9yuVwbAhmyi6nUG42nZuwfYtOHU7s2eswszC4UC/sqPlc9ZDfxGW2Kwp/5f0qk/vOjS8u7Ua6IiJZBERAREQEREBERAREQEREBERAREQEREBERAREQEREBMTYdS4fKMwBAa3MAbEgHw0HymWIFF/iFw6rUq4Z6aMwuqnKL2OcEXHQWvrtL0J8tPsiTV2nZERJQREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQERED/9k=
nzzmom.jpg
 

Adamdam

Active Member
Licensed User
Hi,
I run the receiver, it seem work well.
The receiver log these data with applying certain remote:
Result: 3, 542988455
Result: 3, 4294967295
Result: 3, 542994575
Result: 3, 543014975
Result: 3, 542982335
Result: 3, 4294967295

How can i send these data again via transmitter code ?? ( the "4294967295" is repeater code )
also, for return data of "Result.DecodeType" (3 in this example ) , where the table remote name related to number returned ??

Best regards
 

Adamdam

Active Member
Licensed User
Many Thanks Mr. Erel.
I run the code for receiver to get the codes for different remote control.

The receiver return the following:

'Remote of Satellite Receiver
'Result: 3, 542988455
'Result: 3, 542994575
'Result: 3, 543014975
'Result: 3, 542982335
'Result: 3, 4294967295

'Remote of TVBox
'result: 3, 867715255
'result: 3, 867698935
'result: 3, 4294967295

I send the codes like :
m = 867715255 'm = 867698935
irsend.SendNEC (m, 32)

The transmitter work wit with TVBox,
while not work with any code with TV (i.e. make m = 542988455, or m = 542994575 )

I have questions:
- it is normal of both remotes are NEC and one of them work and other not work ?
- how can the code of the second remote work ?
- need program for Un-known remote.

best regards
 

GanjaKyp

Active Member
Licensed User
Can this library work with YS-IRTM? https://forum.arduino.cc/index.php?topic=359707.msg2861077#msg2861077

http://data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxIQEhMSEhMWFhUXFRcYGRgYERgYFhgYFxgWFhcVFxMaHyghGR0lGxgYITEiJSotLi4uGB8zODMuNygwLisBCgoKDg0OGxAQGy0iHyUtLS0uLS4tLS0rKy0tLS0rLSsuNy0tLS0vLy0tKy0tLy0tLSstLS0tLS0tLS0tLSstN//AABEIAOEA4QMBIgACEQEDEQH/xAAcAAEAAgMBAQEAAAAAAAAAAAAABQYDBAcCAQj/xABAEAACAQIEAwUFBgMGBwEAAAABAgADEQQSITEFIkEGE1FhcTJCgZGhFCNSYrHBBzPhQ2NysvDxFXOCkqLC0Rb/xAAYAQEAAwEAAAAAAAAAAAAAAAAAAQIDBP/EACYRAQEAAgICAQQBBQAAAAAAAAABAhEDIRIxQRMiUWEEMlJxscH/2gAMAwEAAhEDEQA/AO4xEQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEjsRxampKqQ7DcAjQ+BPQ+W8kCZyvgNVWNYte71qzAjpdyt/A6KPlIou6cXqBuYLby0t8eslsLi1qbHXwO8qaVTseYeGzfLr8NfKZaVUHVT19CD+0jYt8SuDtEtEffsAOhvzelupk/QrK6hlNwwBB8jJlGSIiSEREBERAREQEREBERAREQEREBERAREQEREBERAwY6rkp1GPRGPyBM5Jw6y015irhF2F7kjMRf4zpfajFGnh3sFJYFeYXXUHdbi4nL0dswDWCknXpa9gCR0v8ArIqKmaHEhoCfG9+hJv8ALeeuI8fNNLoozOy0lY3I53Clyo9qwBNvqJD0atiNM2Y2ykHrvY9em0w49s9TCU+nfO1vJEcj/wAivzlPlLewWGQMWLtUe5BqN7Wm4A2QeS+V7zqXC6W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dS4fKMwBAa3MAbEgHw0HymWIFF/iFw6rUq4Z6aMwuqnKL2OcEXHQWvrtL0J8tPsiTV2nZERJQREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQEREBERAREQERED/9k=
nzzmom.jpg
Can anybody help to test it? It has Tx and Rx pins, how to read and write with this pins?
 

Hypnos

Active Member
Licensed User
Longtime User
Hi All,

I use this IR Transmitter (show on the photo), what arduino pin I should connect for the DAT?
Thanks!

IMG_7916.JPG
 

santook

Member
GanjaKyp
Your module is a microcontroller module, it provides infrared decoding ability, and use the serial communication module, you should consult the manufacturer to determine the serial communication protocol, and communication is performed using Serial, it connects 0 and 1 pin Arduino (RXD, TXD), and they need to cross connect.
Using the library provided on this page allows you to directly drive infrared emitting and receiving diodes, so that the cost is lower, but also simpler.
 

Beja

Expert
Licensed User
Longtime User
Hi guys,
Any completed sch example for the above rich information?

Thanks in advance
 

Hypnos

Active Member
Licensed User
Longtime User
Hi,

Anyone tried to use this library send to JVC TV? I use the following command but the TV never response. Thanks!

irsend.SendJVC(49384,16,False)
 
Top