Hello everyone,
this is my first post in this Community, I hope this Post is at the right spot here and someone can help me with my little Problem :)
I’m working on a VR Project in UE4 for the Oculus Quest One, in which I’m supposed to add some kind of HUD or Widget to the Players View. This is supposed to show constantly live-Data from a Arduino or another Bluetooth source. (I already figured out a way to add a Widget constantly to the VR Viewport, so I’m good with that. yay :D (Screenshot: WidgetVR)
I’m very happy I found this Plugin to work with as well. I’m currently working on reading random numbers (between 50 and 100) from a Arduino into the Unreal Engine (4.24) and I’d like to draw the Data (live) into the Widget-Blueprint. I’m very new to UE4 and Blueprints and unfortunately, I’m not good at programming and therefore I like working with Blueprints.
I was looking for a solution for my Problem and I found two Plugins for that. I’m specifically looking for some kind of “read serial” function and fortunately I found to different UE4Duino versions. One of them only works till the Engine Version 4.9 and has exactly the Blueprint I need (“read serial”). (I can’t find another “newer” version for this exact term:
UE4Duino - Arduino to UE4 plugin Release! - Community Content, Tools and Tutorials - Unreal Engine Forums )
It worked perfectly in UE4.9, just the way I needed it and I hoped I could make it work in UE4.24 as well. Therefore, I tried to read the serial with this Plugin here as well, but I can’t read it as proper as with the “read Serial” function.
I know that this UE4Duino Plugin only works on Windows and not on Android. This isn’t the issue. My problem is that I’m not able to properly read the data from the Arduino.
I’d like to draw the Data onto the Widget-Blueprint which I can’t get to work, either it says like “none” or it’s just a blanc space or a 0 (Screenshot: Game_View) where the Data is supposed to be. But it kind of works in the Level Blueprint, I’m able to Print the Data with the Blueprint (Screenshot: Level_blueprint). But I’d like to draw it in the Widget anchored to one spot. I tried different Text Bindings like Screenshot: ReadString, but it seems that my Blueprint is either not properly connected or my references within the blueprint isn’t correct?
I tried different COM ports, plugging the Arduino out and in again, connecting different “read” function from the UE4Duino in Widget- and Level Blueprint, I worked with different Blueprint ideas in the Widget-Blueprint but I just can’t seem to make it work in the Version UE4.24.
Could the Variable be incorrect? (Screenshot: ArduinoVariable) I’m Using the Object Type -> Serial -> Object Reference
I’m sure I could find a simple solution but right now I really can’t see it and I was hoping someone could help me. Like I said I’m a beginner and I hope I’m not bothering you with this little problem.
Here are some screenshots, maybe I’m just connecting the Blueprint wrong or I’m using the wrong Blueprints?
I would really appreciate your help.
Please don’t hesitate to ask for other screenshots or anything that could help me with this problem.
Right now I’m waiting for another Plugin as well but I’d like to work this Problem out with the Arduino because I could also use another VR headset as well, if I could find a solution.
In the End I’d like to show the Data from the Arduino (BPM-Data) and a Progress bar which is connected to the Data to dynamically move with the input data (which I tried and can’t work out either…)
Thank you VERY MUCH in Advance.