# UE4Duino - Arduino to UE4 plugin Release!

**URL:** <https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [May 1, 2015, 3:03pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963 "2015-05-01T15:03:23Z")\
**Posts on this page:** 20\
**Page:** 19

<div class="post-metadata">

**Author:** ![Speck97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Speck97](https://forums.unrealengine.com/u/Speck97)\
**Post date:** [May 29, 2017, 8:07am UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/381 "2017-05-29T08:07:44Z")

</div>

Many thanks one again for all your work ! 🙂

---

<div class="post-metadata">

**Author:** ![Speck97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Speck97](https://forums.unrealengine.com/u/Speck97)\
**Post date:** [June 1, 2017, 5:19pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/382 "2017-06-01T17:19:07Z")

</div>

How do you make the “Is Serial Port Open” - Node? I RMB on the BP and type these words but nothing pops up…

---

<div class="post-metadata">

**Author:** ![RVillani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rvillani/32/1194572_2.png) [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Post date:** [June 1, 2017, 5:52pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/383 "2017-06-01T17:52:10Z")

</div>

That’s a member function of the Serial class. So you’ll only see it from a Serial variable.

---

<div class="post-metadata">

**Author:** ![Speck97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Speck97](https://forums.unrealengine.com/u/Speck97)\
**Post date:** [June 2, 2017, 6:51pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/384 "2017-06-02T18:51:03Z")

</div>

Ok, I will try to find that thanks. Sorry #Newbie

---

<div class="post-metadata">

**Author:** ![Speck97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Speck97](https://forums.unrealengine.com/u/Speck97)\
**Post date:** [June 5, 2017, 11:48am UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/385 "2017-06-05T11:48:21Z")

</div>

Excuse me, I haven’t found it yet. Could someone send me a proper ue4-Manuel-link so I can understand this general knowledge, please. To know the right search\_word for this, I find it difficult. Or maybe explain it to me simple-step-by-step, how to find this (“Is SerialPort Open”)\_Node, please.

---

<div class="post-metadata">

**Author:** ![RVillani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rvillani/32/1194572_2.png) [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Post date:** [June 5, 2017, 7:35pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/386 "2017-06-05T19:35:25Z")

</div>

Create a variable from Open:  
 ![ue4duino1.gif](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/6/569a4cb6904f375653e5acc127aaec24ec7aa17f.gif)

Call functions on the variable:  
 ![ue4duino2.gif](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/8/7818ece4829032ef187e2ae6e8911ec835c82b86.gif)

---

<div class="post-metadata">

**Author:** ![Speck97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Speck97](https://forums.unrealengine.com/u/Speck97)\
**Post date:** [June 5, 2017, 10:19pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/387 "2017-06-05T22:19:07Z")

</div>

Thank you RVillani for your explanation GIFs. I like them a lot. Maybe I can solve my issue.

---

<div class="post-metadata">

**Author:** ![RVillani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rvillani/32/1194572_2.png) [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Post date:** [June 7, 2017, 1:58am UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/388 "2017-06-07T01:58:03Z")

</div>

v2.2 is out!

**2.2 UPDATE!**

Info, binary[SIZE=2]SUP[/SUP] and source downloads — UE4Duino v2.2 on GitHub[/SIZE]

\*\*New: \*\*4 utility nodes for converting from and to bytes/int/float:

- BytesToInt — Convert 4 bytes in little-endian order into an Integer.
- BytesToFloat — Convert 4 bytes in IEEE 754 standard into a Float.
- IntToBytes — Convert an Integer value into 4 bytes in little-endian order.
- FloatToBytes — Convert a Float value into 4 bytes matching the IEEE 754 standards.

---

<div class="post-metadata">

**Author:** ![HavocX](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HavocX](https://forums.unrealengine.com/u/HavocX)\
**Post date:** [June 7, 2017, 9:07pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/389 "2017-06-07T21:07:19Z")

</div>

This plugin needs a new tread. I almost dismissed it as the first post makes it look like 4.10 is the last supported version.

---

<div class="post-metadata">

**Author:** ![RVillani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rvillani/32/1194572_2.png) [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Post date:** [June 7, 2017, 10:22pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/390 "2017-06-07T22:22:13Z")

</div>

You’re right. Since I didn’t create it, I can’t update that post. I’ll create a new thread once there are new updates and post the link here.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8987ab27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8987ab27](https://forums.unrealengine.com/u/anonymous_user_8987ab27)\
**Post date:** [June 14, 2017, 10:23pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/391 "2017-06-14T22:23:36Z")

</div>

Found a upgrade for those interested.

://forums.unrealengine.com/showthread.php?68643-UE4Duino-Arduino-to-UE4-plugin-Release!

It may not look like it in the first post, but there was just a new release for 4.16.1:  
://github.com/RVillani/UE4Duino/releases/tag/v2.2

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fa13547a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fa13547a](https://forums.unrealengine.com/u/anonymous_user_fa13547a)\
**Post date:** [June 18, 2017, 10:45am UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/392 "2017-06-18T10:45:09Z")

</div>

There is a problem with my arduino pro mini with mpu9250 and latest plugin. Old version for 4.10 was working perfect. Data stream from read line was coming very smooth. But with later plugins all the time I’m getting messy readings in unreal engine. There come like 15 lines (just example) normal readstring readings and something messed up and again normal reading.

I wonder what’s changed . Btw arduino code was not changed so messing goes on in UE4 side.

example of UE4 print string:

104.55  
105.45  
104.35

.35  
04.35  
105.33  
104.54

this is what i get when run a game

---

<div class="post-metadata">

**Author:** ![JoshHD22](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoshHD22](https://forums.unrealengine.com/u/JoshHD22)\
**Post date:** [June 19, 2017, 3:31pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/393 "2017-06-19T15:31:48Z")

</div>

Hi,

Very new to this. I don’t know if it’s me doing something wrong or the plugin? I’ve managed to install the plugin, it’s showing up fine inside Unreal Engine 4.16.1.  
In my Blueprint editor, I’m only getting ‘Open Serial Port’ under my Executable Actions… I can’t close or read the serial port?

I’ve tried making a new project, resetting the machine, redownloading the 2.2 UE4Duino Plugin… Im getting pretty desperate. Has anyone else come up against this issue?

Any pointers greatly appreciated. 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8987ab27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8987ab27](https://forums.unrealengine.com/u/anonymous_user_8987ab27)\
**Post date:** [June 20, 2017, 7:15pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/394 "2017-06-20T19:15:41Z")

</div>

maybe… First I didnt find al the arduino executable actions but I disabled cotext sensitive in the blueprint selection menu. Some things are so easely to be overseen… Hope it helps :0) (anyway when I get my usb to relays from ali expres I will open a new thread (I will have my fan with my magic carpet working)).

maybe we can stay in contact http://.com/

greetings.

---

<div class="post-metadata">

**Author:** ![Desprit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Desprit](https://forums.unrealengine.com/u/Desprit)\
**Post date:** [June 24, 2017, 9:23pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/396 "2017-06-24T21:23:46Z")

</div>

Could someome explain please on how to close serial port in v2.2? I successfully opened it and printed “open” message. But when I run my scene again, I get “Failed to open port COM3” which I think is caused by com port remains opened. I need to “uninstall” that port from device manager.  
Here is what I made trying to close it:

 ![serial.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/8/88c7c09199e139b5d627923b3b3326f8928ced01.jpeg)  
I guess I’m missing something…

P.S.  
I figured out:

 ![15e9cf25bb0a67b7d4455682d3acd91eddf14c54.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/5/e/15e9cf25bb0a67b7d4455682d3acd91eddf14c54.jpeg)

---

<div class="post-metadata">

**Author:** ![RVillani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rvillani/32/1194572_2.png) [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Post date:** [June 27, 2017, 1:10am UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/397 "2017-06-27T01:10:37Z")

</div>

**HotFix and new thread**

Guys, I made a hotfix for the plugin and started a new thread for it, so people that find it see it’s up to date.

@Aiduss, show me your Blueprints on the new thread. I’ve had a similar problem once and it was a Blueprint error. I was trying to read data too soon after opening the port. Also, try flushing the port right after opening it.

@JoshHD22 and @game\_master\_jodan, don’t disable context sensitive on the function list. It fills it with garbage. The functions for doing anything besides opening the port you access through a Serial instance. One is returned for you when you open the port. Store that in a variable to use it later (like I did here). If you guys don’t understand variables, instances and classes concepts very well, I recommend studying the Blueprint tutorials on Youtube and also a bit of Object Oriented Programming.

---

<div class="post-metadata">

**Author:** ![MacX](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/macx/32/88718_2.png) [@MacX](https://forums.unrealengine.com/u/MacX)\
**Post date:** [July 23, 2017, 10:41pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/398 "2017-07-23T22:41:44Z")

</div>

Unreal Robot Project

This is a video game coming to life! Here is my robot built using this plugin. Thanks for making it thread safe - my robot hasn’t crashed once! I wrote a custom sketch to handle special bytes 255 and 254. I use these as start packets for bring other bytes over. Everything I programmed is included on the pages in this thread in order to marry Unreal and Arduino together. I also used several other Unreal plugins for voice, etc. Almost all the Unreal programming was done in blueprint. I think Unreal would make an amazing robot OS and this barely scratches the surface of what is possible and what is coming. I hope you enjoy the robot and video! Unreal Engine can do some amazing things!

---

<div class="post-metadata">

**Author:** ![xG\_V3RT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xG\_V3RT](https://forums.unrealengine.com/u/xG_V3RT)\
**Post date:** [August 31, 2017, 8:12pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/399 "2017-08-31T20:12:17Z")

</div>

I have been trying to get this to work for some time, not having any success. I have my Arduino outputting a stream of 1’s and 0’s depending on a button state. Using the serial monitor I can see that everything is working properly and that the output is clean and as expected. The issue I am having is getting that data into the blueprint. I want to use the input ‘1’ to change the flicker speed of a light to .2 and I want ‘0’ to reset it to the flicker speed of 1.0. I am not sure exactly how to do this within the Blueprint editor however.

://forums.unrealengine.com/filedata/fetch?filedataid=115894&type=thumb

This was an educated guess on how it might work, but I really don’t know. If “Selection” on the ‘Switch on Int’ node is set to 0 or to 1 the result is as expected however apparently I am either not getting the data into the blueprint, I am not handling it properly, or both. One thing to note is this is a constant stream of data, should I base it off of the Event Tick instead? Any thoughts?

---

<div class="post-metadata">

**Author:** ![RVillani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rvillani/32/1194572_2.png) [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Post date:** [August 31, 2017, 8:23pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/400 "2017-08-31T20:23:57Z")

</div>

@jwsargent.me Why are you using LineEndToString?!?! It’s description says “Converts a LineEnd enum value to String.” It has nothing to do with reading data from Arduino. You want to use ReadByte, to read the next 0 or 1 from the Arduino. Right after it use FlushPort. Because if you don’t and Arduino is sending data faster than Unreal is reading it (once at each frame), Unreal will start to get late in relation to Arduino.

---

<div class="post-metadata">

**Author:** ![RVillani](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rvillani/32/1194572_2.png) [@RVillani](https://forums.unrealengine.com/u/RVillani)\
**Post date:** [August 31, 2017, 8:27pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/401 "2017-08-31T20:27:59Z")

</div>

@jwsargent.me Also, how are you sending the data from Arduino? If it’s using printl, forget it. That sends the numbers as characters, with line ends and ReadBytes will read each char of that message as a byte (not 0 and 1). So try using Serial.write(1) (or 0).

[Previous page](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963.md?page=18)

[Next page](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963.md?page=20)
