Can both Arduino & OBD adapter be connected to torque same time so I can display some gauges with OBD data & some with Arduino data on the same display?
Hi!
Not yet - at the moment the arduino is instead of an OBD adapter, though if enough people request that ability I could also add it
Hi,
I would also be interested in this functionality.
I use Torque with my Cummins powered Ram pickup. Most modern diesel pickups have alot of critical sensors available, but they all seem to lack an EGT sensor before the turbo. Many guys like to monitor this so they end up installing a separate, expensive electro-mechanical gauge to accomplish this. If the Arduino and OBD II could be connected at the same time, this would make a perfect system as an alternative to expensive tuners, or adding mechanical gauges.
I think an all glass instrument display would be pretty cool in a more modern truck.
Thanks for such a great product!
Mike
Good day again.
I've just tested arduino uno & torque as per your example with potentiometer. Really cool thing. However update rate is about 5 pid/s. I expected faster response as I see in the code CANbus 500k is used. Should it be faster or it's normal rate of update?
Thanks.
I would also vote to have both.
My current setup using ELM327 works great, but I also have non-ODB wideband to capture vital Air/Fuel ratios.
I currently have to capture logs separately and manually align, but would prefer having custom pid within torque.
Thanks again for all efforts on this great app!
Hi!
Ok - I'll add this to the todo list (it'll happen!). It will likely be as another plugin (to feed the data into Torque) to keep things nice and straightforward to use.
That's great to hear!
Thanks in advance....
Definitively need this. I want to use Arduino to get the following data:
This would be outstanding functionality. I run a road race car and it would be awesome to have a torque dashboard and datalogger with OBDII and miscellaneous sensors added in.
Personaly
what i did in the past to log value with arduino and torque
i was using a standard PID that the pcm would not respond 90 in my case
and i was letting the arduino respond to torque
torque didn't know any better
i was inputing my pressure sensor voltage
something like this
/*********************************************************************
* Mechanic - Hacking your car
*
* Copyright (C) 2013 Joerg Pleumann
*
* This example is free software; you can redistribute it and/or
* modify it under the terms of the Creative Commons Zero License,
* version 1.0, as published by the Creative Commons Organisation.
* This effectively puts the file into the public domain.
*
* This example is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* LICENSE file for more details.
*/
#include
ObdInterface obd;
ObdMessage out;
ObdMessage in;
int SensorValue = 0;
float PsiValue = 0;
float Temp;
int ValuePID90xA;
int ValuePID90xB;
int ValuePID08xA;
void setup() {
Serial.begin(115200);
//while (!Serial);
Serial.println();
Serial.println();
Serial.println(" ADDR LN MO PI D0 D1 D2 D3 D4");
Serial.println("-------- -- -- -- -- -- -- -- --");
obd.setSlow(false);
obd.setExtended(false);
obd.setDebug(false);
obd.setNoFilter(false); // Show all messages, not just ECU answers
obd.begin();
out.address = 0x7e8;
out.mode = 0x41;
}
void loop() {
if (obd.receiveMessage(in)) {
Serial.println(in);
if (in.pid == 0x90) { // Si pid est 90 envoie la valeur courante
Serial.println("sending");
Serial.print(" PID 0x90,Sensor ");Serial.print(SensorValue);
Serial.print(" Psi: "); Serial.print(PsiValue);
Serial.print(" A: "); Serial.print(ValuePID90xA);
Serial.print(" B: "); Serial.println(ValuePID90xB);
out.address = 0x7e8;
out.length = 0x4;
out.pid = 0x90;
out.values[0] = ValuePID90xA;
out.values[1] = ValuePID90xB;
obd.sendMessage(out);
}
if (in.pid == 0x08) { // Si pid est 08 envoie la valeur courante
Serial.println("sending");
Serial.print(" PID 0x08,Sensor ");Serial.print(SensorValue);
Serial.print(" A: "); Serial.println(ValuePID08xA);
out.address = 0x7e8;
out.length = 0x4;
out.pid = 0x08;
out.values[0] = ValuePID08xA;
out.values[1] = 0;
obd.sendMessage(out);
}
}
// Valeur pour PID 0x90
SensorValue = analogRead(A0) + 1;
PsiValue = (45.6125*SensorValue/1024) + 0.148721; // 5 Volts ou 1024 = 45.6125 Psi, 0.148721 il y a un leger offset dans les valeurs
ValuePID90xA = (int) PsiValue;
Temp = (PsiValue - ValuePID90xA) * 100;
ValuePID90xB = (int) Temp;
/*
Serial.print(" PID 0x90,Sensor ");Serial.print(SensorValue);
Serial.print(" Psi: "); Serial.print(PsiValue);
Serial.print(" A: "); Serial.print(ValuePID90xA);
Serial.print(" B: "); Serial.println(ValuePID90xB);
*/
// Valeur pour PID 0x08
ValuePID08xA = map(SensorValue,0,1024,0,256); // 5 Volts ou 1024 = 45.6125 Psi et modifier en 0 a 255 et envoye comme pid de short trim bank 2
/*
Serial.print(" PID 0x08,Sensor ");Serial.print(SensorValue);
Serial.print(" A: "); Serial.println(ValuePID08xA);
*/
delay(20);
}
torque pid
Is this already possible?
Anybody tried?
Would be cool to monitor aftermarket stuff.
Quote from admin on July 29, 2016
Hi!
Not yet - at the moment the arduino is instead of an OBD adapter, though if enough people request that ability I could also add it
I request too 🙂
like i said .. you can easely do it with an arduino
i did it in the past
you just need to play a bit with an arduino obd program
i just used a standard pid adress that my car was not responding to
and the arduino was responding instead
torque doesn't see the difference as long as somebody answer the request
Want this too. Ideally you would be able to run a OBD reader and multiple arduino connected devices.
personally i was using an arduino to insert value into the can bus
before it was an option over here
i used a can bus break out ..and used an address that the car would not answer to ... and used the arduino to reply instead
torque was not seeing any difference
+1
A plugin or app feature to allow this would be fantastic
Please add this feature. Many ECUs do not provide sufficient data for engine monitoring. I made an Arduino adapter to add oil temp, pressure as well as transmission temps, battery voltage(s!) aso. This would really add a lot of value to the app.
This is an old thread. My apologies if there is a newer thread on this topic.
While hunting for a way to monitor both OBDII and addition sensors, I found torque-arduino. This seems like an ideal way to add more sensors outside OBDII.
The Kiwi 2 and iMFD sensors used to be a clunky solution for this, but the Kiwi 2 is long out of production.
Has there been any further work on this?
it may be car specific
but personnaly when i needed to add sensor with an arduino
i was asking torque for an adress that is not reported by the pcm
and used the arduino to respond instead ... torque didn't know better since somebody did respond lol
oh just saw my anser was up there lol
<div class="quote"><p>Quote from moreause on July 19, 2024
it may be car specific
but personnaly when i needed to add sensor with an arduino
i was asking torque for an adress that is not reported by the pcm
and used the arduino to respond instead ... torque didn't know better since somebody did respond lol
oh just saw my anser was up there lol
</p></div>
Cheers! I missed that with the last few messages continuing to ask for this feature.