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. My Project
  3. Building an IR Blaster

Building an IR Blaster

Scheduled Pinned Locked Moved My Project
60 Posts 10 Posters 36.7k Views 4 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.
  • DvbitD Dvbit

    @steets250

    La librairie IRremote permet la reception et l’émission de codes IR (Infrarouges) selon différents protocoles, la rendant compatible avec la plupart des télécommandes IR, et des appareils télécommandés par IR disponibles sur le marché.

    Dans ce plugin, seule la partie réception de la librairie est utilisée (rien n’empêche la réalisation d’une interface d’émission, sauf que je n’en ai pas l’usage J ).
    Irrlib supports input and output...then
    The last sentence is "nothing blocks from developing an output interface but I do not need it"

    Cheers

    hekH Offline
    hekH Offline
    hek
    Admin
    wrote on last edited by
    #48

    @Dvbit
    The problem isn't really doing bi-directional sending of ir-codes between vera/arduino. The problem is getting a dynamic presentation on vera-side up and running. What @steets250 is trying to do is getting the built-in ir device working.. which probably is the most flexible solution.

    Cheerio

    1 Reply Last reply
    0
    • S steets250

      Trying to change the code that Vera transmits, I discover this: :angry::angry::angry::angry::angry:
      Screen Shot 2014-06-12 at 2.51.42 PM.png
      Right after selecting it here:
      upload-2ae92c9a-dafe-4b38-bbed-6cbdcb1f6028.png

      I'm not sure why Vera refuses to accept the Arduino as an IR transmitter. I will give the SQ blaster plugin another look at to see what they have.

      BulldogLowellB Offline
      BulldogLowellB Offline
      BulldogLowell
      Contest Winner
      wrote on last edited by
      #49

      @steets250 said:

      Trying to change the code that Vera transmits, I discover this: :angry::angry::angry::angry::angry:
      Screen Shot 2014-06-12 at 2.51.42 PM.png
      Right after selecting it here:
      upload-2ae92c9a-dafe-4b38-bbed-6cbdcb1f6028.png

      I'm not sure why Vera refuses to accept the Arduino as an IR transmitter. I will give the SQ blaster plugin another look at to see what they have.

      you could try to look at the TiVo plugin, too.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        steets250
        wrote on last edited by
        #50

        So about half of this topic got cut off. To catch people up: The main goal of this topic is to create an IR transmitter device in Vera that can be used to send IR codes to a TV, DVD, DVR, etc. The transmitter is easy to assemble by attaching an IR LED and IR receiver (for learning codes) to an Arduino. The cost of this is about $15. Normal IR blasters range from $50 (USB UIRT - not wireless) to over $100 (Global Cache WF2IR - wireless). Seeing that I could save $85, a MySensors IR blaster looked great.

        When trying to connect the IR blaster to Vera, and get it to transmit, I encountered some problems. The MySensors program currently does not support IR blasters, so I tried to edit the code and make it work. After looking at the SQ Blaster plugin, it gave me an idea of how to get the IR blaster to work. I edited lump files in an attempt to create an IR blaster device. I have so far been able to have Vera create an IR blaster device that shows up on the devices page. upload-064ef888-f02c-4f43-9adc-12910d5b9bee.png
        However, when trying to use it to create an IR device (TV) I can go through the initial setupupload-2ae92c9a-dafe-4b38-bbed-6cbdcb1f6028.png
        But then click on any of the remote's buttons gets me this error message.
        upload-e1cbb9e9-bc57-4a29-89cc-7875680a7d46.png
        I have been stuck with this for a while now. Also, the Vera appears to be sending the IR command:
        08 06/06/14 10:25:29.361 JobHandler_LuaUPnP::HandleActionRequest argument ProntoCode=0000 0071 0000 001A 0080 0080 0020 0020 0020 0020 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0020 0020 0020 0020 0020 0020 0020 0020 0060 0020 0060 0020 0060 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0060 0020 0060 0020 0060 0020 0060 0020 0020 0020 04DF <0x2ca29680>
        02 06/06/14 10:25:29.362 Device_LuaUPnP::HandleActionRequest 38 none of the 1 implementations handled it <0x2ca29680>
        01 06/06/14 10:25:29.551 zzz-A2 83 <0x2ca29680>
        01 06/06/14 10:25:29.551 zzz-1 83 <0x2ca29680>
        01 06/06/14 10:25:29.551 zzz-1b 0xe1b888 <0x2ca29680>
        08 06/06/14 10:25:29.552 JobHandler_LuaUPnP::HandleActionRequest device: 38 service: urn:micasaverde-com:serviceId:IrTransmitter1 action: SendProntoCode <0x2ca29680>
        But the IR code never arrives at the Arduino. I am currently trying to fix this problem, and was wondering if anyone could help. Hek suggested I send guessed (from Vera forums) a message which I will do.

        If any one wants to give this a try, here are the files to upload and test: Please let me know if you see something wrong with the code!

        L_Arduino.lua
        Which contains:
        function sendProntoCode(prontoCode, device)
        sendCommand(luup.devices[device].id,"IR_SEND",prontoCode)
        end

        I_Arduino1.xml
        Which contains:
        <action>
        <serviceId>urn:micasaverde-com:serviceId:IrTransmitter1</serviceId>
        <name>SendProntoCode</name>
        <run>sendProntoCode(lul_settings.ProntoCode, lul_device)</run>
        </action>

        D_Arduino1.xml
        Which contains:
        <service>
        <serviceType>urn:schemas-micasaverde-com:service:IrTransmitter:1</serviceType>
        <serviceId>urn:micasaverde-com:serviceId:IrTransmitter1</serviceId>
        <SCPDURL>S_IrTransmitter1.xml</SCPDURL>
        </service>

        MySensors_IR.ino
        Which creates the IR device (S_IR) and then serial prints whatever message it receives.

        Quick side note:There are two IR codes that Vera might be sending right now. A short code, 0x2ca29680 (in Vera log), or 0000 0071 0000 001A 0080 0080 0020 0020 0020 0020 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0020 0020 0020 0020 0020 0020 0020 0020 0060 0020 0060 0020 0060 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0060 0020 0060 0020 0060 0020 0060 0020 0020 0020 04DF (also in Vera log). In the event that Vera is sending the longer code which is too big to send over the air, my solution to that was to have Vera send a single digit representing a longer IR code to send, for example 1 = power button, 2 = volume up, 3 = volume down, etc. The single digit method is already in the Arduino program so that I can change the IR codes on the Arduino easily without needing to change them in Vera.

        Let me know if you have any questions. Thanks for your help!

        Z 1 Reply Last reply
        0
        • S steets250

          So about half of this topic got cut off. To catch people up: The main goal of this topic is to create an IR transmitter device in Vera that can be used to send IR codes to a TV, DVD, DVR, etc. The transmitter is easy to assemble by attaching an IR LED and IR receiver (for learning codes) to an Arduino. The cost of this is about $15. Normal IR blasters range from $50 (USB UIRT - not wireless) to over $100 (Global Cache WF2IR - wireless). Seeing that I could save $85, a MySensors IR blaster looked great.

          When trying to connect the IR blaster to Vera, and get it to transmit, I encountered some problems. The MySensors program currently does not support IR blasters, so I tried to edit the code and make it work. After looking at the SQ Blaster plugin, it gave me an idea of how to get the IR blaster to work. I edited lump files in an attempt to create an IR blaster device. I have so far been able to have Vera create an IR blaster device that shows up on the devices page. upload-064ef888-f02c-4f43-9adc-12910d5b9bee.png
          However, when trying to use it to create an IR device (TV) I can go through the initial setupupload-2ae92c9a-dafe-4b38-bbed-6cbdcb1f6028.png
          But then click on any of the remote's buttons gets me this error message.
          upload-e1cbb9e9-bc57-4a29-89cc-7875680a7d46.png
          I have been stuck with this for a while now. Also, the Vera appears to be sending the IR command:
          08 06/06/14 10:25:29.361 JobHandler_LuaUPnP::HandleActionRequest argument ProntoCode=0000 0071 0000 001A 0080 0080 0020 0020 0020 0020 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0020 0020 0020 0020 0020 0020 0020 0020 0060 0020 0060 0020 0060 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0060 0020 0060 0020 0060 0020 0060 0020 0020 0020 04DF <0x2ca29680>
          02 06/06/14 10:25:29.362 Device_LuaUPnP::HandleActionRequest 38 none of the 1 implementations handled it <0x2ca29680>
          01 06/06/14 10:25:29.551 zzz-A2 83 <0x2ca29680>
          01 06/06/14 10:25:29.551 zzz-1 83 <0x2ca29680>
          01 06/06/14 10:25:29.551 zzz-1b 0xe1b888 <0x2ca29680>
          08 06/06/14 10:25:29.552 JobHandler_LuaUPnP::HandleActionRequest device: 38 service: urn:micasaverde-com:serviceId:IrTransmitter1 action: SendProntoCode <0x2ca29680>
          But the IR code never arrives at the Arduino. I am currently trying to fix this problem, and was wondering if anyone could help. Hek suggested I send guessed (from Vera forums) a message which I will do.

          If any one wants to give this a try, here are the files to upload and test: Please let me know if you see something wrong with the code!

          L_Arduino.lua
          Which contains:
          function sendProntoCode(prontoCode, device)
          sendCommand(luup.devices[device].id,"IR_SEND",prontoCode)
          end

          I_Arduino1.xml
          Which contains:
          <action>
          <serviceId>urn:micasaverde-com:serviceId:IrTransmitter1</serviceId>
          <name>SendProntoCode</name>
          <run>sendProntoCode(lul_settings.ProntoCode, lul_device)</run>
          </action>

          D_Arduino1.xml
          Which contains:
          <service>
          <serviceType>urn:schemas-micasaverde-com:service:IrTransmitter:1</serviceType>
          <serviceId>urn:micasaverde-com:serviceId:IrTransmitter1</serviceId>
          <SCPDURL>S_IrTransmitter1.xml</SCPDURL>
          </service>

          MySensors_IR.ino
          Which creates the IR device (S_IR) and then serial prints whatever message it receives.

          Quick side note:There are two IR codes that Vera might be sending right now. A short code, 0x2ca29680 (in Vera log), or 0000 0071 0000 001A 0080 0080 0020 0020 0020 0020 0020 0020 0020 0060 0020 0020 0020 0060 0020 0020 0020 0020 0020 0020 0020 0020 0020 0020 0020 0060 0020 0060 0020 0060 0020 0060 0020 0020 0020 0060 0020 0020 0020 0060 0020 0060 0020 0060 0020 0060 0020 0060 0020 0020 0020 04DF (also in Vera log). In the event that Vera is sending the longer code which is too big to send over the air, my solution to that was to have Vera send a single digit representing a longer IR code to send, for example 1 = power button, 2 = volume up, 3 = volume down, etc. The single digit method is already in the Arduino program so that I can change the IR codes on the Arduino easily without needing to change them in Vera.

          Let me know if you have any questions. Thanks for your help!

          Z Offline
          Z Offline
          Zeph
          Hero Member
          wrote on last edited by
          #51

          @steets250 said:

          In the event that Vera is sending the longer code which is too big to send over the air, my solution to that was to have Vera send a single digit representing a longer IR code to send, for example 1 = power button, 2 = volume up, 3 = volume down, etc. The single digit method is already in the Arduino program so that I can change the IR codes on the Arduino easily without needing to change them in Vera.

          How were you thinking to get Vera to use that shorter code?

          Or asked another way - where does Vera find the PRONTO codes it sends? Can you edit some file to get it to send a short code instead?


          As for what code to send to the IR blasting node. You are sending the IR library's 32 bit (or less) interpreted code when there is one.

          When there isn't one, I think your approach of saving the raw values to PROGMEM should work well; you can also also save the 32 bit hash the IR library creates. Suggestion: send that hash from Vera, have the node look it up in your PROGMEM and send the corresponding raw values. That is, use the hash rather than sending an arbitrarily assigned digit.

          xUnless you have a lot of buttons, and they create long raw codes, you can probably fit them into PROGMEM without needing an SD card.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            steets250
            wrote on last edited by
            #52

            Thanks! @Zeph

            When you create an IR device in Vera, it uses two files:
            D_Codeset_2.xml and I_Codeset_2.xml.
            You can change the codes in the I_Codeset file to whatever you want (I think). The codes in the I_Codeset file would be the shorter code representing a longer one in the Arduino program.

            What I still have to figure out is if Vera sends short codes (0x153) or the RAW codes. I'm hoping raw so I can change the code send to different numbers. And if Vera does send pronto codes, I wonder if Vera will try and convert the single digits (representing a larger command) into a pronto code (I doubt it).

            1 Reply Last reply
            0
            • D Offline
              D Offline
              Dringie
              wrote on last edited by
              #53

              Did you manage to get this working?

              S 1 Reply Last reply
              0
              • D Dringie

                Did you manage to get this working?

                S Offline
                S Offline
                steets250
                wrote on last edited by
                #54

                @Dringie No... I've been trying to get it to work, but I am still having issues getting Vera to send IR commands to the Arduino. I think it's the implementation of the actual command that send the IR info to the arduino.

                I will keep working, and I will send guessed another message.

                1 Reply Last reply
                0
                • HomerH Offline
                  HomerH Offline
                  Homer
                  wrote on last edited by
                  #55

                  This looks like a great idea!!

                  I wish I knew enough of this stuff to help out... I will start building over the weekend with the stuff I have collected, and maybe I might learn some stuff that I can use to help get this project working :-)

                  fingers crossed lol

                  S 1 Reply Last reply
                  0
                  • HomerH Homer

                    This looks like a great idea!!

                    I wish I knew enough of this stuff to help out... I will start building over the weekend with the stuff I have collected, and maybe I might learn some stuff that I can use to help get this project working :-)

                    fingers crossed lol

                    S Offline
                    S Offline
                    steets250
                    wrote on last edited by
                    #56

                    @Homer Awesome! Let me know what you find. Are you using mysensors 1.7?

                    1 Reply Last reply
                    0
                    • CorvlC Offline
                      CorvlC Offline
                      Corvl
                      wrote on last edited by
                      #57

                      I was also planning to make an arduino based IR blaster , since I thought it would be working.

                      I just want to switch off my mediabox , with that I allready would be happy , when I read this post it is not possible :-S , or do I interpret it wrong?

                      Thanks,
                      Cor

                      1 Reply Last reply
                      0
                      • hekH Offline
                        hekH Offline
                        hek
                        Admin
                        wrote on last edited by
                        #58

                        Very much possible to solve if it's just a few things you want to control. The MySensors provided example creates a "lightswitch" device which triggers ir-sending of a couple of ir codes.

                        Not a full fledged blaster but it should be enough to solve your particular problem.

                        1 Reply Last reply
                        0
                        • CorvlC Offline
                          CorvlC Offline
                          Corvl
                          wrote on last edited by
                          #59

                          @ Hek ,

                          Thanks, I will post a building log in a new thread, for me , since I am very new with arduino and maybe other people can have abenefit as well , since on vera/z-wave there are no (cheap) "IR" - blasters available .

                          Cor

                          1 Reply Last reply
                          0
                          • CorvlC Offline
                            CorvlC Offline
                            Corvl
                            wrote on last edited by
                            #60
                            This post is deleted!
                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            23

                            Online

                            11.7k

                            Users

                            11.2k

                            Topics

                            113.1k

                            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