Torque

Forums

Forums

Guest  

Show or hide header
Welcome Guest, posting in this forum require registration.




Torque » Torque OBD ECU Scanner » Torque Discussion / Ideas » Arduino & OBD simultaneously

Pages: [1]
Author Topic: Arduino & OBD simultaneously
vDimitris
Member
Posts: 8
Post Arduino & OBD simultaneously
on: July 29, 2016 (GMT)

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?

piemmm
Administrator
Posts: 6629
Post Re: Arduino & OBD simultaneously
on: July 29, 2016 (GMT)

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

Mike G
Member
Posts: 1
Post Re: Arduino & OBD simultaneously
on: September 30, 2016 (GMT)

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

vDimitris
Member
Posts: 8
Post Re: Arduino & OBD simultaneously
on: September 30, 2016 (GMT)

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.

vwGolf97
Member
Posts: 2
Post Re: Arduino & OBD simultaneously
on: November 6, 2016 (GMT)

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!

piemmm
Administrator
Posts: 6629
Post Re: Arduino & OBD simultaneously
on: November 7, 2016 (GMT)

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.

vwGolf97
Member
Posts: 2
Post Re: Arduino & OBD simultaneously
on: November 10, 2016 (GMT)

That’s great to hear!

Thanks in advance….

tbd_evora
Member
Posts: 6
Post Re: Arduino & OBD simultaneously
on: December 6, 2016 (GMT)

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
kentkallsen
Member
Posts: 2
Post Re: Arduino & OBD simultaneously
on: December 24, 2016 (GMT)

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.

moreause
Member
Posts: 637
Post Re: Arduino & OBD simultaneously
on: December 24, 2016 (GMT)

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

C4Vette
Member
Posts: 12
Post Re: Arduino & OBD simultaneously
on: May 26, 2017 (GMT)

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

hwfreak
Member
Posts: 6
Post Re: Arduino & OBD simultaneously
on: January 22, 2018 (GMT)

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 :)

moreause
Member
Posts: 637
Post Re: Arduino & OBD simultaneously
on: February 1, 2018 (GMT)

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

toalan
Member
Posts: 9
Post Re: Arduino & OBD simultaneously
on: February 12, 2019 (GMT)

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

moreause
Member
Posts: 637
Post Re: Arduino & OBD simultaneously
on: February 14, 2019 (GMT)

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

warrior64nd
Member
Posts: 7
Post Re: Arduino & OBD simultaneously
on: September 6, 2019 (GMT)

+1

A plugin or app feature to allow this would be fantastic

discorama
Member
Posts: 5
Post Re: Arduino & OBD simultaneously
on: September 6, 2019 (GMT)

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.

Pages: [1]
WP-Forum by: Fredrik Fahlstad, Version: 2.4
Page loaded in: 0.113 seconds.

  Follow me on twitter