[Free][Windows only] UE4Duino 2 - Arduino (COM port) communication

Hi! can i get a vesion for 4.25.4 ?

Hello,
I tried this solution.
However I see strange value when print on Unreal:

for 23.56 I see " -520849213389117849600.0 " in Unreal.

I put your blueprint to the Event Tick node. The Ardino code is executed when I push a button (a simple if when the button is in high status).

The sketch is:

 buttonState = digitalRead(button);
 //Serial.println(buttonState);
 
 if(buttonState == HIGH) {
          float floatVal = 23.56;
        byte *b = (byte *)&floatVal;
        
        Serial.write(0xFE);
        
        int i;
        for (i = 0; i < 4; i ++){   
            Serial.write(*b);
        }
 }

The blueprint is: ArduinoUE4_blueprint

I set the Control Byte as ā€œ254ā€.

I donā€™t see anything strange in my code, but maybe I am missing something.

Could you\someone help with this ?

I just want send information from arduino to unreal in the right way without losing information due to different speed.

1 Like

I think I figured out your problem. You canā€™t have the serial port open in the arduino program open! restarted my arduino program and then started unreal and it started working. I then tried to open the serial monitor and it said it couldnā€™t because the port was open!

1 Like

Hello, I use ā€œread lineā€ on event tick, but it works very slow, how can I read 1 line from serial faster?
My example: Slow_readingLine posted by anonymous | blueprintUE | PasteBin For Unreal Engine 4

1 Like

you need Serial.write(b[i]) inside the for loop instead of *b, which is the same as b[0] on every iteration.

It is a bit slow, but not much. Can you confirm it isnā€™t the JSON interpreting thatā€™s also consuming a lot of time?

I solved it. Itā€™s true that JSON parsing too slow, now I use ā€œRead stringā€ and delay on arduino for transmitting data line by line.

Hi! Iā€™m pretty new to all of this, so Iā€™m probably overlooking an obvious step.

The plugin is working perfectly fine for me in the Unreal Editor. Everything works as intended.

But as soon as I package the project and open the resulting application I get the following error message:

Iā€™m using UE 4.26.2 and the plugin version I found under UE4Duino_2.2.5_UE4.26.1.

Iā€™m not getting any errors from Unreal itself when I package the project but it lists 1 warning in the UE4DuinoLog (wherever that is).
Iā€™ve tried Development and Shipping as build configurations with the same result.

This might be some very basic mistake Iā€™m making but Iā€™m not sure how to solve this issueā€¦ :sweat_smile:

1 Like

Hi there! Thank you for the brilliant plugin! It works perfectly!
I was wondering if its possible to automatically find the right port? I Imagine if I send this game compiled to other people they will have different ports than me.

Hello , I am totally new to this but I see that there is not a 4.27 latest version of the plugin , is it anywhere available ? Would the version 4.26 work with Unreal engine 4.27 update?

Install it for 4.26 and it will give you an option to compile it when you open it with 4.27. Worked fine for me.

Many people have this problem because not everyone has all the SDKs available and it would not compile.
I forked this project and taking a different path.
The plugin is called now ā€œSerial COMā€ and is compatible with all Unreal Engine (including UE5)

2 Likes

Thanks a lot for keeping this up-to-date! Using this new version solved my problem from above. Itā€™s working perfectly now! :grinning_face_with_smiling_eyes:

One thing I had to do differently though: The packaging process didnā€™t work for me when I installed and packaged the plugin from the project folder.

I probably did something wrong there, but in case anyone else (who is also inexperienced with UE) encounters this problem: copying the plugin folder instead to

\Program Files\Epic Games\UE_4.XX\Engine\Plugins

and then activating it from there in the Unreal Editor solved my issue. :woman_shrugging:

1 Like

I just want to make sure you are talking about the new version.
Anyone talking about the updated "Serial Com"v3, please go to this thread instead. Thanks.
https://forums.unrealengine.com/t/new-free-arduino-serial-communication-plugin-serial-com-v3-fork-from-ue4duino/

Hi, can you share the blueprint template for getting data from arduino?

hello sir, i am using serial com plugin for unreal engine 5.0.3 i wanted to transfer esp8266 nodemcu and dht22 temperature data from arduino ide to unreal engine and i am getting temperature data in arduino ide serial monitor and i created blueprint in unreal engine read data from arduino ide but i am not getting data in unreal engine here are some problems
1- i using your OPEN SERIAL PORT WITH CONTROL FLOW (ON-ON BY DEFAULT) blueprint but didā€™nt work
2-another problem is when i connect my USB cable USB PORT of computer and i give correct port number(6) and baud rate(9600) in the open serial port node with flow control and its shows PORT NOT IS INITIALIZED but when I put port number as 3 or 5 its shows PORT IS INITIALIZED,but when disconnect the USB cable from computer USB port
when i put 3 or 5 as PORT number then also its shows PORT IS INITIALIZED but when i put port number 6 its shows PORT IS NOT INITIALIZED.but i checked in device manager to cross verify the port number there also its showing COM6 only
3-but i am getting any data in unreal engine from arduino ide i created widget also and i binded it also but after all this i just want to print that data in unreal engine please help me what is the problem


this blueprint i created

this my full blueprint

this is my code

Hello. I would like to ask; are there any baud rate limitations?