Announcement

Collapse
No announcement yet.

UE4Duino - Arduino to UE4 plugin Release!

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

  • LeKok,

    If you have your serial monitor open, then the Arduino IDE is controlling the serial port you're sending data over. Close the Serial Monitor, or the Arduino IDE as a whole, and try printing values to the screen again in your game.

    John

    Comment


    • John,

      I've done what you said, but the program still doesn't work.

      Comment


      • I got the program finally working by using another version of the program, however it now has two problems.
        The first problem is that I get a value for the potmeter on the screen, but the value isn't updated during the program. It just prints the same value over and over again. The only way to get another value is when I close my project and start it again. This is also the only time that the output log says that the serial port is open.
        Click image for larger version

Name:	Serial open.jpg
Views:	1
Size:	61.0 KB
ID:	1093095
        When I stop the program and play it again, it gives an error for opening the serial port and just prints the same value as the first time.
        Click image for larger version

Name:	Serial not open.jpg
Views:	1
Size:	69.4 KB
ID:	1093096
        Does someone know why the program isn't working correctly?

        Comment


        • windows 10 update

          Thanks for the windows 10 update.
          For anyone who was getting a serial connect but no read values or nothing printed on screen this will fix the issue.

          Comment


          • Hey LeKok, sorry you are having problems! What Unreal Engine and Windows versions are you using?
            http://www.fusionlabz.com

            Comment


            • I'm using Windows 10 and Unreal Engine version 4.9.2. I also use the windows 10 update of the plugin.

              Comment


              • Hi, we're running into some issues with the Windows 10 Plugin for 4.9.2

                The serial is only reading the first value and not updating on subsequent read serials, and we get occasional crashes with the following message:

                MachineId:1BF10D9F4DC3A3046BA9ABB9C7290F65
                EpicAccountId:498d6918a5554f10991ff3fb36ea289e

                Access violation - code c0000005 (first/second chance not available)

                ""

                UE4Editor_UE4W10Duino!CSerial::SendData() [c:\users\maarten\documents\unreal projects\droidtastic\plugins\ue4w10duino\source\ue4w10duino\private\serialclass.cpp:112]
                UE4Editor_UE4W10Duino!ThreadTest::Run() [c:\users\maarten\documents\unreal projects\droidtastic\plugins\ue4w10duino\source\ue4w10duino\private\threadtest.cpp:71]
                UE4Editor_Core!FRunnableThreadWin::Run() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.9\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:74]

                Comment


                • Lekok,

                  I had similar problems when I started using UE4duino. What kind of game are making? I am making a driving simulator and instead of using "event tick" to check the serial port I used "Input Axis MoveForward" to read the serial port. This may be worth trying, and that event boolean should be available for most types of games.

                  John

                  Comment


                  • Amazing work!!!! I m new to arduino and found this plugin super useful and I m so excited about it. I also got the problem with Win10 UE engine 4.9.2. I used the old ver of plugin, which works great but fail on readSerial in UE, but when i tried UEwin10duino, it cant check openSerial from the beginning, looks failed to connect.

                    Comment


                    • John,

                      I am making a game where one can cycle through a world. I use the arduino + potmeter to simulate a steer. At the moment I only get the value on the screen when I am using gamemode, and there is ├Ćnput Axis MoveForward" not available. When I put the program in another bluepront class, I don't get any value on the screen.

                      Leron

                      Comment


                      • Hello,

                        As some of you have noticed, the plugin has a problem with Windows10: reading from Arduino to PC works fine, but writing from PC to Arduino does not work. Skittluier has tried to remedy the problem, but his solution does not work on all machines (he is a student in my class, so I know what I am talking about). I made a new version, which works on both my machine (Windows 8) and his (Windows 10), and it can be downloaded from here: https://drive.google.com/file/d/0B5Y...ew?usp=sharing

                        Hope this helps!

                        Comment


                        • Hey LeKok,

                          Unfortunately I don't currently have Windows 10 on any of my systems to test on. I am hoping to get it installed soon though. From the errors TriumphantBass posted it looks like it might be a threading issue...
                          http://www.fusionlabz.com

                          Comment


                          • Thanks Gidi2Go, it works on my win10 now too!!

                            Comment


                            • Opps, must not have refreshed the page before writing my last post!

                              Thanks Gidi2go for the update!! I will update the link on the first post!
                              http://www.fusionlabz.com

                              Comment


                              • I must be doing something wrong as it does not seem to work for me. The ports open and close fine, it does not seem to read anything for some reason...

                                Comment

                                Working...
                                X