[Unity-Arduino] Make Your Own Controller in Unity

ITP CAMP 2019 Session, June 13

https://itp.nyu.edu/camp2019/session/110

I lead a session called, Make Your Own Controller in Unity [Arduino+Unity], at the ITP CAMP 2019. I made sample scripts in Arduino and Unity through Serial Communications. This example has not used any latency and libraries in Unity. These examples made for the basic (but at least experienced) user in Arduino and Unity.

And these are the materials for teaching.

DOWNLOAD

1.Arduino Code (.ino)
https://gist.github.com/hhayley/5a79c8c465efb5af5bfef66c0c35b6e1

2.Unity Scripts (.cs)
https://gist.github.com/hhayley/34328288cc7eb41ac45402dc2ad3c1f2

MATERIALS

  1. Arduino
  2. UNITY Recent version (I tested from 2018.x version and used 2019.1x)
  3. Analog sensors (ex, potentiometer * 2)
  4. Jumper cable
  5. AB cable (Arduino to Computer)

CONTENTS There are 3 scripts in Unity and 2 codes in Arduino.

ArduinoUNITY
1MYOC_ArduinoUnity_Single.inoArduinoSerialSimple.cs
ArduinoSerial.cs
2 MYOC_ArduinoUnity_Multi.inoArduinoSerialMultiple.cs

UNITY SETTING BEFORE using System.IO.Ports;

REFERENCE

I referenced Alan Zucconi site and very appreciated his tutorials!

Leave a Reply

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