LeKok,
If you have your serial monitor open, the Arduino IDE is controlling the serial port you’re sending data over. Close the Serial Monitor, or the Arduino IDE as a whole, and try printing values to the screen again in your game.
LeKok,
If you have your serial monitor open, the Arduino IDE is controlling the serial port you’re sending data over. Close the Serial Monitor, or the Arduino IDE as a whole, and try printing values to the screen again in your game.
I’ve done what you said, but the program still doesn’t work.
I got the program finally working by using another version of the program, however it now has two problems.
The first problem is that I get a value for the potmeter on the screen, but the value isn’t updated during the program. It just prints the same value over and over again. The only way to get another value is when I close my project and start it again. This is also the only time that the output log says that the serial port is open.
When I stop the program and play it again, it gives an error for opening the serial port and just prints the same value as the first time.
Does someone know why the program isn’t working correctly?
windows 10 update
Thanks for the windows 10 update.
For anyone who was getting a serial connect but no read values or nothing printed on screen this will fix the issue.
Hey LeKok, sorry you are having problems! What Unreal Engine and Windows versions are you using?
I’m using Windows 10 and Unreal Engine version 4.9.2. I also use the windows 10 update of the plugin.
Hi, we’re running into some issues with the Windows 10 Plugin for 4.9.2
The serial is only reading the first value and not updating on subsequent read serials, and we get occasional crashes with the following message:
Lekok,
I had similar problems when I started using UE4duino. What kind of game are making? I am making a driving simulator and instead of using “event tick” to check the serial port I used “Input Axis MoveForward” to read the serial port. This may be worth trying, and that event boolean should be available for most types of games.
Amazing work!!! I m new to arduino and found this plugin super useful and I m so excited about it. I also got the problem with Win10 UE engine 4.9.2. I used the old ver of plugin, which works great but fail on readSerial in UE, but when i tried UEwin10duino, it cant check openSerial from the beginning, looks failed to connect.
I am making a game where one can cycle through a world. I use the arduino + potmeter to simulate a steer. At the moment I only get the value on the screen when I am using gamemode, and there is Ïnput Axis MoveForward" not available. When I put the program in another bluepront class, I don’t get any value on the screen.
Leron
Hello,
As some of you have noticed, the plugin has a problem with Windows10: reading from Arduino to PC works fine, but writing from PC to Arduino does not work. Skittluier has tried to remedy the problem, but his solution does not work on all machines (he is a student in my class, so I know what I am talking about). I made a new version, which works on both my machine (Windows 8) and his (Windows 10), and it can be downloaded from here: ://drive.google.com/file/d/0B5YmlRw-1rCrM0dfRXRzVG13dDg/view?usp=sharing
Hope this helps!
Hey LeKok,
Unfortunately I don’t currently have Windows 10 on any of my systems to test on. I am hoping to get it installed soon though. From the errors TriumphantBass posted it looks like it might be a threading issue…
Thanks Gidi2Go, it works on my win10 now too!!
Opps, must not have refreshed the page before writing my last post!
Thanks Gidi2go for the update!! I will update the link on the first post!
I must be doing something wrong as it does not seem to work for me. The ports open and close fine, it does not seem to read anything for some reason…
I have the same problem with the new plugin. Am I doing something wrong or are there still some problems wit hthe plugin and windows 10?
Hey (or anyone),
I got that example you put up for turning an LED on and off to work well, but I’m struggling to scale it up to a more complex level. I am trying to get the body rotations from the ATV out onto the Arduino to do some controlling. The Arduino appears to be reading the data fine, but it is not handling it in the code perhaps? The pictures attached have the blueprint and code. Any and all help is appreciated!
Hey !
On line 17 of your Arduino sketch I think it needs to be “!=” instead of “==”.
If that doesn’t fix it let me know!
Made that change after picking through how the code actually functioned. It’s still not working. My most recent attempt I’ve tried beginning and ending the Serial Write string with a hat in order to clear the rotation variable before the usable string is concatenated. Any other ideas?
The plugin for 4.9 also works on the 4.10.
I’m able to use the Plugin only in editor mode. I get this error when trying to play a windows executable I’ve created
Plugin ‘UE4Duino’ failed to load because module ‘UE4Duino’ could not be found. Please ensure the plugin is properly installed, otherwise consider disabling the plugin for this project.
My project it’s already a Code Project, and rebuilding the entire solution doesn’t work for me. How to get this plugin work correctly?