# 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:** 5

<div class="post-metadata">

**Author:** ![anonymous\_user\_4fa0c888](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4fa0c888](https://forums.unrealengine.com/u/anonymous_user_4fa0c888)\
**Post date:** [August 24, 2015, 7:17pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/81 "2015-08-24T19:17:57Z")

</div>

Hey,

A couple questions:  
1)  
I’m working on developing a controller from a physical ATV to control a virtual ATV in my game. I have established a serial connection and can view the serial port as open, but after the first burst of data the serial port no longer communicates and I can no longer send data to UE4. I need this in order to control steering, throttle, and braking in the game.

1. 

When I do a serial write what should be the corresponding line in my arduino code be to capture the data being sent? I haven’t really experimented with this yet, but I need to send quaternion values back to my arduino to be repackaged as udp packets.

Thanks,

---

<div class="post-metadata">

**Author:** ![pixelvspixel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pixelvspixel](https://forums.unrealengine.com/u/pixelvspixel)\
**Post date:** [August 27, 2015, 6:29am UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/82 "2015-08-27T06:29:48Z")

</div>

Just wanted to follow up to my own post, I had success last night altering my arduino sketch a little bit. Turns out the lag I was experiencing was due to tringing my LED with a string over Serial. When I had the board listen for a single byte everything worked much better. I thought I’d share the sketch in case anyone else with little experience stumbles across this thread.

I think it’s also worth sharing that I used a [Littlebits Ardurino Heart module](http://littlebits.cc/bits/arduino) so everything was really really simple to get going with no prior knowledge.

//

// Simple script to test a single port on a Littlebits Arduino Heart with and LED conected  
// to a trigger volume in Unreal 4.

//

const int ledPin = 1; // the pin that the LED is attached to  
int incomingByte; // a variable to read incoming serial data into

void setup() {  
// initialize serial communication:  
Serial.begin(9600);  
// initialize the LED pin as an output:  
pinMode(ledPin, OUTPUT);  
}

void loop() {  
// check for incoming serial data:  
if (Serial.available() \> 0) {  
// read previous byte in the serial buffer:  
incomingByte = Serial.read();  
// turn on the LED:  
if (incomingByte == ‘Y’) {  
digitalWrite(ledPin, HIGH);  
}  
// turn off the LED:  
if (incomingByte == ‘N’) {  
digitalWrite(ledPin, LOW);  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![McChrisco](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@McChrisco](https://forums.unrealengine.com/u/McChrisco)\
**Post date:** [August 28, 2015, 10:36pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/83 "2015-08-28T22:36:25Z")

</div>

Hi , thank you for this awesome plugin!  
I’m trying to map speed values in unreal to analoWrite values. I converted strings to integers, but this method seems to be very slow and unreal crashes very often.  
What would be a better/stable method to control values dynamically?  
also, I’ve see the fusionlabs example on youtube, where the rotation of the puppet is controlled by a Poti. Could you post the example code?  
Any help would be great! 🙂

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_528e91491](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_528e91491](https://forums.unrealengine.com/u/anonymous_user_528e91491)\
**Post date:** [September 7, 2015, 1:28pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/84 "2015-09-07T13:28:35Z")

</div>

I Just updated the plugin to support 4.9 UE. Download with the new link, now it includes the source files for the plugin.

Changes made:-

1. edited file “file\_name”
2. Changed the “Slate.h” header file in “UE4DuinoPCH” to “SlateBasics.h”

Just use the download link below!

://drive.google.com/file/d/0B7hqDvPVJ\_50X2ZYUlZnVkhnZGs/view?usp=sharing

---

<div class="post-metadata">

**Author:** ![pixelvspixel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pixelvspixel](https://forums.unrealengine.com/u/pixelvspixel)\
**Post date:** [September 8, 2015, 5:01pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/87 "2015-09-08T17:01:43Z")

</div>

Hi Providence,

Thanks again for updating this great plugin. I tried downloading the above link, but it keeps saying that I need to request permission for google drive.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_528e91491](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_528e91491](https://forums.unrealengine.com/u/anonymous_user_528e91491)\
**Post date:** [September 9, 2015, 3:39am UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/88 "2015-09-09T03:39:24Z")

</div>

Hi Im sorry.i forgot to change the sharing options.No Worries.I Have changed it now…  
i have updated my post.  
here you go.  
://drive.google.com/file/d/0B7hqDvPVJ\_50X2ZYUlZnVkhnZGs/view?usp=sharing

---

<div class="post-metadata">

**Author:** ![plangton](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@plangton](https://forums.unrealengine.com/u/plangton)\
**Post date:** [September 10, 2015, 7:55am UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/89 "2015-09-10T07:55:36Z")

</div>

Hi,

will there be a 4.9 release as well ? if not what about 4.8.3 ( the latest 4.8 ) ?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4fa0c888](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4fa0c888](https://forums.unrealengine.com/u/anonymous_user_4fa0c888)\
**Post date:** [September 10, 2015, 4:35pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/90 "2015-09-10T16:35:27Z")

</div>

> [@Providence94;373704](#):
>
> I Just updated the plugin to support 4.9 UE. Download with the new link, now it includes the source files for the plugin.
> 
> Changes made:-
> 
> 1. edited file “file\_name”
> 2. Changed the “Slate.h” header file in “UE4DuinoPCH” to “SlateBasics.h”
> 
> Just use the download link below!
> 
> ://drive.google.com/file/d/0B7hqDvPVJ\_50X2ZYUlZnVkhnZGs/view?usp=sharing

Plugin for 4.9 is currently available.

---

<div class="post-metadata">

**Author:** ![Crydrop](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Crydrop](https://forums.unrealengine.com/u/Crydrop)\
**Post date:** [September 13, 2015, 7:48pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/91 "2015-09-13T19:48:38Z")

</div>

I Was Wondering About This A While Ago, That’s A New Cool Type Of Plugins!\*\* Thanx For Sharing.\*\*

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_04b51685](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_04b51685](https://forums.unrealengine.com/u/anonymous_user_04b51685)\
**Post date:** [September 14, 2015, 5:29am UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/92 "2015-09-14T05:29:49Z")

</div>

Hi ,  
been using your awesome plugin over 6 months now. Made a steering wheel set up and now onto making a model smart home but I’m still trying to work out how to use the serial write. What does it tell arduino/ where does it go out? There is like nothing covering that atm. Srry if I’m not getting it though.  
Thanks,

---

<div class="post-metadata">

**Author:** ![jeremycouillard](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jeremycouillard](https://forums.unrealengine.com/u/jeremycouillard)\
**Post date:** [September 14, 2015, 2:00pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/93 "2015-09-14T14:00:34Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![arniecank](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@arniecank](https://forums.unrealengine.com/u/arniecank)\
**Post date:** [September 14, 2015, 11:28pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/94 "2015-09-14T23:28:05Z")

</div>

Freakin Amazing!!!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_04b51685](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_04b51685](https://forums.unrealengine.com/u/anonymous_user_04b51685)\
**Post date:** [September 15, 2015, 12:24am UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/95 "2015-09-15T00:24:49Z")

</div>

> [@](#):
>
> Hi ,
> 
> 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?
> 
> -

Hi 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:///

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_4fa0c888](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_4fa0c888](https://forums.unrealengine.com/u/anonymous_user_4fa0c888)\
**Post date:** [September 17, 2015, 9:44pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/97 "2015-09-17T21:44:16Z")

</div>

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.

-

---

<div class="post-metadata">

**Author:** ![Lozoo501](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lozoo501](https://forums.unrealengine.com/u/Lozoo501)\
**Post date:** [September 17, 2015, 11:39pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/98 "2015-09-17T23:39:03Z")

</div>

> [@Jacopo;328774](#):
>
> ![4a5bfdb6556daabb244833635b2cf5b814fe3407.jpeg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/5/4a5bfdb6556daabb244833635b2cf5b814fe3407.jpeg)
> 
> ![Blueprint.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/f/0f558b5ebbb926280674e2cbdd1bb5ff63fe9299.png)

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.

---

<div class="post-metadata">

**Author:** ![grizly32](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@grizly32](https://forums.unrealengine.com/u/grizly32)\
**Post date:** [September 22, 2015, 3:17pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/101 "2015-09-22T15:17:47Z")

</div>

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!

@ - 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?

---

<div class="post-metadata">

**Author:** ![darthviper107](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/darthviper107/32/710746_2.png) [@darthviper107](https://forums.unrealengine.com/u/darthviper107)\
**Post date:** [September 22, 2015, 4:13pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/102 "2015-09-22T16:13:05Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6f4ef71e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6f4ef71e](https://forums.unrealengine.com/u/anonymous_user_6f4ef71e)\
**Post date:** [September 24, 2015, 7:00am UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/103 "2015-09-24T07:00:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Lozoo501](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lozoo501](https://forums.unrealengine.com/u/Lozoo501)\
**Post date:** [September 24, 2015, 6:29pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/104 "2015-09-24T18:29:22Z")

</div>

> [@;384522](#):
>
> 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?

```auto

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);
}

```

 ![blueprint.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/f/dfa65f246853d45c4750291509b36d87b965425d.png)

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).

---

<div class="post-metadata">

**Author:** ![grizly32](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@grizly32](https://forums.unrealengine.com/u/grizly32)\
**Post date:** [September 25, 2015, 1:02pm UTC](https://forums.unrealengine.com/t/ue4duino-arduino-to-ue4-plugin-release/28963/105 "2015-09-25T13:02:34Z")

</div>

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

Try the link in the first post again…should be good now 🙂

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

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