Show Posts
Pages: [1] 2 3
1  Using Arduino / Sensors / Re: Oil temp sender. Can someone help me come up with a function for this plot? on: August 21, 2011, 07:00:41 am
Thank you for all your answers.
I have not had time to look into this as I have been busy blowing the turbo of my car. I have plenty of time now smiley
2  Using Arduino / Sensors / Re: How read signal from car oil temperature sensor? on: August 15, 2011, 03:33:56 pm
I did not want to hijack your thread but I'm working on the exact same thing. I plotted the resistance of my 150c oil temp sender. You can see the plot in this thread: http://arduino.cc/forum/index.php/topic,69501.0.html.
3  Using Arduino / Sensors / Oil temp sender. Can someone help me come up with a function for this plot? on: August 15, 2011, 03:26:31 pm
I just discovered I'm worse at maths than I thought. I've been wrestling with this for a few hours, but I simply don't have the skills or time to learn right now.
The plot is for the oil temp sender on my car. I'm going to the track on Sunday and I need to have this up and running by then.

If someone can help me convert these values into volt and then come up with an efficient function which can be used to display oil temp on my LCD I will be extremely grateful. The sensor will be fed 5v from the Arduino board.

4  Using Arduino / Sensors / safely interface with car sensors. Grounding and voltage (non OBDII) on: March 12, 2011, 03:08:50 pm
I'm building an electronic gauge, logger for my car. I want to read an oil temp sensor and some of the outputs from the computer. Can I safely use the car ground to interface with these instruments?
5  Using Arduino / Sensors / What is needed to read and run this bosch oil temp sensor? on: March 05, 2011, 03:47:30 pm
I would like to monitor my car's oil temp. It does not have a sensor at the moment, so I want to use this one from Bosch http://www.bosch-motorsport.de/pdf/sensors/temperature/NTC_M12-H.pdf.

What would be needed to do this and will it be complicated to come up with the math needed to convert the signal into degrees F and C?
6  Using Arduino / Sensors / Re: Analog inputs linked somehow? on: March 02, 2011, 05:23:23 am
Did the test and was able to sort it out. Thanks for the tip.
I had set the PSU to 5v which seems to make the board unstable somehow. I also had to sort out my wiring a bit.
It's working now so thanks to everyone for their help.
7  Using Arduino / Sensors / Re: Analog inputs linked somehow? on: March 01, 2011, 05:17:16 pm
I tried grounding the second pin.
No difference.
The two bars on my LCD which are supposed to measure different inputs both move in perfect sync no matter if I ground pin A0 and connect the pot to pin A2, or vice versa. The value input to one pin is duplicated to the other.
8  Using Arduino / Sensors / Re: Analog inputs linked somehow? on: March 01, 2011, 04:46:43 pm
Quote
If what you are saying is that: You can read the input (with no lead) next to the pin that you actually do have wired... then the answer is yes. I can confirm this.

If I am only using say three Analog inputs, I GROUND the inputs on either side of the three (sequential) leads that I am using...
Is this how it is supposed to be?
I'm only using one pot for testing and shifting this from port A0 to A2. I also tried A0 and A8 just to be sure.
When i adjust the pot which is now only connected to input A8 the analog read function reads the exact same values from the presently unconnected A0.

9  Using Arduino / Sensors / Re: Analog inputs linked somehow? on: March 01, 2011, 08:02:35 am
The sensors are not really there. I'm using a pot for testing. it is connected to the analog input, ground is from the board and 5v is from my power supply, the one that powers the board. Currently running @ 5.2 volts.

I also tried feeding the pot 5v from the Arduino board. Same results.
Could it be that the voltage is too low for the board?
10  Using Arduino / Sensors / Re: Analog inputs linked somehow? on: March 01, 2011, 07:35:23 am
The code is too long for the forum.

http://pastebin.com/AYFtVZ82

Could this bit be the culprit?
Code:
//_____________Defining Encoder Inputs_________________________________________
  #define button 22
  #define ENC_A 20  //MUST be pin 0 i pinD range
  #define ENC_B 21  //MUST be pin 1 i pinD range
  #define ENC_PORT PIND  //Create a port wich low-level reads all pinD pins simultaneously (=pin0-pin7)=low level read

11  Using Arduino / Sensors / Analog inputs linked somehow? on: March 01, 2011, 06:40:44 am
 have two functions reading the analogue pins on my mega 1280
The input pins are different, the variables are different, the functions are different. Still both
functions will take input from either input pin.
I.E input on pin 0 is read by both functions, and input on pin 2 is read by both functions.
What's causing this??

Code:
 
  int boostPin = A0;   // input pin for the MPX4250
  int af_Pin = A2;   //

Code:

  int boostRead = 0; //Stores value read from MPX4250
  int af_Read = 0; //Stores value read from UEGO

The reading itself is done in the looop by:
Code:

void loop(){  
    boostRead = analogRead(boostPin);
    af_Read = analogRead(af_Pin);
    }

Code:
function boost(){
caluculate input from boostRead;
lcd.print (bCalculation);
}

function afr(){
caluculate input from af_Read;
lcd.print (afCalculation);}
12  Using Arduino / Programming Questions / Re: I am trying to fill an array like this, is it possible? on: February 28, 2011, 05:30:51 pm
 smiley-red
13  Using Arduino / Programming Questions / I am trying to fill an array like this, is it possible? on: February 28, 2011, 03:57:08 pm
I'm getting an endless amount of error messages like these.
Quote
at java.util.regex.Pattern$CharProperty.match(Pattern.java:3345)
   at java.util.regex.Pattern$Branch.match(Pattern.java:4114)
   at java.util.regex.Pattern$GroupHead.match(Pattern.java:4168)

The reason I want to do this is that i need a set of numbers to be available in my menu for use by my rotary encoder. 
Ideally they should be ints though. This seems like a very hard way to do it to me, but the menu is event triggered, so running a counter type code from the loop did not work.
Code:
             MenuItem mi0 = MenuItem("0");
             MenuItem mi50 = MenuItem("50");
             MenuItem mi100 = MenuItem("100");
ETC:
//___________Menu number array__________________________           
           int menu50[140]
           int j = 0;
           for (int i = 0; i < 7000; i=+50){
               int j = 0;
               j =+50
             menu50[j] = "'MenuItem miNo',i,'=', 'MenuItem',','(','"',i'"')'";
             }
14  Using Arduino / Programming Questions / Re: Data type int and long, anything in between? on: February 28, 2011, 02:36:42 pm
Ok thanks for being so clear.

B
15  Using Arduino / Programming Questions / Re: Data type int and long, anything in between? on: February 28, 2011, 12:52:55 pm
Maximum 150 000
Minimum 0
Pages: [1] 2 3