This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How do I integrate the nRF51/nRF52 in my Unity based Android Application?

I've been using a HC-05 (bluetooth v2.0) to communicate between my Unity-Android app and my Arduino microcontroller. It's working fine, however, if my prototype continues to advance (or go into production), I want to use the nrf51.

Does anyone know any plugins, libraries or articles / blog posts for communicating between a Unity built application and the nRF51?

So far I've been relying on the Unity's 'Android & Microcontrollers / Bluetooth' extension library, tweaking it here and there, but I'm not sure how will this perform if I exchange the HC-05 with the nRF51422.

Technical specifications — if helps with getting a better answer, otherwise, ignore this: I'm using the bluetooth in slave mode. I am using Serial Port as the communication method — as far as I know, Unity only accepts Serial (please correct me on this). My priority is on data reaction time — sending 8 bytes every 20ms. Not intended for desktop, only Android and iOS only.

Parents Reply Children
  • Hi Øyvind,

    Thank you for the link. According to the response there, looks like I shouldn't have any limitations transfer wise. My current setup is sending out 16 bytes every 20ms — which is significantly less then what Stefan got in his test: 6 packages of 20 bytes every 15ms (7.5 ms rate, but with the confirmation it should be twice that).

    Now I just need to figure out how to integrate it with Unity :)

    Kind regard, Liviu

Related