Announcement

Collapse
No announcement yet.

UE4Duino - Arduino to UE4 plugin Release!

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    #61
    I tried the same Blueprint and the same UE4 version which is the 4.7.6 on a different Pc with Windows 10 and it works correctly. It's a lot weird...
    This morning I will do other test! Thanks for support

    Comment


      #62
      Hello,

      Thank you grizly32 for great plugin! Everything works for me in Engine ver. 4.7.6.

      I've tested it with sending one variable all the time.
      Then I have a question - and it is - how do you make Unreal Blueprint to read just part of serial string and use it as variable? Let's say - I have a string like this: A102B45C000 and I would like to filter it to have three variables of 102, 45 and 000 in value. That's why I use 3 letters to separate the data.
      I hope I've explained my issue so it is understandable

      Thank you in advance for your time,

      Comment


        #63
        Thank you Grizly32, eagerly waiting for the 4.8 solution.

        Comment


          #64
          Was wondering if anyone else had this problem - if I plug my Arduino into another USB port on the computer UE4 stops picking it up. I'm getting data in the serial port window of the arduino, it's still picking it up on the same port...COM9, but in unreal...nothing. If i put the usb back in the original socket, unreal picks it back up again no problem. This makes me nervous for when I take this project outside of the studio and onto other computers...is it going to be hard to get the unreal program to pick up the arduino? anyone have experience with this? thanks again for such an amazing and much needed plugin.

          Comment


            #65
            Thank you for putting out this awesome plugin!

            I've gotten it to work well on my end. I did have a question about using the write serial node. I'm trying to feed a string that updates with an event tick to the write serial node. It seems to push out a stream of data to my arduino as expected but after a few seconds or so, Unreal crashes. If I add a delay to to the stream, it lasts longer but still crashes. I tried opening and closing the serial port per tick and Unreal stabilized but performance is rough from the constant resetting of the serial port.

            Do you have any tips on how to pass a constantly changing stream of data out of Unreal to my Arduino? Could it be some kind of buffer being overloaded?

            Thanks in advance!

            Comment


              #66
              Hey all!

              I apologize for it taking me so long, but I just updated the plugin and it now works in the latest engine release (4.8.2).

              Just go to the first post and re-download the zip.

              Let me know if anyone runs into anymore problems!

              Thanks!

              -Tim
              http://www.fusionlabz.com

              Comment


                #67
                Tested out for Android and it doesn't work--it can't compile an Android compatible version, I would also wonder which COM port to put since it would be connecting over Bluetooth

                Comment


                  #68
                  Just to know...
                  Works perfectly on Windows 7 and Unreal Engine 4.8.2

                  Good Job! Thanks

                  Comment


                    #69
                    Ooops....another issue on building / exporting phase. It seems that the UE can not find the plugin. Am I the only one with this problem?
                    Thanks again

                    Click image for larger version

Name:	Error.jpg
Views:	1
Size:	27.2 KB
ID:	1082668

                    Comment


                      #70
                      Make sure it's in a Plugins folder in your project folder and that your project type is C++

                      Comment


                        #71
                        Hi, and thank you for this incredible plugin. Managed to get it running without any difficulties and its great fun.

                        I had one quick question and perhaps i am being stupid, but how can i control more than one variable from my arduino, ie read more than one value from the serial port or serial println command in ue4?

                        I would really like more than 1 button/ potentiometer controlling multiple variables inside my blueprint.

                        Has anybody managed to do this and have an example blueprint/arduino code they could share or point me in the right direction.

                        Thanks kindly
                        k

                        Comment


                          #72
                          这个插件实在是太棒了,谢谢作者在这里的分享。不过我在使用 Read Serial的时候发现,会重复读取。
                          比如:
                          在 arduino中:我的程序
                          void loop() {
                          if(i%2==0)
                          {
                          Serial.println("AAAAA");
                          }
                          else
                          {
                          Serial.println("BBBBB");
                          }
                          i++;
                          delay(2000);
                          }
                          但是在UE4中 读到的数据是:
                          LogBlueprintUserMessages: BBBBB
                          LogBlueprintUserMessages: BBBBB
                          LogBlueprintUserMessages: BBBBB
                          LogBlueprintUserMessages: BBBBB
                          LogBlueprintUserMessages: BBBBB
                          LogBlueprintUserMessages: BBBBB
                          LogBlueprintUserMessages: BBBBB
                          LogBlueprintUserMessages: AAAAA
                          LogBlueprintUserMessages: AAAAA
                          LogBlueprintUserMessages: AAAAA
                          LogBlueprintUserMessages: AAAAA
                          LogBlueprintUserMessages: AAAAA
                          LogBlueprintUserMessages: AAAAA
                          LogBlueprintUserMessages: AAAAA
                          LogBlueprintUserMessages: AAAAA
                          LogBlueprintUserMessages: AAAAA

                          请问这个插件中,有没有处理这个问题的函数呢?

                          Comment


                            #73
                            thanks i think , if i understood the code correctly this alternates between outputting one line or the other? In my example i want to use 2 or more potentionometers or switches to control different variables in arduino, eg light brightness or on or off.

                            How can blueprint distinguish between the different serial println commands?

                            Should i write a Byte from serial.write instead and then interpret it in blueprint for the array value to be broken into 2 or more packets to do different things?

                            sorry i may be talking **** but i am very new to arduino and programming.

                            kindest
                            k

                            Comment


                              #74
                              kkroosi - I'm no expert but I'm pretty sure you would just put all your readings on one line, that turns into a string in unreal and then just parse the string into an array and then you can use index 0 to be pot1 and index 1 to be pot2....etc. https://docs.unrealengine.com/latest...ray/index.html

                              Comment


                                #75
                                thank you so much :-)

                                Comment

                                Working...
                                X