Torque

Forums

Forums

Arduino & OBD simul...
 
Notifications
Clear all

Arduino & OBD simultaneously

20 Posts
13 Users
0 Reactions
1,370 Views
(@vdimitris)
Posts: 8
Active Member
Topic starter
 

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?

 
Posted : 29/07/2016 10:24 am
(@admin)
Posts: 6550
Member Admin
 

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

 
Posted : 29/07/2016 10:26 am
(@mike-g)
Posts: 1
New Member
 

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

 
Posted : 30/09/2016 1:54 pm
(@vdimitris)
Posts: 8
Active Member
Topic starter
 

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.

 
Posted : 30/09/2016 8:02 pm
(@vwgolf97)
Posts: 2
New Member
 

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!

 
Posted : 06/11/2016 3:48 am
(@admin)
Posts: 6550
Member Admin
 

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.

 
Posted : 07/11/2016 8:37 am
(@vwgolf97)
Posts: 2
New Member
 

That's great to hear!

Thanks in advance....

 
Posted : 10/11/2016 4:04 am
(@tbd_evora)
Posts: 6
Active Member
 

Definitively need this. I want to use Arduino to get the following data:

    Acceleration (which the Android head unit does not provide internal sensor)
    Brake sensor
 
Posted : 06/12/2016 1:30 pm
(@kentkallsen)
Posts: 2
New Member
 

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.

 
Posted : 24/12/2016 12:34 am
(@moreause)
Posts: 650
Honorable Member
 

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

 
Posted : 24/12/2016 6:19 am
(@c4vette)
Posts: 12
Active Member
 

Is this already possible?
Anybody tried?
Would be cool to monitor aftermarket stuff.

 
Posted : 26/05/2017 9:04 pm
(@hwfreak)
Posts: 6
Active Member
 

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 🙂

 
Posted : 22/01/2018 1:19 am
(@moreause)
Posts: 650
Honorable Member
 

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

 
Posted : 01/02/2018 2:56 am
(@toalan)
Posts: 9
Active Member
 

Want this too. Ideally you would be able to run a OBD reader and multiple arduino connected devices.

 
Posted : 12/02/2019 8:06 am
(@moreause)
Posts: 650
Honorable Member
 

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

 
Posted : 14/02/2019 6:56 am
(@warrior64nd)
Posts: 7
Active Member
 

+1

A plugin or app feature to allow this would be fantastic

 
Posted : 06/09/2019 12:48 am
(@discorama)
Posts: 5
Active Member
 

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.

 
Posted : 06/09/2019 4:46 am
(@overlying0907)
Posts: 2
New Member
 

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?

 
Posted : 18/07/2024 7:49 pm
(@moreause)
Posts: 650
Honorable Member
 

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

 
Posted : 19/07/2024 3:10 pm
(@overlying0907)
Posts: 2
New Member
 

<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.

 
Posted : 23/07/2024 5:48 pm
Share:

  Follow me on twitter