@sweebee said in HowTo receive & transmit infrared:
@nears we have mysensors for this
You need a second arduino nano with a NRF with the mysensors gateway.
Install pimatic-mysensorsand make a arduino with a nrf and a ir sender and burn this sketch
Now you can send ir codes with rules like:
if button1 is pressed then send Ir nodeid: "id" sensorid: "id" cmdcode: "0x342333"
hello sweebee, i tried to get it working, but after i flashed the sketch to my pro mini i am receiving no sketch-info, no data, only this:
0;0;3;0;9;read: 77-77-0 s=255,c=3,t=15,pt=2,l=2,sg=0:0
77;255;3;0;15;0
0;0;3;0;9;read: 77-77-0 s=255,c=3,t=15,pt=2,l=2,sg=0:0
77;255;3;0;15;0
0;0;3;0;9;read: 77-77-0 s=255,c=3,t=15,pt=2,l=2,sg=0:0
77;255;3;0;15;0
0;0;3;0;9;read: 77-77-0 s=255,c=3,t=15,pt=2,l=2,sg=0:0
77;255;3;0;15;0
0;0;3;0;9;read: 77-77-0 s=255,c=3,t=15,pt=2,l=2,sg=0:0
77;255;3;0;15;0
0;0;3;0;9;read: 77-77-0 s=255,c=3,t=15,pt=2,l=2,sg=0:0
77;255;3;0;15;0
0;0;3;0;9;read: 77-77-0 s=255,c=3,t=15,pt=2,l=2,sg=0:0
77;255;3;0;15;0
0;0;3;0;9;read: 77-77-0 s=255,c=3,t=15,pt=2,l=2,sg=0:0
77;255;3;0;15;0
0;0;3;0;9;read: 77-77-0 s=255,c=3,t=15,pt=2,l=2,sg=0:0
77;255;3;0;15;0
0;0;3;0;9;read: 77-77-0 s=255,c=3,t=15,pt=2,l=2,sg=0:0
77;255;3;0;15;0
0;0;3;0;9;read: 77-77-0 s=255,c=3,t=15,pt=2,l=2,sg=0:0
77;255;3;0;15;0
0;0;3;0;9;read: 77-77-0 s=255,c=3,t=15,pt=2,l=2,sg=0:0
77;255;3;0;15;0
0;0;3;0;9;read: 77-77-0 s=255,c=3,t=15,pt=2,l=2,sg=0:0
77;255;3;0;15;0
if i use my ir-remote-control in front of the sensor, the led of the ir-receiver is flashing, but no data appears in the log…
i do not know how to test the ir-transmitter because i need a working cmd-code for that…
would you please give me a short tutorial, how you have done this with mysensors? thank you in advance