Arduino – Unity serial communication

Control parameters in Unity with sensors connected to the Arduino and control actuators connected to Arduino from Unity.

Art & Technology student Tiuri de Jong did a project on Arduino and Unity communication. The goal was (and still is) to create an easy workflow and tutorial on how to connect Arduino with Unity (free version). Due the serial implementation in the Mac OSX version of Unity, this part still doesn’t work. Suggestions and contributions are welcome on the project page.

Project: unity-arduino with serial connection

This project uses Unity (which uses C# and JavaScript scripting), the Arduino and/or SerialProxy to connect the Arduino to Unity. Thus allowing custom hardware to be linked to Unity (in real-time).

The link is established in Windows using the Mono implementation of System.IO.Ports.

For Mac/OSX users, I’ve made an implementation that uses SerialProxy because direct serial connection doesn’t work on the mac. The problem is, though, that the SerialProxy implementation doesn’t seem to work either.


Buy Me a Coffee at ko-fi.comWas this article useful to you? Buy me a coffee!

One thought on “Arduino – Unity serial communication”

  1. is it possible for Unity3d to receive the values coming from the DHT11 sensor (humidity or temperature sensor) with arduino as its IDE ?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.