Announcement

Collapse
No announcement yet.

UE4Duino - Arduino to UE4 plugin Release!

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

    #91
    Has anyone been able to build a project with this plugin? Every version that comes out I try to do a build and every time I get no errors on build but when I open my exe file I get UE4Duino could not be found please consider building without plugin. Is there something I'm missing to building with this? Thanks!

    Comment


      #92
      Freakin Amazing!!!

      Comment


        #93
        Originally posted by John Michael
        Hi AliasOmega,

        I've been trying to work up a steering wheel controller for quite a while now, but have had some issues. I can only get the plugin to read the first value and after that it stops reading new values from my potentiometer. Do you have any samples you could share with me. I'm designing a simulator for my masters thesis and it would help me immensely. Also, were you working out of the C++ or Blueprint version of UE4?

        - John
        Hi John so I finished this for a University project I'll link you the blog where we finished our work. Though I'd appreciate if you didn't send it as a private message and keep on the forums so other people can see this. Note of warning though as it wasn't fully finished just the wheel and it was done with the steering not fully completed but should give you an idea of what we did. Not sure about some of your issues, you need to be a bit more in depth like which arduino were you using, hows your arduino code, blueprint setup etc. Good luck

        http://thedrivingmachine.blogspot.com.au/

        Comment


          #94
          In regards to my above post:

          I took the executable off of the "Event Tick" Boolean, and switched it to the "InputAxis MoveForward" Boolean, and it's working great now. Video below shows one of my co-workers using the ATV as a controller for UE4. YOu can see the screen in the background has him navigating a course.



          -John

          Comment


            #95
            Originally posted by Jacopo View Post
            [ATTACH=CONFIG]47256[/ATTACH]
            [ATTACH=CONFIG]47271[/ATTACH]
            I'm using that sketch and blueprint with the latest UE4Duino version 1.9 with the unreal version 1.9.1
            The writing to arduino to turn on the led is working fine, but the reading still isn't working.
            Has someone found a solution for that read problem yet? I'd like to use this for my school project.

            Comment


              #96
              Hey all! Have to apologize again that I have been out of touch for so long!

              First off, want to say a big thanks a ton to Providence94 for updating the plugin to 4.9! Awesomesauce!

              @JohnMichael - Very cool with the ATV setup!!

              @jeremycouillard - I have been trying to get the plugin to package correctly, but haven't had success yet. Right now I can get it to package without errors, but when I try to run the game exe it doesn't do anything...I double click on it and it just sits there. I will keep looking into it and let you know if I get it to work. Anyone out there manage to package a working game with the plugin?

              @Lozoo501 - I tried your setup from the images and everything seemed to work ok for me...the light went on and off and I had the SerialRead showing the two text messages on screen. What do you have showing up when you run it?
              http://www.fusionlabz.com

              Comment


                #97
                By the way, if you could figure out how to get support for Android I would be eternally grateful. I'm trying to make an Android app to control an Arduino project, and currently I could do it with Unity, but both Unity 4 and Unity 5 have baked lighting issues on mobile while everything looks amazing and perfect on UE4, only downside is no Arduino support for Android with UE4.

                Comment


                  #98
                  I am in need of UE4duino plugin that is compatible with engine version 4.9.
                  This link doesn't seem to work.
                  https://drive.google.com/file/d/0B7h...ew?usp=sharing
                  Please help.

                  Comment


                    #99
                    Originally posted by grizly32 View Post
                    I tried your setup from the images and everything seemed to work ok for me...the light went on and off and I had the SerialRead showing the two text messages on screen. What do you have showing up when you run it?
                    Code:
                    String input;
                    
                    void setup()
                    {
                    	Serial.begin(9600);
                    	pinMode(13, OUTPUT);
                    	digitalWrite(13, LOW);
                    }
                    
                    void loop()
                    {
                    	//Serial.println("Wazzaaaahhh");
                    	//delay(2000);
                    	//digitalWrite(13, LOW);
                    	//delay(2000);
                    	//digitalWrite(13, HIGH);
                    
                    	if (Serial.available() > 0)
                    	{
                    		input = Serial.readString();
                    		if (input == "ON")
                    		{
                    			digitalWrite(13, HIGH);
                    			Serial.println("TURNED ON");
                    		}
                    		else if (input == "OFF")
                    		{
                    			digitalWrite(13, LOW);
                    			Serial.println("TURNED OFF");
                    		}
                    	}
                    
                    	//Serial.println(2);
                    }
                    Click image for larger version

Name:	blueprint.png
Views:	1
Size:	254.0 KB
ID:	1088114

                    I'm getting a compiler error now, while I don't remember getting that last time although, I can still play the game with the same effect (and problem) as before. The error says something about an array I guess? But I don't have any code besides the blueprint that I've shown which doesn't include one (kinda odd unless it has something to do with the plugin).
                    Info ERROR: System.ArgumentOutOfRangeException: De index valt buiten het bereik. Deze mag niet negatief zijn en moet kleiner zijn dan de grootte van de verzameling.
                    Info Parameternaam: startIndex
                    Info bij System.String.LastIndexOf(Char value, Int32 startIndex, Int32 count)
                    Info bij UnrealBuildTool.UnrealBuildTool.PatchActionHistoryForHotReloadAssembling(List`1 OnlyModules)
                    Info bij UnrealBuildTool.UnrealBuildTool.RunUBT(String[] Arguments)
                    LogTemp: THREAD STARTED!!
                    LogTemp: SERIAL PORT OPENED!!
                    LogBlueprintUserMessages: [FirstPersonExampleMap_C_0] Open
                    PIE: Info Play in editor start time for /Game/FirstPersonBP/Maps/UEDPIE_0_FirstPersonExampleMap 1.31
                    LogBlueprintUserMessages: Late PlayInEditor Detection: Level '/Game/FirstPersonBP/Maps/FirstPersonExampleMap.FirstPersonExampleMap:PersistentLevel' has LevelScriptBlueprint '/Game/FirstPersonBP/Maps/FirstPersonExampleMap.FirstPersonExampleMap:PersistentLevel.FirstPersonExampleMap' with GeneratedClass '/Game/FirstPersonBP/Maps/FirstPersonExampleMap.FirstPersonExampleMap_C' with ClassGeneratedBy '/Game/FirstPersonBP/Maps/FirstPersonExampleMap.FirstPersonExampleMap:PersistentLevel.FirstPersonExampleMap'
                    LogBlueprintUserMessages: [FirstPersonExampleMap_C_0]
                    LogBlueprintUserMessages: [FirstPersonExampleMap_C_0]
                    LogBlueprintUserMessages: [FirstPersonExampleMap_C_0]
                    LogBlueprintUserMessages: [FirstPersonExampleMap_C_0]
                    ..... (alot of these empty logs)
                    LogBlueprintUserMessages: [FirstPersonExampleMap_C_0]
                    LogBlueprintUserMessages: [FirstPersonExampleMap_C_0]
                    LogBlueprintUserMessages: [FirstPersonExampleMap_C_0]
                    LogBlueprintUserMessages: [FirstPersonExampleMap_C_0]
                    LogBlueprintUserMessages: [FirstPersonExampleMap_C_0] SERIAL OPENED
                    LogBlueprintUserMessages: [FirstPersonExampleMap_C_0]
                    LogBlueprintUserMessages: [FirstPersonExampleMap_C_0]
                    LogBlueprintUserMessages: [FirstPersonExampleMap_C_0]
                    ....
                    LogBlueprintUserMessages: [FirstPersonExampleMap_C_0]
                    LogBlueprintUserMessages: Early EndPlayMap Detection: Level '/Game/FirstPersonBP/Maps/FirstPersonExampleMap.FirstPersonExampleMap:PersistentLevel' has LevelScriptBlueprint '/Game/FirstPersonBP/Maps/FirstPersonExampleMap.FirstPersonExampleMap:PersistentLevel.FirstPersonExampleMap' with GeneratedClass '/Game/FirstPersonBP/Maps/FirstPersonExampleMap.FirstPersonExampleMap_C' with ClassGeneratedBy '/Game/FirstPersonBP/Maps/FirstPersonExampleMap.FirstPersonExampleMap:PersistentLevel.FirstPersonExampleMap'
                    LogTemp: THREAD CLOSED!!
                    LogTemp: SERIAL PORT CLOSED!!
                    It's just not picking up the Serial.println() for some reason.. I've tried changing the baud rate and putting the println method on different places, but it just isn't doing anything in unreal.. although it works fine in the serial monitor (and no I didn't have it open when trying in unreal).

                    Comment


                      @madhu27 - Sorry about that....I copied the link incorrectly...

                      Try the link in the first post again...should be good now
                      http://www.fusionlabz.com

                      Comment


                        Hi Guys, A really great plugin and documentation made it very to set up and test. Is there a method to deal with many inputs?

                        Comment


                          I have a strange problem I have had since I started using the plugin. My Unreal project sends sequentially commands on the serial port. it happens that some command is ignored / skipped
                          and the Arduino board doesn't receive the command. If I restart the application (in the editor) the app work correctly and other times not.
                          Launching the same commands from the Arduino "Serial Monitor" everything works properly.
                          I noticed also that doing so many serial write in a short time, they are not being received properly by the arduino board (no comunication)

                          Can you help me please?

                          Comment


                            @Grizly32 (or anyone)

                            Is there any way to view what UE4 is sending over serial when using the serial write command. I'm doing a really basic attempt at lighting an LED when a vehicle goes over a certain speed, but it won't seem to light. I'd use the arduino serial monitor but unfortunately you can't use the serial monitor and UE4duino at the same time. The arduino code worked when I was sending it commands over the serial window, so I assume something is going wrong on the UE4 end.

                            johnmichael

                            Comment


                              Hi Guys, A really great plugin and documentation made it very to set up and test. Is there a method to deal with many inputs?
                              @Moykul

                              Many inputs as in several signals being sent over serial or many inputs as in multiple arduinos? If you are using multiple arduinos you just need to open serial ports for each of your arduinos. If you are hoping to send values for multiple analog signals you need to write them all to a single line with some sort of delimiter between the data. For example: Serial.print(A0); Serial.print(","); Serial.print(A1); Serial.print(","); Serial.println(A2); This would print a single line with three analog inputs from pins 0,1, and 2. It's important to only use Serial.println(); on the last analog signal because that is what the Serial Read boolean is looking for. In your blueprint, there is a function called "Parse Into Array" which will take the values and put them into an array based on what you chose as your delimiter, in the case above ",". Then you can break the values out of the array using "Get Array" and use your data.

                              John Michael

                              Comment


                                I have tested some more with my arduino, it seems to work on 4.9.0 / 4.9.2 with windows 8 laptops..
                                but it does not work on 4.9.0 / 4.9.2 with windows 10 laptops :[] and if you google something like: "windows 10 problems comm port", you do get some results.. :/
                                I think my teacher also tried it with teensy's with the same problem, only working on windows 8.. (i'm not sure about other windows versions)

                                Comment

                                Working...
                                X