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? //#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
|
|
|
|
|
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 //#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 //#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"); } */ }
|
|
|
|
|
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. //#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 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.
|
|
|
|
|
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? 
|
|
|
|
|
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
|
|
|
|
|