Many thanks one again for all your work !
How do you make the āIs Serial Port Openā - Node? I RMB on the BP and type these words but nothing pops upā¦
Thatās a member function of the Serial class. So youāll only see it from a Serial variable.
Ok, I will try to find that thanks. Sorry #Newbie
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.
Create a variable from Open:
Call functions on the variable:
Thank you RVillani for your explanation GIFs. I like them a lot. Maybe I can solve my issue.
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.
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.
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.
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
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
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.
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.
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:
I guess Iām missing somethingā¦
P.S.
I figured out:
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.
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!
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?
@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.
@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).