Announcement

Collapse
No announcement yet.

UE4Duino - Arduino to UE4 plugin Release!

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

    @linchee - You might want to start by turning a light on and off using an Uno and the Serial blueprint plugin here that Grizly32 so graciously provided. Turning on and off a light is like Hello World in programming. There are several examples on this thread of the C code you need and the blueprint layouts. There is also one post from Grizly32 showing how to run a servo with code. As far as using blueprints themselves - Unreal has a channel with tons of videos explaining them.

    https://www.youtube.com/user/UnrealDevelopmentKit
    Indie Dev @http://www.numicus.com - Click to download Mac's Trophy Trout Video Game Demo

    Comment


      @linchee - Your name triggers "Post rejected because of a score of: 30 Rejection set to: 30." a lockout when I tried to reply to using your full name. Super annoying
      Indie Dev @http://www.numicus.com - Click to download Mac's Trophy Trout Video Game Demo

      Comment


        @grizly32 I wrote out a fairly long thread replying to you but it never posted. First of all thank you for making this plugin! PM me if you are interested in some of my debug thoughts on what is happening. I've spent a fair amount of time going over it.
        Indie Dev @http://www.numicus.com - Click to download Mac's Trophy Trout Video Game Demo

        Comment


          Thanks grizly32 for developing and making such a wonderful plugin available for us all. It works like charm. My concern is how to communicate with arduino over http/internet in case I need functionality on Android or remotely? Is there some Json/rest/http work around possible or you have any plans to develop such functionality?

          Comment


            Hi MacX - when you are creating a new project on windows 10 did you have the UE4Duino plugin placed in the application plugins folder prior to crating a new project or did you place the plugin into the games content folder after creating the new project ? In either case did you place the entire content of the Ue4duino folder inside the plugins folder or just one particular file ?

            Comment


              Put the ue4duino folder in plugins folder.

              Comment


                Joey,

                C:\Users\Mac\Documents\Unreal Projects\arduino - Where arduino is the name of my project. I create the project then I close UE4. Then I create a plugins folder where I put all of the contents of the UE4Duino plugin in. I then restart UE4

                i.e C:\Users\Mac\Documents\Unreal Projects\arduino\Plugins
                Indie Dev @http://www.numicus.com - Click to download Mac's Trophy Trout Video Game Demo

                Comment


                  So I am trying to move a person using a potentiometer attached to my arduino like shown in an example video. I am not sure how to go about using the serial ports in order to control the character's movement in blueprints. I know I should be connecting all the ue4duino parts to InputAxis MoveForward as well as InputAxis MoveRight but I'm not sure where to go from there. If anyone could help it wold be greatly appreciated. Right now I am just using the third person new blueprint game. I'm trying to add it to the movement in yhe third person character movement.
                  Last edited by Jayzenkid; 02-10-2016, 02:32 PM. Reason: Last Sentence.

                  Comment


                    Originally posted by NomanShah View Post
                    Thanks grizly32 for developing and making such a wonderful plugin available for us all. It works like charm. My concern is how to communicate with arduino over http/internet in case I need functionality on Android or remotely? Is there some Json/rest/http work around possible or you have any plans to develop such functionality?
                    Please someone answer my query.

                    Comment


                      @NomanShah - Sorry for the late reply...I am eventually going to try and incorporate Bluetooth one of these days (not anytime soon though due to other priorities) but as far as using arduino with JSON there is a plugin I found which could maybe be used with UE4Duino?
                      https://forums.unrealengine.com/show...045-JSON-Query

                      Also, I don't see why you couldn't just treat it like a multiplayer network game and start a server with the arduino connected, then connect to the game as a client remotely and just control from the game.

                      However, the two biggest issues remaining are that (1)I am still having problems getting the plugin to package correctly and (2)UE4Duino doesn't work on Android as it is Windows based. I am working on the packaging problem, but don't currently have plans to port to Android.
                      http://www.fusionlabz.com

                      Comment


                        Dear grizly32, thanks for informative reply.

                        As I want to connect arduino through lan/wifi remotely, in order to treat as multiplayer network game, I think I will have to add another pc? While I would like to just add sketch (http server) to arduino and connect remotely to UE4Duino based application. I have gone through JSON Query plugin details and apparently it is not updated for UE 4.10, but I will keep an eye on it.

                        Originally posted by grizly32 View Post
                        @NomanShah - Sorry for the late reply...I am eventually going to try and incorporate Bluetooth one of these days (not anytime soon though due to other priorities) but as far as using arduino with JSON there is a plugin I found which could maybe be used with UE4Duino?
                        https://forums.unrealengine.com/show...045-JSON-Query

                        Also, I don't see why you couldn't just treat it like a multiplayer network game and start a server with the arduino connected, then connect to the game as a client remotely and just control from the game.

                        However, the two biggest issues remaining are that (1)I am still having problems getting the plugin to package correctly and (2)UE4Duino doesn't work on Android as it is Windows based. I am working on the packaging problem, but don't currently have plans to port to Android.

                        Comment


                          Joey,

                          Sorry that method didn't work for you. Until someone recompiles for 4.10 on Windows 10 you might want to try use 4.9 version of the plugin for Windows 10. Beyond that maybe someone else has some suggestions.
                          Indie Dev @http://www.numicus.com - Click to download Mac's Trophy Trout Video Game Demo

                          Comment


                            Hi - its working now - in so far that it doesn't give any errors on opening and shows UE4Duino in the list of plugins installed when I open my project.
                            However....although the plugin will open my serial port it is bringing in a constant reading of "0.0" from my arduino sensor.
                            I have checked this on the 4.9 version with the same Blueprint and it reads the sensor correctly in real time. I've attached a screenshot of the Blueprint.
                            Has anyone any idea why its not bringing in a correct reading with the latest Plugin Version (Using 4.10.2 on Windows 10). Click image for larger version

Name:	ue4.jpg
Views:	1
Size:	85.3 KB
ID:	1100643

                            Comment


                              However, the two biggest issues remaining are that (1)I am still having problems getting the plugin to package correctly and
                              Yes, I also have this problem. I tried to rebuild the plugin from begining by adding the files one by one and commenting out... The error that causes the packaged game not to run lies in either ThreadBP.cpp or ThreadBp.h. But I was not able to find it. Maybe this information helps you, but it's really hard to find if there is no useful errormessage at all.
                              Good Luck!

                              Comment


                                hi ... its a really coool plugin, but im having problems with "read serial" function, it has to return the same character that i send to the BP, but i have no response in the console. read function is not working ...

                                "write serial" function is working fine, i proved it before.

                                Click image for larger version

Name:	issue.png
Views:	1
Size:	114.9 KB
ID:	1100732

                                Comment

                                Working...
                                X