I don’t know if it would make a difference to the engine, but would recompiling the plugin in Visual Studio '15 make a difference now that the engine’s native C++ support has been transitioned? Having similar re-install issues others after updating to 4.10.
Hello,
I am very interested in doing some work with Arduino and UE4, but I am a beginner at this field.
Could you provide some example on how to read data from the Arduino and it’s sensors?
I managed to get a project up and running that uses animations via sockets to pass serial data to my Uno and servos (Animatronics). Everything is great except after some time (longest up time 7 minutes) - UE4 crashes with the errors below.
*Access violation - code c0000005 (first/second not available)
I didn’t like the hard coding of c: drives and user name “raghu” so tracked down that to the debug .pdb file which was tossing up this error “CompiledInDefer_UClass_UThreadBP$initializer$aB NeedsDestructor”
And in the mini dump file I get “msvcr120.dll!memcpy() Line 178 Unknown” in Call Stack - “The thread tried to read or write from a virtual address from which it does not have appropriate access.”
I have recompiled the code inside of UE4 and setup VS2013. I see the source is included but can someone give me a short blow by blow how I rebuild the binary files(I’ve tried)? I get these errors using all versions of the plugin on both my Windows 7 and 10 machines. Does anyone already have this solved?
Here is the animation system and UE4 driving behavior of my robot. Two servos are using socket rotation inside of blueprints via the serial arduino plugin. At around seven minutes I run into a stack resource problem but this video is only 15 seconds long.
When will an update be coming for this to work with 4.10 and Windows 10?
I’m trying to get an LED to turn on by walking through a TriggerBox volume in version 4.9, but the Arduino doesn’t seem to be reacting well to it. The RX light on the Arduino UNO lights up every time I enter and exit the volume, but my LED hooked up to pin 13 only lights up intermittently. The LED might light up on time, but it will lag for a couple seconds before turning off after exiting the volume. I’ll walk through the volume again, and it won’t light up, and it will light up 2 seconds later, and it will never turn off. I have to open the serial monitor for the LED to turn off. I’m using the code below:
void setup() {
Serial.begin(9600);
}
void loop() {
while (Serial.available() > 0)
{
if (Serial.readString() == "ON")
{
PORTB |= _BV(PB5);
}
if (Serial.readString() == "OFF")
{
PORTB &= ~_BV(PB5);
}
I used PORTB |= _BV(PB5) and PORTB &= ~_BV(PB5) in replacement of digitalWrite since I thought that might remedy the latency problems that I’m experiencing, but that didn’t fix anything either. I also tried changing USB ports to no avail.
Could anyone help me out with this or know what the problem might be?
Take a look at 's post above. In his code he uses if(junk == ‘^’) . Look at his blueprints - See how they have an append with that same ‘^’ character? The idea is the loop is waiting for that character to show and perform an action. Arduino will just blob the strings together without it. You sort of need to tell Arduino ‘^’ “hey stop and read this - it is separate and important” i.e. (On) ‘,’ oh now stop and read (off). I tried to find the link I used searching for serial multiple servos. Plenty of examples In serial communication of how it works.
It looks like this -> " onoffonoffonoff " which is why it works sometimes but -> on^off,on^off,on^ works every time.
Hope that helps. You might also just want to call is serial port open node after event begin play too.
Do not know if it is still relevant, but I had the same problem under windows 7.
To avoid the respective error I added the “OpenSerial” and “CloseSerial” in GameMode blueprint, and I read the serial from the Character blueprint.
Hi is anyone working on a project with uE4duino and needs to migrate to v4.10 but are unable to ?
I have an arduino heart rate sensor controlling the speed of my character using ue4duino its all working fine in v.4.9 but I want to use the following environment which is only 4.10 compatible.
Has anyone any suggestions for a work around ?
:///marketplace/semi-arid-desert-environment
Thanks for your plugin a lot! I’ve tried the latest version on Unreal engine 4.10.2 under win10. But a massage said that need recompile the plugin. Need wait for you win10 version?
Moonller - It did run on my Windows 10 machine. I tested the plugin on both windows 7 and windows 10. I’m not able to recompile the plugin on windows 10 with 4.10.2 because I have yet to install VS 2015. Try using the blueprint only option and not the C++ blueprint. Make sure to create a plugin directory in your project too. See if that helps.