- Home /
Uniduino, Arduino & Unity 5
Hi Unity Community!
I have been trying to work with Unity and Arduino microcontrollers on OS X (10.9), first using the System.IO.Ports approach, but as is well documented on the web this is a tricky endeavour with OS X, so I opted to go for the Uniduino plugin by EDWON to speed things up.
When trying to connect an Arduino Uno (using Standard Firmata) to Unity 5 at a baud rate of 57600 on comport 3, the Arduino seems to have some form of connection (designated by the Tx led response when ‘Query’/'Connect’ etc are clicked on the test panel) but the Unity scene remains at the ‘Guessing that arduino is device…’ (it is attempting to connect to the correct port).
I have posted on the Uniduino forum, but have not heard back from the developer; does anyone know if Uniduino is still being maintained? Is it compatible with Unity 5?
Or alternatively has anyone successfully managed to resolve the ports issue when to connecting an Arduino to Unity on OS X? Any information on this current status would be greatly appreciated!
Many thanks in advance, Ryan
Answer by sebastian960 · Oct 22, 2015 at 08:18 AM
@ RyanAchtenSoma , man, I found this information about the comunication Between Arduino and unity 3d . This is the link : http://www.alanzucconi.com/2015/10/07/how-to-integrate-arduino-with-unity/
Could you say me the way of Which you fix the problem , please?
As I'm not currently working on a project using Unity && Arduino at the moment, I can't verify this resource personally. This tutorial looks like a solid resource though; will remember this when I encounter this problem again!
Will accept this as the correct answer due to the lack of alternatives outside of pursuing Uniduino.
Answer by DennisVH · Oct 22, 2015 at 10:11 AM
I also wrote a small tutorial for hooking up an arduino (not osx specific though), you'll find it at:
http://ignisvr.com/arduino-unity-vr/
cheers!
Looks awesome, thanks for that! Wish I had found these tutorials a few months ago
Answer by Voronoi · Jun 21, 2016 at 05:02 PM
This is not the first time I've had to solve this - slow reading of incoming Arduino sensor data. So, I finally looked into a decent fix. This is a very simple Git project that creates a new thread for reading from the Serial port and properly kills it upon exit. This is much faster than trying to read on the main thread or by using a co-routine:
Your answer
Follow this Question
Related Questions
Arduino with Unity: Bad Framerate! 3 Answers
How to find port of bluetooth 0 Answers
Trying to read an integer value from ReadLine() 1 Answer
Unity 3D Set a Default Com Port 0 Answers
Help with Unity communicating with Arduino (serial port communication) 0 Answers