Show Posts
Pages: [1] 2
1  Using Arduino / Programming Questions / getting weird values with 5v mlx90614 sensor on: March 30, 2013, 07:18:37 pm
I am getting very weird values from my 5v MLx90614 sensor is it something in the code or in the equation?
Code:
//#include "sd_library.h"

int temppin = 1, width, sensor;
String dataString = "";


void setup ()
{
  Serial.begin(9600);
  pinMode(temppin, INPUT);

  Serial.println("Initializing SD card..");
  pinMode(10, OUTPUT);

/*  if (!SD.begin(chipSelect)) {
    Serial.println("Card failed, or no presenst");
  }*/
  Serial.println("card initialized.");
}
void loop()
{
  width = pulseIn(temppin, 100);

  for (int digitalPin = 1; digitalPin < 12; digitalPin++) {
    sensor = digitalRead(digitalPin);
    dataString += String(sensor);
    if (digitalPin < 1) {
      dataString += ",";
    }
  }
  /*
  File datefile = SD.open("datalog.txt", FILE_WRITE);

  if (dataFile) {
    dataFile.println (dataString);
    dataFile.close();
  } else {
    Serial.println("error open datalog.txt");
  }
  */
}


here is the datasheet My sensor is a 5v mlx90614 ESF-AAA
https://www.sparkfun.com/datasheets/Sensors/Temperature/MLX90614_rev001.pdf
2  Using Arduino / Project Guidance / Re: coding help on: March 27, 2013, 06:54:27 pm
what the code is intended to do is to log the data of 12 mlx 90614 ir temp sensors onto a sd card every .1 of a second.
3  Using Arduino / Project Guidance / coding help on: March 27, 2013, 06:41:35 pm
i need help writing code for the rest of my sensors. All of the sensors are the same but i need help adding them into the progam
Code:
//#include "sd_library.h"

int temppin = 1, width, sensor;
String dataString = "";


void setup ()
{
  Serial.begin(9600);
  pinMode(temppin, INPUT);

  Serial.println("Initializing SD card..");
  pinMode(10, OUTPUT);

/*  if (!SD.begin(chipSelect)) {
    Serial.println("Card failed, or no presenst");
  }*/
  Serial.println("card initialized.");
}
void loop()
{
  width = pulseIn(temppin, 100);

  for (int digitalPin = 1; digitalPin < 12; digitalPin++) {
    sensor = digitalRead(digitalPin);
    dataString += String(sensor);
    if (digitalPin < 1) {
      dataString += ",";
    }
  }
  /*
  File datefile = SD.open("datalog.txt", FILE_WRITE);

  if (dataFile) {
    dataFile.println (dataString);
    dataFile.close();
  } else {
    Serial.println("error open datalog.txt");
  }
  */
}
4  Using Arduino / Project Guidance / adding more sensors coding help on: March 27, 2013, 06:39:55 pm
i need help writing code for adding additional sensors. the sensors are all the same but i am confused on how to define them in the progam
Code:
//#include "sd_library.h"

int temppin = 1, width, sensor;
String dataString = "";


void setup ()
{
  Serial.begin(9600);
  pinMode(temppin, INPUT);

  Serial.println("Initializing SD card..");
  pinMode(10, OUTPUT);

/*  if (!SD.begin(chipSelect)) {
    Serial.println("Card failed, or no presenst");
  }*/
  Serial.println("card initialized.");
}
void loop()
{
  width = pulseIn(temppin, 100);

  for (int digitalPin = 1; digitalPin < 12; digitalPin++) {
    sensor = digitalRead(digitalPin);
    dataString += String(sensor);
    if (digitalPin < 1) {
      dataString += ",";
    }
  }
  /*
  File datefile = SD.open("datalog.txt", FILE_WRITE);

  if (dataFile) {
    dataFile.println (dataString);
    dataFile.close();
  } else {
    Serial.println("error open datalog.txt");
  }
  */
}
5  Using Arduino / Programming Questions / Re: multiple sensors on digital pwm input on: March 14, 2013, 03:52:44 pm
interesting I orgionaly wrote the code as an output and I couldnt get it to verify. I had a friend from sparkfun look at it a revise it and he tweeked it alittle and made it a input and the code was verifyed
6  Using Arduino / Programming Questions / multiple sensors on digital pwm input on: March 14, 2013, 12:07:06 pm
I am very new to arduino and I cant figure out how to define multiple pins for pwm input this is the code that a friend helped me with. He wrote it but didnt really explain how to write the rest.
 
Code:
//#include "sd_library.h"

int temppin = 1, width, sensor;
String dataString = "";

void setup ()
{
  Serial.begin(9600);
  pinMode(temppin, INPUT);

  Serial.println("Initializing SD card..");
  pinMode(10, OUTPUT);

/*  if (!SD.begin(chipSelect)) {
    Serial.println("Card failed, or no presenst");
  }*/
  Serial.println("card initialized.");
}
void loop()
{
  width = pulseIn(temppin, 100);

  for (int digitalPin = 1; digitalPin < 12; digitalPin++) {
    sensor = digitalRead(digitalPin);
    dataString += String(sensor);
    if (digitalPin < 1) {
      dataString += ",";
    }
  }
  /*
  File datefile = SD.open("datalog.txt", FILE_WRITE);

  if (dataFile) {
    dataFile.println (dataString);
    dataFile.close();
  } else {
    Serial.println("error open datalog.txt");
  }
  */
}
 

I am trying to take 12 digital input pins using pwm and log them to a data logger taking data every tenth of a second
7  Using Arduino / Programming Questions / ir temp sensors to sd card on: March 13, 2013, 02:47:11 pm
hey guys I am trying to take 12 mlx90614 ESP-AAA sensors in digital PWM mode and log them to the ADAfruit data logger shield. I need help with the data logger code
This is what I have so far I want to log data every 10th of a second and plot it in excel as Temp or time

Code:

void setup ()
 {
   Serial.begin(9600);
    int temppin = 1;
    int temppin = 2;
    int temppin = 3;
    int temppin = 4;
    int temppin = 5;
    int temppin = 6;
    int temppin = 7;
    int temppin = 8;
    int temppin = 9;
    int temppin = 10;
    int temppin = 11;
    int temppin = 12;
 
     
    void setup
    {
      pinMode(temppin, OUTPUT)
    }
   void loop ()
   {
    digitalWrite(temppin, HIGH);
    delayMicroseconds(10);
    digitalWrite(temppin,LOW);
    delay(10);
   }
8  Using Arduino / Project Guidance / Re: MLX90614 on: March 08, 2013, 06:48:15 pm
I was planning on printing a housing for the sensors in which they will gaurd against the dirt and grime of a race track. I am struggling right now to find a diagram on how to hook the sensor to the digital input, im hooking up 12 sensors and I was told it would be easyer to use the digital input and use pwm.
9  Using Arduino / Project Guidance / Re: MLX90614 on: March 05, 2013, 07:49:05 pm
in model I mean I am going to use this guide

http://wiki.wiring.co/wiki/Connecting_Infrared_Thermometer_MLX90614_to_Wiring   

to complete my project I have spoken with alot of the guys around the auto shop and they say they use the MLX90614 esf-AAA to do the same thing
10  Using Arduino / Project Guidance / MLX90614 on: March 04, 2013, 09:57:10 pm
what is the difference in capabilities of 3v vs the 5v version of the ir temperature sensor. I am trying to take the temperature of a car tire in three places of the tire (inside , middle , outside) i plan on using this model to make my project http://wiki.wiring.co/wiki/Connecting_Infrared_Thermometer_MLX90614_to_Wiring

Best Regards Cory
11  Using Arduino / Sensors / non-contact ir temp sensor on: March 04, 2013, 02:04:41 am
what are my choices on non-contact ir temp sensors I am looking for something like the MLX 90416 but I need 8 sensors and can't afford to pay $20 a piece per sensor is there a sensor equivalent for cheaper of somewhere where I can get my hands on a lot of sensors at bulk price? smiley-grin
12  Using Arduino / Project Guidance / 2-stroke Capacitor discharge ignition on: February 19, 2013, 01:03:17 am
Hey Guys
I am looking to make a cdi (capacitor discharge ignition) system for my cr125. I have been looking around to find a programmable ignition for some time now and found they are way out of my price range $600+. I saw a post from a few months back on a cdi for a scooter but no real instructions on how to build one. I have been around the cr125 for a very long time so the timing issue is not a big deal. What I am looking for is a parts list, since I am new to the whole  arduino thing. I am looking to build a cdi that has several ignition timings so all i have to do is switch to what ever timing curve I want and go. I do have a friend from a formula SAE program who can help me put it together and write the C for it. I just need a list of parts .

anything helps

 :DBest Regards Cory
13  Using Arduino / Project Guidance / Re: making 4 way wireless temperature sensor on: February 06, 2013, 08:04:48 pm
it can be done F1 teams, and even commercial Jets have temperature and pressure sensors in the tire its self. The problem is getting the device small enough and fixing it to the rim
14  Using Arduino / Project Guidance / Re: making 4 way wireless temperature sensor on: February 06, 2013, 01:44:13 am
haha thats pretty high for me I guess you proved me wrong
15  Using Arduino / Project Guidance / Re: making 4 way wireless temperature sensor on: February 06, 2013, 12:46:53 am
will these temperature sensors work? i am trying to measure the temperature of the air inside of a tire in motion
https://www.sparkfun.com/products/10988
or
https://www.sparkfun.com/products/11050
Pages: [1] 2