Difference between revisions of "Arduino"

From Torque OBD2 Wiki
Jump to navigationJump to search
(under construction)
Line 6: Line 6:
  
 
[[File:torqueArduino.png|280px]]
 
[[File:torqueArduino.png|280px]]
 +
 +
== Example Hardware Required ==
 +
 +
* An Arduino - Uno and Micro boards have both been tested ([https://www.adafruit.com/ Adafruit], [http://www.ebay.co.uk/bhp/arduino-uno-r3 eBay Search])
 +
* A HC-06 bluetooth module with 5v carrier board ([http://www.ebay.com/bhp/hc-06 eBay Search])
  
 
== Arduino Example Code ==
 
== Arduino Example Code ==
  
The example code that can be used with the arduino IDE can be found on the [[Arduino_code]] page.  You can modify this code and customise it to your own requirements - just remember to define the sensors in the sensor list, and torque will then pick up the list of sensors.
+
The example code that can be used with the arduino IDE can be found on the [http://torque-bhp.com/wiki/Arduino_code Arduino code] page.   
 +
 
 +
You can modify this code and customise it to your own requirements - just remember to define the sensors in the sensor list, and torque will then pick up the list of sensors.

Revision as of 14:06, 1 April 2016

Use your own Arduino(etc) based designs in Torque

There is a special protocol in Torque that lets you connect to devices such as the Arduino, Raspberry pi, and lets you feed the app your own sensor data. This includes allowing you to tell Torque what sensors are available

The example below uses an Arduino UNO, a generic bluetooth tx/rx module and a couple of potentiometers as example sensors. Torque will connect to the arduino, retrieve the list of sensors, then you can view them in the app!

TorqueArduino.png

Example Hardware Required

Arduino Example Code

The example code that can be used with the arduino IDE can be found on the Arduino code page.

You can modify this code and customise it to your own requirements - just remember to define the sensors in the sensor list, and torque will then pick up the list of sensors.