Difference between revisions of "Arduino"

From Torque OBD2 Wiki
Jump to navigationJump to search
(Arduino Example Code)
 
Line 23: Line 23:
  
 
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.
 
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.
 +
 +
== User Contributions ==
 +
 +
* [[User_Arduino_code|Contribution from 1989Marathon]] on the [https://torque-bhp.com/forums/?wpforumaction=viewtopic&t=7737.0 forums]

Latest revision as of 14:04, 17 August 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 And Micro, 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 TorqueArduinoMicro.png

Advantages

  • Gather your own custom sensor data and present it to Torque
  • Define your sensor list in the adapter itself, so no messing about adding sensors in the app - they simply appear when connected.
  • Build the hardware how you want

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.

User Contributions