Simple Bluetooth Joystick

In this post I will introduce a couple of Arduino scripts and the accompanying circuitry needed to make a very simple Bluetooth joystick. The first script simply provides you with all the basic code needed to read from a simple PS2 style joystick. This script is then expanded to include the capability for joystick calibration. Calculated calibration values are saved to the micro-controllers EEPROM so that they can be automatically retrieved next time the hardware is connected. ...more

Setting up a Bluetooth Mate

Here we have a quick tip type post detailing how to configure a spartkfun Bluetooth Mate for micro-controller based serial communication. To this end I will detail how to change both the Baudrate (bits per second for serial data transmission) and the name of such a modem. Once you understand the basic method needed for communicating with these devices, you will be able individually customise them to match the bespoke needs of your project; including features such as setting the devices password and enabling and disabling authentication. ...more

Adding Events to the Serialport Script

In this post I present an update to Unity3D Serialport Script so that it includes an event trigger that can notify any other Unity3D MonoBehaviour that serial data has been received and then parsed. Included within the event is both the parsed data and the raw data so that the notified behaviour can respond accordingly. ...more

Unity3D Serialport Script

This post presents a script and or prefab developed to allow drag and drop capability for serial communication within the Unity3D game development ecosystem. This in turn allows for the use of  custom gaming controllers and hardware developed on platforms such as Arduino and Netduino within Unity applications. The script is included at the end of the post and is also available for download. As always it is fully commented so that you can hopefully easily work out what is going on with the code. Events Update 06.03.2014 Please note that his script has been updated to both include event triggers and the removal of the threaded  update loop. For more information please see the post: Adding Events to the Serialport Script. ...more

Netduino SerialPortHelper to WinForm and XNA

A few weeks ago, I was contacted via YouTube in reference to the Netduino Serial Communication example I posted a while back. In my reply I promised that I would make a posting detailing how I have since updated the system. Before we start, check out the featured video to see the current system in action. A while back I decided to adopt the methods as described by Hari over at the netduino forums to facilitate ReadLine functionality. The rationale for this was that by utilizing Hari's code we no longer have to detail the length data being sent, thus simplifying the code greatly. ...more

Netduino – Serial Communication

Update: check out  my netduino-serialporthelper-to-winform-and-xna post - based on code provided by hari over at the Netduino forums its a much better way to do it! The following details simple 2 way Communication with a Windows Forms App - Rudimentary packet handling has been implemented via inclusion of an additional byte to the beginning of the packet which details the length of the string to be sent to the Netduino. Once received the device filters the incoming data and recreates the string. A simple switch statement is then used to trigger functionality. To see it in action, check out the featured video. ...more