UE4Duino - Arduino to UE4 plugin Release!

ok i got my microcontroller from the mail today,i’ll start doing stuff for it tommorow

Hello @Velocityx

I hope that you achieve solve this problem …

The ideal is to compile the game using this plugin.

I’m not a programmer but if you need help with something, I will gladly’m willing to Collaborart …

@Velocityx what does the “f**ck serial” node do?

i had issues getting the code to work because the old one worked cause it got itself slow enought for the buffer not to empty before it got filled,so i was wondering why it didn’t work for me so i made a function to pull the buffer on command amd thats how i found out i needed to use a function that the plugin didn’t have because it was so slower,basically that node is just a debug node,but all my debug stuff is normally curse words XD

Wchich plugin version i tried with 4.10 but didn’t recompile :frowning:

i think in 2 days i’ll have the plugin rewriten for 4.12 with the ability to actually package it and some other improvements

Hello @Velocityx

I’m glad that you can fix this plugin

All cumindad should be very grateful to you

Thank you for your great contribution :slight_smile:

Hello @amauricio3d!

I’ve released a cross platform Arduino plugin for UE4 that works in 4.12. If you want to check it out, you can take a look at: ://forums.unrealengine.com/showthread.php?118851-FREE-ArduinoKit-Cross-Platform-Arduino-Plugin-for-UE4

@danielvmacedo
Hey, thanks for sharing this! It works fine even in packaged Game!
@Velocityx
Thanks for your work. Check out danielvmacedo’s version he now already did it and it might save you some time… :slight_smile:

@danielvmacedo
Hi I further tested it, if I print the String it looks alright, but as soon, as I try to convert the ReadText to a float, the Values start to strangly jump around. I guess the String is not correctly converted.
Any Ideas how to fix this?
Thanks!

HI, was your promblem solved ? I met the same condition!

Hello
@Velocityx @danielvmacedo @brownoo

It has managed to fix the UE4Duino or ArduinoKit plugin?

The problem is that UE4Duino can not be packaged …

I tried another plugin called ArduinoKit, developed by @danielvmacedo this plugin if you can package, but when running, after a few minutes resulting in a crash… This almost ready

Hopefully we will soon have a fully functional plugin, either ArduinoKit or UE4Duino

Any solution?

Cheers

UE4duino can be packaged so first u should create black c++ project and build it with VS2015, add the ue4duino plugin (delete the binaries and intermediate) and build your plugin
and try to package !

Hi guys! I see you’ve managed to get it working under 4.12! Kudos for that! Can anyone share working version with us - non coders :slight_smile:

Hi All:

I had try use this plugin in different version of UE4 both 4.9 and4.10 under windows 10 , both of them can not open the serial port in the UE4(I’m just simply serial println number 2, I don’t know what I got wrong.Serial monitor are working fine in arduino, and I did close it before I test in ue4.

Got this working on 4.13.1 on Windows 7

Download UE4Duino_4.10 plugin
Open your UE4 4.13 project first, add an empy C++ class (even when you’re only using Blueprints, this will convert your project to be C++ compatible, you need Visual Studio 2015)
Save and quit your project, make a Plugins folder in your project and copy UE4Duino_4.10 into it.
Start your project again, now it will ask you to rebuild the plugin, click yes, and the plugin should now work with 4.13.1

I’m a complete beginner with Arduino, but so far I managed to toggle the little light on and off on the Arduino board, by pressing a button in UE4.

Do you think it will work on Win10, too?

Can’t say for sure, I don’t have W10, but I don’t see why not.

Confirmed working in W10 UE 4.13.1 with Visual Sudio 2015 Community Edition. It’s important to install the right stuff with the VS installation (common tools).

But is it normal that UE crashes very often when using this plug? I have build a very basic setup in the FP-Shooter template (mostly taken from this thread) and it works. But after ten or so executions of the trigger events UE crashes. (Win10, UE 4.13.1, Arduino Unos)

Arduino sketch:

int incomingByte;

void setup() {
// put your setup code here, to run once:
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LOW);
Serial.begin(115200);

}

void loop() {
// put your code here, to run repeatedly:

incomingByte = Serial.read();
if (incomingByte == ‘Y’)ssssss
{
digitalWrite(LED_BUILTIN, HIGH);
}
else if (incomingByte == ‘N’)
{
digitalWrite(LED_BUILTIN, LOW);
}
}

Level Blueprint: