Ardity: Arduino + Unity communication made easy View on Asset Store (opens in new tab)

Package details

Latest version
1.1.0
Last updated
First released
Unity version
2018.2.0 or later
Package size
719 KB
Files
19
Favorites
267
Views in the past week
23

Price tracking

Last checked
Tracked since
Lowest recorded
Free on

Ardity: Arduino + Unity communication made easy

by Daniel Wilches (opens in new tab)

4.4 / 5 · 23 ratings

Ratings by stars
Number of ratings for each star rating
5 stars 18
4 stars 2
3 stars 0
2 stars 1
1 star 2
Price Free

Get it free on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for Ardity: Arduino + Unity communication made easy, 6 months Current Free; lowest Free; highest Free in this period. $0 Jun Jul Aug Sep Oct Nov

Asset preview

1 / 2

Ardity: Arduino + Unity communication made easy screenshot 1

Ardity: Arduino + Unity communication made easy screenshot 1

About this asset

Want to connect your Arduino to Unity over a COM port?

Ardity allows bidirectional communication over COM ports from Unity.
(Ardity was previously called SerialCommUnity, in case you are wondering.)

Project WebSite: http://ardity.dwilches.com/
Source code: https://github.com/DWilches/Ardity

How does it work?

You need to add one of Ardity's prefabs to your scene, you configure it with the COM port your Arduino is hooked to, and tweak other config options if you want.
This prefab will do all the thread management, queue synchronization and exception handling for you. It's that easy.

There are several included scenes that show how to read/write data from/to a serial device, so you can start from the samples.

How simple is it to get it working?

Ardity supports two ways of getting data out of your Arduino:

* You can create a message listener, and Ardity will invoke its OnMessageArrived method each time a message comes from Arduino.

* It can put every message coming from Arduino into a queue, and you can retrieve the next message from the queue by invoking the SerialController.ReadSerialMessage() method.

To send data to your Arduino invoke the SerialController.SendSerialMessage() method.

Other features include:

* Using your own custom delimiters for the messages. Defaults to the newline character `\n`.

* Notifying of connect/disconnect events.

Are there any samples for the Arduino side?

If you need a program to test your Unity scene I have created some Arduino samples here: https://github.com/DWilches/Ardity

Have fun with Ardity!

From the publisher's Asset Store listing.