Loading...
  Show Posts
Pages: [1] 2
1  Using Arduino / Programming Questions / Re: Arduino Uno + OBD2(ELM327) to read my car's performance ! on: January 09, 2013, 11:23:02 am
Thank you! I also find another site :

http://forums.justcommodores.com.au/electrical-wiring-questions/19665-diy-ecu-scantools-data-cables.html

At the end of the article it has a schematic with arduino.
As you understand more than I do , do you believe that this schematic works ?
Sorry for this question but I am really newbie and I understand little things about electronics!

http://forums.justcommodores.com.au/attachments/electrical-wiring-questions/23638d1153994657-diy-ecu-scantools-data-cables-obd.jpg
2  Using Arduino / Programming Questions / Re: Arduino Uno + OBD2(ELM327) to read my car's performance ! on: January 09, 2013, 08:36:44 am
Yes but they do not have many details about how to construct it and about programming.
Some sites have made already the cable and they want to sell it ready. I want to learn and make
it alone ! Also I would like arduino to receive the data to edit them and finally show then in LCD
and not to connect a PC in order to analyse the data.
3  Using Arduino / Programming Questions / Re: Arduino Uno + OBD2(ELM327) to read my car's performance ! on: January 09, 2013, 08:25:19 am
PaulS thank you for your response. What do you need to know (for this cable) in order to connect it with arduino ?
Basically I have not bought yet any cable but I am doing a research about how to connect arduino to car via a OBD2 cable or any other way. I want to connect arduino with my cars OBD2 and with a LCD in order to see what my car consumes and the rest things OBD2 shows.
Do you have any suggest ?
4  Using Arduino / Programming Questions / Re: Arduino Uno + OBD2(ELM327) to read my car's performance ! on: January 09, 2013, 03:55:33 am
Any help ?
5  Using Arduino / Programming Questions / Re: Connect Arduino with Bluetooth JY-MCU and Andoid on: January 02, 2013, 11:19:42 am
PaulS Thank you very much! I think that this is what I wanted ! I will analyse the code you sent me,
I will test it and I will inform you for the results ! Thank you again !
6  Using Arduino / Programming Questions / Re: Arduino Uno + OBD2(ELM327) to read my car's performance ! on: January 02, 2013, 11:15:39 am
I forgot to say that this is one Cable I had in my mind :
http://www.ebay.com/itm/V1-5-ELM327-OBD2-OBDII-CAN-BUS-Auto-Diagnostic-USB-Interface-Code-Scanner-Reader-/160874407940?pt=AU_Car_Parts_Accessories&hash=item2574dca804&vxp=mtr

However if it is not good I would like to be informed about the one that works !

7  Using Arduino / Programming Questions / Arduino Uno + OBD2(ELM327) to read my car's performance ! on: January 02, 2013, 11:11:16 am
Hi
I would like someone to inform me if it is possible to connect a OBD2 to usb cable
(which includes ELM327), to my arduino uno and how to !
8  Using Arduino / Programming Questions / Re: Connect Arduino with Bluetooth JY-MCU and Andoid on: January 02, 2013, 11:03:32 am
Quote
Does anyone know why when I change the text from 'H' to 'HA' , the code does not work.
Yes. You are reading one character from the bluetooth device. Which ONE key did you press to get 'HA'?

Hmmm, that's what I thought.

How to deal with serial data only comes up about 10 times a day here. You need to do some investigation on your own.

Thank you for your response.
I know that serial data is very common question but I did not find anywhere something
 that answers at this certain question.
When you say that I am reading one character from the bluetooth device, you mean that I read one character because I am writing ==>   char val;                   
                                     and         if( val == 'H' ){   
 
or that generally we can read only one character each time from bluetooth ?


9  Using Arduino / Programming Questions / Re: Connect Arduino with Bluetooth JY-MCU and Andoid on: January 02, 2013, 10:25:20 am
Does anyone know why when I change the text from 'H' to 'HA' , the code does not work.
Why this happens and what can I do to make it work ?

char val;
int ledpin = 8;
#include <SoftwareSerial.h>
#define BT_SERIAL_TX_DIO 10
#define BT_SERIAL_RX_DIO 11
SoftwareSerial BluetoothSerial(BT_SERIAL_TX_DIO, BT_SERIAL_RX_DIO);
void setup(){
   pinMode(ledpin, OUTPUT);
  Serial.begin(9600);
  BluetoothSerial.begin(9600);
}

void loop() {
  if(BluetoothSerial.available()){ 
    val = BluetoothSerial.read();}
  if( val == 'H' ){
    digitalWrite(ledpin, HIGH);} 
else {
   digitalWrite(ledpin, LOW);}
  }

10  Using Arduino / Programming Questions / Re: Connect Arduino with Bluetooth JY-MCU and Andoid on: December 28, 2012, 08:28:44 am
Hello , I am using my nextus 7 tablet and both blueterm and bluetooth spp both work. I have included my sw below that will show what you send on a lcd so you can see what you do send ....

Code:
Quote


#include <SoftwareSerial.h>

#include <LiquidCrystal.h>

LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

SoftwareSerial mySerial(3, 2); // RX, TX
#define text
#define text=myserial

void setup() 
{
  
   // set up the LCD's number of columns and rows:
  lcd.begin(16, 2);//added
 // Open serial communications and wait for port to open:
  Serial.begin(115200);
   while (!Serial) {
    ; // wait for serial port to connect. Needed for Leonardo only
  }

  mySerial.begin(115200);
  mySerial.println("test comms");
  delay(500);
}

void loop()
{

  if (Serial.available())
  delay(100);
    mySerial.write(Serial.read());
    delay(500);
    lcd.clear();
     if (mySerial.available())
    lcd.write(mySerial.read());
       }
  





Peter1929 thank you very much ! I have not yet tested your code but I think that it is the same as a code that I found and worked for me.
Here it is :

char val;
int ledpin = 8;
#include <SoftwareSerial.h>
#define BT_SERIAL_TX_DIO 10
#define BT_SERIAL_RX_DIO 11
SoftwareSerial BluetoothSerial(BT_SERIAL_TX_DIO, BT_SERIAL_RX_DIO);
void setup(){
   pinMode(ledpin, OUTPUT);
  Serial.begin(9600);
  BluetoothSerial.begin(9600);
}

void loop() {
  if(BluetoothSerial.available()){ 
    val = BluetoothSerial.read();}
  if( val == 'H' ){
    digitalWrite(ledpin, HIGH);} 
else {
   digitalWrite(ledpin, LOW);}
  }

However I would like to ask you some thing else. As you can see at the code I gave it
the ability when receives a character to execute a command (at this case to power a led).
The problem I have is that when I change the text from 'H' to 'HA' , this does not work.
Why this happens and what can I do to make it work ?
11  Using Arduino / Programming Questions / Re: Connect Arduino with Bluetooth JY-MCU and Andoid on: December 27, 2012, 08:10:24 am
Hello.

I am doing some thing like this, I have been able to send comms to the blue tooth and monitor via the serial monitor. I use the Blue term in google apps (free).

I am using soft serial for another serial port to Rx / Tx  for the blue tooth unit.. as I am using the original hw version to monitor the comms on the pc.

you can use the  soft serial example included in the library.

WARNING..... the unit you wish to purchase only runs of 3.3v....check the max voltage for your tx/rx pins..as most that run off 3.3 will only take 3.3v serial signals, any higher will damage them..( uno will put out 5V).



First of all thank you for your immediate response.

Can send the link for blue term application ?
Can you tell me what to do as far as 3.3 V ? Should I use any resistor or it will create any issue with data ?
12  Using Arduino / Programming Questions / Connect Arduino with Bluetooth JY-MCU and Andoid on: December 27, 2012, 06:35:08 am
Hi I have bought from ebay this module:
http://www.ebay.com/itm/261128344954;jsessionid=6D5073A7E7772BFE64045CEB536A0D23?ru=http%3A%2F%2Fwww.ebay.com%2Fsch%2Fi.html%3F_sacat%3D0%26_from%3DR40%26_nkw%3D261128344954%26_rdc%3D1

I would like to connect it with arduino and to give it commands from android cellphone. I found some sites
with instructions but nothing worked.
Can anyone help me about the code and the application on android that I should use to send commands ?
13  Development / Other Hardware Development / Re: Make my arduino with ATMEGA328P-PU on: December 23, 2012, 04:05:57 am
Thank you Very much ! I will test and I will inform you for the results !
14  Using Arduino / Microcontrollers / Re: Remove Atmega328P-PU for stand alone project on: December 13, 2012, 07:24:14 am
I would like to ask you about the capacitors near the crystal. Which are their description ?

Both are 18pF or 22pF ceramic. Alternatively, use a 3-terminal ceramic resonator instead of a crystal (like the Arduino Uno does), which gives you a slightly less accurate frequency (usually +/- 0.5%) but has the capacitors built-in.

Useful Info !
Thank you very much for your immediate response !
15  Using Arduino / Microcontrollers / Re: Remove Atmega328P-PU for stand alone project on: December 13, 2012, 06:54:37 am
I did that here:

http://www.gammon.com.au/forum/?id=11637

You don't need a crystal if you don't mind running at 8 MHz.

You can have a reset button if you want. If you want SPI (for ICSP programming) you can break out those pins.

Diagram:



Hi
I would like to ask you about the capacitors near the crystal. Which are their description ?
Pages: [1] 2