Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Announcements
  3. 💬 Infrared Sender and Receiver

💬 Infrared Sender and Receiver

Scheduled Pinned Locked Moved Announcements
45 Posts 26 Posters 15.0k Views 26 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Reza
    wrote on last edited by
    #11

    this module ( ir transmitter ) is weak in transmit . for more than 2 or 3 meter distance dont work . also for less than 1 meter we must direct connection exactly.
    i think this is related to power or noise or problem of module ?!
    can you guidance me ?

    C 1 Reply Last reply
    0
    • R Offline
      R Offline
      Reza
      wrote on last edited by
      #12

      domoticz doesn't support this ?! i test this and i see domoticz wont detect this node

      zhangzcZ 1 Reply Last reply
      0
      • R Reza

        domoticz doesn't support this ?! i test this and i see domoticz wont detect this node

        zhangzcZ Offline
        zhangzcZ Offline
        zhangzc
        wrote on last edited by
        #13

        Hi @Reza ,
        Did you solve this problem?

        R 1 Reply Last reply
        0
        • zhangzcZ zhangzc

          Hi @Reza ,
          Did you solve this problem?

          R Offline
          R Offline
          Reza
          wrote on last edited by
          #14

          @zhangzc

          hi , no . i can not use this device with domoticz

          1 Reply Last reply
          0
          • R Reza

            this module ( ir transmitter ) is weak in transmit . for more than 2 or 3 meter distance dont work . also for less than 1 meter we must direct connection exactly.
            i think this is related to power or noise or problem of module ?!
            can you guidance me ?

            C Offline
            C Offline
            chuckconnors
            wrote on last edited by
            #15

            @Reza said:

            this module ( ir transmitter ) is weak in transmit . for more than 2 or 3 meter distance dont work . also for less than 1 meter we must direct connection exactly.
            i think this is related to power or noise or problem of module ?!
            can you guidance me ?

            I'm thinking of building this but am concerned about limited range. I'd like it to work 10ft/3m. Can someone confirm that this does not work at these distances? If so, is there a way to increase the range?

            1 Reply Last reply
            0
            • W Offline
              W Offline
              Wackid
              wrote on last edited by
              #16

              So how can is set this node in learnmode?? V_IR_RECORD in the Serial of Arduino?
              How do i store codes in the Eprom. SO i can use them in Domoticz

              W 1 Reply Last reply
              0
              • W Wackid

                So how can is set this node in learnmode?? V_IR_RECORD in the Serial of Arduino?
                How do i store codes in the Eprom. SO i can use them in Domoticz

                W Offline
                W Offline
                Wackid
                wrote on last edited by
                #17

                @Wackid

                I know how to read out the IR signals. And to put it in the sketch manually. But I really like to make use of the record function.
                Where and how do I make the node to set it in learn function.

                1 Reply Last reply
                0
                • tianaT Offline
                  tianaT Offline
                  tiana
                  wrote on last edited by
                  #18

                  I send command from remote control arduino read this command (i can see this in serial monitor) but this commands are not sending to gateway, my radio is working the sensor connect to gateway and controller. I use example Sketch given up in this page without changing anything.
                  Any idea whats wrong in my setup?

                  1 Reply Last reply
                  0
                  • W Offline
                    W Offline
                    Wackid
                    wrote on last edited by
                    #19
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      Mihai
                      wrote on last edited by
                      #20

                      I use this IR transmitter toward my LG Tv and it works at a distance of ~3.5 m, but IR LED must be well pointed to the Tv, otherwise it doesn't work.

                      1 Reply Last reply
                      0
                      • Talat KeleşT Talat Keleş

                        @Reza said:

                        is this a learning mode module ?
                        how use this module for learn my ir codes ?

                        This node decodes IR remote codes, print protocol and hex value to serial monitor and send it to gateway. Then controller can do logic on that to do some stuff.
                        The sample code also receive on/off command from controller and emits IR signal depending on it.

                        I use this node to turn on/off sony sound system (15bit sony protocol) and benq projector (NEC protocol) together beside htpc(via wol). Openhab rule send 8byte IR codes as V_IR_Send to node and node emits the required IR codes.

                        ramoncarranzaR Offline
                        ramoncarranzaR Offline
                        ramoncarranza
                        wrote on last edited by
                        #21

                        @Talat-Keleş
                        Hi, I am having an issue compiling the sketch and was wondering if you had any input or could help me out, This is what I get back when I try to compile;
                        0_1483733093476_upload-fba9c55f-1a02-4b17-b7ff-bc75aadb47d1

                        Talat KeleşT P 2 Replies Last reply
                        0
                        • ramoncarranzaR ramoncarranza

                          @Talat-Keleş
                          Hi, I am having an issue compiling the sketch and was wondering if you had any input or could help me out, This is what I get back when I try to compile;
                          0_1483733093476_upload-fba9c55f-1a02-4b17-b7ff-bc75aadb47d1

                          Talat KeleşT Offline
                          Talat KeleşT Offline
                          Talat Keleş
                          wrote on last edited by Talat Keleş
                          #22

                          @ramoncarranza
                          Compiler complains about not understanding decode_type_t. It should be defined in .h file or maybe you defined it in sketch but there is a problem definetly.
                          Can you post whole sketch and IR library and error message if any other so we can check and test.

                          By the way, I installed IRremote.h (v2.1.0) via library manager, and default sketch compiled without error on IDE 1.6.5 win7 and IDE 1.6.10 linux mint 17.

                          1 Reply Last reply
                          0
                          • tmn103T Offline
                            tmn103T Offline
                            tmn103
                            wrote on last edited by
                            #23

                            Re: 💬 Infrared Sender and Receiver

                            How do you enter the raw IR codes, i.e. those that aren't covered in the sketch? I have one through the receiver in the format - 23784 1800 -800 950 -1700 1800 -850 900 -850 950 -1700 1800 -850 900 -850 900 -850 950 -800 950 -850 900

                            1 Reply Last reply
                            0
                            • ramoncarranzaR ramoncarranza

                              @Talat-Keleş
                              Hi, I am having an issue compiling the sketch and was wondering if you had any input or could help me out, This is what I get back when I try to compile;
                              0_1483733093476_upload-fba9c55f-1a02-4b17-b7ff-bc75aadb47d1

                              P Offline
                              P Offline
                              pete1450
                              wrote on last edited by
                              #24

                              @ramoncarranza When I went and looked where the library manager installed the IRremote lib(for me C:\Users\User\Documents\Arduino\libraries), it had given it an odd name like arduino_294267. I renamed it to IRremote and the issue went away.

                              1 Reply Last reply
                              0
                              • H Offline
                                H Offline
                                hashem25
                                wrote on last edited by
                                #25

                                I am confused i see the decode in my com monitor and i see the ir node in my domoticz but there is no data???

                                1 Reply Last reply
                                0
                                • W Offline
                                  W Offline
                                  wilson64
                                  wrote on last edited by
                                  #26

                                  Can I use MQTT & Node Red to make this work, if yes can somebody show me how

                                  1 Reply Last reply
                                  0
                                  • Mitja BlazinsekM Offline
                                    Mitja BlazinsekM Offline
                                    Mitja Blazinsek
                                    wrote on last edited by
                                    #27

                                    ok i record ir code 240E4F17 from my AC remote hov can i sent this code from my controler to IR node and request from node to sent that code (on/off) AC i was trying with raw mesage but i dot know what to send (Type/ Sub type , Acknowledge/ Payload)

                                    1 Reply Last reply
                                    0
                                    • dbemowskD Offline
                                      dbemowskD Offline
                                      dbemowsk
                                      wrote on last edited by
                                      #28

                                      So, I am thinking of building this and I noticed that the documentation says that you may need a mega to do this. Is a mega required, or will the code work with a nano or an uno?

                                      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                                      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                                      1 Reply Last reply
                                      0
                                      • N Offline
                                        N Offline
                                        Newzwaver
                                        wrote on last edited by
                                        #29

                                        Hi Running this code I get the following errors anyone know why?
                                        Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Nano, ATmega328"

                                        Build options changed, rebuilding all

                                        Using library SPI in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI

                                        Using library MySensors in folder: C:\Users\Audrey\Documents\libraries\MySensors

                                        Using library Robot IR Remote in folder: C:\Program Files (x86)\Arduino\libraries\RobotIRremote

                                        C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Users\Audrey\Documents\libraries\MySensors -IC:\Program Files (x86)\Arduino\libraries\RobotIRremote\src C:\Users\Audrey\AppData\Local\Temp\build2205553450015260610.tmp\IRSendRec.cpp -o C:\Users\Audrey\AppData\Local\Temp\build2205553450015260610.tmp\IRSendRec.cpp.o

                                        IRSendRec.ino:95:5: error: 'decode_type_t' does not name a type
                                        IRSendRec.ino:114:1: error: 'IRsend' does not name a type
                                        IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                        IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                        IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                        IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                        IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                        IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                        IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                        IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                        IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                        IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                        IRSendRec.ino: In function 'byte lookUpPresetCode(decode_results*)':
                                        IRSendRec.ino:246:38: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:256:38: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino: In function 'bool storeRCCode(byte)':
                                        IRSendRec.ino:300:30: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:302:49: error: 'class decode_results' has no member named 'address'
                                        IRSendRec.ino: In function 'void sendRCCode(byte)':
                                        IRSendRec.ino:322:39: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:84:38: note: in definition of macro 'Type2String'
                                        IRSendRec.ino:322:39: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:84:50: note: in definition of macro 'Type2String'
                                        IRSendRec.ino:323:18: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:328:10: error: 'irsend' was not declared in this scope
                                        IRSendRec.ino:331:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:338:10: error: 'irsend' was not declared in this scope
                                        IRSendRec.ino:341:23: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:342:8: error: 'irsend' was not declared in this scope
                                        IRSendRec.ino:344:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:345:8: error: 'irsend' was not declared in this scope
                                        IRSendRec.ino:347:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:348:8: error: 'irsend' was not declared in this scope
                                        IRSendRec.ino:352:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:353:8: error: 'irsend' was not declared in this scope
                                        IRSendRec.ino:355:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:355:32: error: 'SAMSUNG' was not declared in this scope
                                        IRSendRec.ino:356:8: error: 'irsend' was not declared in this scope
                                        IRSendRec.ino:358:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:358:32: error: 'WHYNTER' was not declared in this scope
                                        IRSendRec.ino:359:8: error: 'irsend' was not declared in this scope
                                        IRSendRec.ino:361:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:361:32: error: 'AIWA_RC_T501' was not declared in this scope
                                        IRSendRec.ino:362:8: error: 'irsend' was not declared in this scope
                                        IRSendRec.ino:364:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:364:32: error: 'LG' was not declared in this scope
                                        IRSendRec.ino:364:48: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:364:75: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:368:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:372:12: error: 'irsend' was not declared in this scope
                                        IRSendRec.ino:375:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:376:8: error: 'irsend' was not declared in this scope
                                        IRSendRec.ino:380:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                        IRSendRec.ino:380:32: error: 'DENON' was not declared in this scope
                                        IRSendRec.ino:381:8: error: 'irsend' was not declared in this scope
                                        IRSendRec.ino: In function 'void dump(decode_results*)':
                                        IRSendRec.ino:403:29: error: 'class decode_results' has no member named 'address'
                                        'decode_type_t' does not name a type

                                        mfalkviddM 1 Reply Last reply
                                        0
                                        • N Newzwaver

                                          Hi Running this code I get the following errors anyone know why?
                                          Arduino: 1.6.5 (Windows 8.1), Board: "Arduino Nano, ATmega328"

                                          Build options changed, rebuilding all

                                          Using library SPI in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI

                                          Using library MySensors in folder: C:\Users\Audrey\Documents\libraries\MySensors

                                          Using library Robot IR Remote in folder: C:\Program Files (x86)\Arduino\libraries\RobotIRremote

                                          C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs -IC:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI -IC:\Users\Audrey\Documents\libraries\MySensors -IC:\Program Files (x86)\Arduino\libraries\RobotIRremote\src C:\Users\Audrey\AppData\Local\Temp\build2205553450015260610.tmp\IRSendRec.cpp -o C:\Users\Audrey\AppData\Local\Temp\build2205553450015260610.tmp\IRSendRec.cpp.o

                                          IRSendRec.ino:95:5: error: 'decode_type_t' does not name a type
                                          IRSendRec.ino:114:1: error: 'IRsend' does not name a type
                                          IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                          IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                          IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                          IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                          IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                          IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                          IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                          IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                          IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                          IRSendRec.ino:135:1: error: too many initializers for 'IRCode::<anonymous struct>'
                                          IRSendRec.ino: In function 'byte lookUpPresetCode(decode_results*)':
                                          IRSendRec.ino:246:38: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:256:38: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino: In function 'bool storeRCCode(byte)':
                                          IRSendRec.ino:300:30: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:302:49: error: 'class decode_results' has no member named 'address'
                                          IRSendRec.ino: In function 'void sendRCCode(byte)':
                                          IRSendRec.ino:322:39: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:84:38: note: in definition of macro 'Type2String'
                                          IRSendRec.ino:322:39: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:84:50: note: in definition of macro 'Type2String'
                                          IRSendRec.ino:323:18: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:328:10: error: 'irsend' was not declared in this scope
                                          IRSendRec.ino:331:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:338:10: error: 'irsend' was not declared in this scope
                                          IRSendRec.ino:341:23: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:342:8: error: 'irsend' was not declared in this scope
                                          IRSendRec.ino:344:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:345:8: error: 'irsend' was not declared in this scope
                                          IRSendRec.ino:347:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:348:8: error: 'irsend' was not declared in this scope
                                          IRSendRec.ino:352:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:353:8: error: 'irsend' was not declared in this scope
                                          IRSendRec.ino:355:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:355:32: error: 'SAMSUNG' was not declared in this scope
                                          IRSendRec.ino:356:8: error: 'irsend' was not declared in this scope
                                          IRSendRec.ino:358:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:358:32: error: 'WHYNTER' was not declared in this scope
                                          IRSendRec.ino:359:8: error: 'irsend' was not declared in this scope
                                          IRSendRec.ino:361:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:361:32: error: 'AIWA_RC_T501' was not declared in this scope
                                          IRSendRec.ino:362:8: error: 'irsend' was not declared in this scope
                                          IRSendRec.ino:364:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:364:32: error: 'LG' was not declared in this scope
                                          IRSendRec.ino:364:48: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:364:75: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:368:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:372:12: error: 'irsend' was not declared in this scope
                                          IRSendRec.ino:375:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:376:8: error: 'irsend' was not declared in this scope
                                          IRSendRec.ino:380:24: error: 'struct IRCode::<anonymous>' has no member named 'type'
                                          IRSendRec.ino:380:32: error: 'DENON' was not declared in this scope
                                          IRSendRec.ino:381:8: error: 'irsend' was not declared in this scope
                                          IRSendRec.ino: In function 'void dump(decode_results*)':
                                          IRSendRec.ino:403:29: error: 'class decode_results' has no member named 'address'
                                          'decode_type_t' does not name a type

                                          mfalkviddM Offline
                                          mfalkviddM Offline
                                          mfalkvidd
                                          Mod
                                          wrote on last edited by
                                          #30

                                          @Newzwaver see @pete1450's post above (5 posts above yours).

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          18

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular