Announcement

Collapse
No announcement yet.

UE4Duino - Arduino to UE4 plugin Release!

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

  • [PLUGIN] UE4Duino - Arduino to UE4 plugin Release!

    [6th UPDATE! 4.10 Compatible! 1/25/16]

    Updated to UE4 4.10! Click link below to download!

    http://www.fusionlabz.com/downloads/UE4Duino_4_10.zip


    --------------------------------------------------------------------------------------------------------

    [5th UPDATE! 4.9 Compatible! 9/22/15]

    Big thanks out to Providence94 for updating the plugin to 4.9!!

    Click on his link below to download!

    https://drive.google.com/file/d/0B7h...ZnVkhnZGs/view


    WINDOWS 10 USERS! Use the link below!

    Thanks out to Gidi2go and Skittluier for updating plugin to Windows 10!!

    https://drive.google.com/file/d/0B5Y...RzVG13dDg/view


    --------------------------------------------------------------------------------------------------------

    [4th UPDATE! 4.8.2 Compatible! 7/22/15]

    Just updated the download link. Plugin now compatible with engine version 4.8.2.

    Enjoy!

    Just use the download link below!

    --------------------------------------------------------------------------------------------------------


    [3rd UPDATE! SOURCE RELEASED! 6/10/15]

    Just updated the download link. Download now includes the source files for the plugin.

    Enjoy!

    Just use the download link below!

    --------------------------------------------------------------------------------------------------------


    [2nd UPDATE! 5/10/15]

    Just updated the plugin again.

    There was an issue with the string return of 'Read Serial' having some extra characters (null, return, newline, etc...) so that an string 'equals' node wouldn't work as expected.

    It is now fixed and those pesky extra characters removed.

    Thanks out to Tesla Dev for finding that bug and letting me know!

    Just use the download link below and replace if you have already downloaded.

    --------------------------------------------------------------------------------------------------------

    [UPDATED]
    Just updated the plugin and added a some debugging info. Now you should see info in the Output Log as to if the Thread has started/stopped and Serial Port has opened/closed.

    I also added a new Blueprint node that returns true if the Serial Port opened correctly.

    Just use the download link below and replace if you have already downloaded.

    -----------------------------------------------------------------------------------------------------------

    Hi all,

    I have been wanting to use my Arduino in conjunction with UE4 for a while now and have finally managed to figure it out.

    Here are a couple of vids:

    https://www.youtube.com/watch?v=hhVILt6duXE

    https://www.youtube.com/watch?v=rzh9wh_SfDs

    I made a plugin from it and just wanted to share with whoever might want to use it.

    To download, click this link:
    http://www.fusionlabz.com/downloads/UE4Duino_Plugin.zip

    To use the plugin just drop the "Plugins" folder from the zip into your main project folder.

    Be sure that the plugin is activated in 'Windows->Plugins"
    Click image for larger version

Name:	PluginWindow.jpg
Views:	1
Size:	103.0 KB
ID:	1149110

    I created Blueprint nodes to access the Arduino. You can find them by right clicking in a Blueprint and scrolling down to 'UE4Duino'.

    The four nodes are:
    • Open Serial
    • Close Serial
    • Read Serial
    • Write Serial


    Here is an example:
    Click image for larger version

Name:	UE4DuinoBlueprint.jpg
Views:	1
Size:	123.4 KB
ID:	1149114

    *Be sure to use 'Close Serial' at some point in your project before or at 'End Play' node is fired off so that the serial port and thread are closed.

    I plan on submitting an example scene soon for the Marketplace that will have some tutorials and examples...

    Enjoy and please let me know if you have any issues/questions/comments...thanks!
    Attached Files
    Last edited by grizly32; 01-25-2016, 10:43 AM. Reason: Update
    http://www.fusionlabz.com

  • #2
    Oh this is awesome. I've been wanting to add some fans into a VR experience. This should be a huge aid.

    Comment


    • #3
      Holy Nutballs !!! this is amazing, cant wait to start messing around with it, thank you so much !!

      Comment


      • #4
        Welp, guess Alexander and myself are going to be stopping work on our Arduino integration pet projects, haha

        Awesome work!
        Last edited by Chance Ivey; 05-01-2015, 09:56 PM.
        UE4 Development [VR & AR Forums | VR Docs | ARKit Guide | ARCore Guide]
        Let's Connect [Twitter]

        Comment


        • #5
          You just saved us a lot of time. Thanks a ton!
          Twitch /unrealalexander| Twitter @UnrealAlexander
          How to report a bug? | Installation & Setup issues?
          Call me to a thread by posting this: [MENTION]Alexander Paschall[/MENTION]

          Comment


          • #6
            This is awesome! Gonna mess around with this for sure.

            Comment


            • #7
              Great work thanks for this, should save me a fair bit of time.

              Comment


              • #8
                Seem to be having a few issues here.

                Just trying to run some tests with a serial read and/or write but not getting any results back.

                In my serial monitor I am getting a readout (Just have the basic DigitalReadSerial example running).

                There doesn't seem to be any way to tell if the open serial is actually working or not. Perhaps a success node on it would be handy?

                Comment


                • #9
                  Ok so that was just me being silly and attempting to have 2 things accessing the same serial port at once, so now I have managed the write side of things but I don't seem to be able to get anything back through the Read Serial. I am assuming I am just doing the wrong thing in the arduino side of things, should I be doing a Serial.write(xx) or Serial.print(xx) or something different entirely?

                  Thanks.

                  Comment


                  • #10
                    Very nice plugin! Seams that I need to wipe the dust from my Ardunio once again
                    Sr. Engine Programmer - moritzwundke.com
                    Remember: be polite and respect other peoples opinions - Join the Unofficial Unreal Discord Channel

                    Comment


                    • #11
                      Thanks all!

                      @ZoltanJr - You need to use Serial.println() because the code looks for the '\n' character to know when the data segment ends. I am working on a quickstart tutorial now and hopefully will have it posted
                      http://www.fusionlabz.com

                      Comment


                      • #12
                        Hi grizly32. This is great! Thanks so much for sharing your work! Would it be possible to add a 'serial event' node?

                        Best,

                        Wimmm

                        Comment


                        • #13
                          Hello grizly32!

                          Plug-ins that you have developed is very great.
                          I was able to use a plug-in very easily.
                          https://www.youtube.com/watch?v=j9smnjI-1-A

                          Thanks!

                          Translated into English from Japanese

                          Comment


                          • #14
                            Great! I love Arduino and i'm very happy to try this plugin, thank!
                            Join the Unreal Engine community on Reddit! | Twitter: @ZioYuri78

                            Comment


                            • #15
                              Originally posted by grizly32 View Post
                              Thanks all!

                              @ZoltanJr - You need to use Serial.println() because the code looks for the '\n' character to know when the data segment ends. I am working on a quickstart tutorial now and hopefully will have it posted
                              Thanks grizly. I was using that but still don't seem to be able to get anything back with the read when I do a Serial.pintln() from an event on the arduino using :
                              Serial.println(2);
                              Serial.println('2');
                              Serial.println("2");

                              I just have the read hooked up on the tick event to a print string so I was under the impression it should also show the write events coming from Unreal itself too?

                              Im using a Leonardo for this too if that makes any difference since I know it's got a slightly different serial setup to other boards but it should all still run over serial rather than serial1 im pretty sure,

                              Thanks.

                              Comment

                              Working...
                              X