• This repository has been archived on 22/Aug/2021
  • Stars
    star
    644
  • Rank 69,893 (Top 2 %)
  • Language
    C#
  • License
    MIT License
  • Created about 7 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

(Archived) Simple communication between Unity3D and Arduino - by Maxim xyz.


Super fast communication between Unity and Arduino โ˜„ โฑ

Create an Arduino and Unity3D interactive experience with no latency ! โฑ

Arduino to Unity made simple

If you have ever wanted to transmit data from Arduino to Unity3D the main issue is INSANE LATENCY. We didnโ€™t find any free, optimized, and customizable solutions to tackle this problem. So I built wrmhl. You can now connect any Arduino interface to Unity3D.

You can use the default protocol, or implement your own without having to deal with thread just by changing wrmhl/Assets/WRMHL/Scripts/Thread/wrmhlThread_Lines.cs.

Getting Started

How to Install

You can either install it using Git or direct Download. Or from the command line:

# Clone this repository
$ git clone https://github.com/relativty/wrmhl

Uploading to Arduino ๐Ÿค–

Upload to the Arduino the following program:

Path: wrmhl/Arduino/Arduino.ino

On Unity3D ! ๐Ÿ’ป

Open the project either from wrmhl folder or wrmhl-master ๐ŸŒˆ

Import the Package ! ๐Ÿ“ฆ

Assets, Import Package and Custom Package.. and you're good to GO ! โšก๏ธ

Important ! โš  Change the .NET 2.0 Subset to .NET 2.0 โš 

In order to do that : Go to Edit โžญ Then Project Settings โžญ Player, and under Other Settings find an option that reads Api Compatibility Level and change it from ".NET 2.0 Subset" to ".NET 2.0".

Run it ! ๐Ÿ ๐Ÿš—

Select Assets/WRMHL/DemoScenes and choose the demo of your choice !

Don't forget to leave some feedback, contributions and suggestions are always welcome ! ๐Ÿค