Good morning everyone,
I am trying to use the libraries mentioned in this link for an infrared project :
Here is my schematic and connections and my code follows:
My problem as described in the title is that I cannot decode the signal - I get nothing. The receiver is a IR receiver LED and BLACK (not as seen in the picture grey). If I add a Looper to show the state of d0 pin (f.e.
I am trying to use the libraries mentioned in this link for an infrared project :
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...
www.b4x.com
Here is my schematic and connections and my code follows:
B4X:
Sub Process_Globals
Public Serial1 As Serial
Private wifi As ESP8266WiFi
Private IRRecv As IrReceive
Private d0 As Pin
Private d1pins As D1Pins
End Sub
Private Sub AppStart
Serial1.Initialize(9600)
Log("AppStart")
'example of connecting to a local network
' If wifi.Connect2("SSID", "PASSWORD") Then
' Log("Connected to network")
' Else
' Log("Failed to connect to network")
' End If
d0.Initialize(d1pins.D0, d0.MODE_INPUT)
IRRecv.Initialize(d0.PinNumber, "IRRecv_Decoded")
End Sub
Sub IRRecv_Decoded (Result As IrResult)
Log(Result.SONY)
End Sub
My problem as described in the title is that I cannot decode the signal - I get nothing. The receiver is a IR receiver LED and BLACK (not as seen in the picture grey). If I add a Looper to show the state of d0 pin (f.e.
Log(d0.DigitalRead)
I see some ones which means the led works ok. Any suggestions on what I am doing wrong?