Show Posts
Pages: 1 2 [3] 4 5 6
31  Community / Exhibition / Gallery / Re: Cheap-Thermocam | Thermal Imaging for around 100$ on: May 17, 2011, 03:58:52 pm
I was browsing today and found this thermal sensor, do you think it is useful for this kind of project given the limit of 4-100 degrees C only

http://www.robot-electronics.co.uk/acatalog/Thermal_Array_Sensor.html



The Field of View is much too high, have a look at this project which uses the TPA81: http://www.designer2k2.at/index.php?option=com_content&view=article&id=30:thermoscanner&catid=13:arduino&Itemid=40
32  Community / Exhibition / Gallery / Re: Cheap-Thermocam | Thermal Imaging for around 100$ on: May 09, 2011, 04:00:44 pm
Fantastic project by the way got the rest of the parts but having a problem soucing the
MLX90614ESF-DCI is there alternative that would give the same results FutureElectronics are saying there is 22 week leadtime to get this sensor from Melexus ? smiley-sad

There is no alternative (in this price range). You can buy the sensor for 48$ plus 5$ international transportation costs by writing an email to info@as-electronic.net. This is the fastest way to get the DCI version and as far as I know the only one, too.
33  Community / Exhibition / Gallery / Re: Cheap-Thermocam | Thermal Imaging for around 100$ on: April 29, 2011, 06:27:52 pm
The Cheap-Thermocam is now three times faster than before thanks to adjusting the sensors internal settings !
Additionally, I improved the software and plan to build a portable version with LCD Touchscreen, CMOS camera, SD card and lithium battery. It will be standalone from any pc as the thermal image can be viewed on the display (resolution 320x240 for the display, on the pc its highter) and later analyzed with the computer software.

@martin_bg: Thanks for the information. I currently try to understand how the compressed sensing theory is working, its not that easy  smiley
@oh6kft: Have a look at my post at the other thread: http://arduino.cc/forum/index.php/topic,55524.msg431645.html#msg431645 . WIth the 10 degree version of the MLX90614 its hard to get comparable pictures than with the DCI (I have a BCF here..). Futureelectronics ordered about 50 new parts and they promised me that those will be available soon.
34  Using Arduino / Sensors / Re: Problem with Reading/Writing to the EEPROM of a MLX90614 on: April 29, 2011, 06:19:13 pm
I finally solved the problem, now everything is working:

Code:
#include <i2cmaster.h>

void setup()
{
Serial.begin(9600);
Serial.println("This program will change the EEPROM settings of");
Serial.println("your MLX90614-DCI sensor to work best with the");
Serial.println("Cheap-Thermocam. PRESS ANY KEY TO CONTINUE.");
Serial.println("");
Serial.println("Created by Max Ritter - www.cheap-thermocam.tk");
Serial.println("");
while (Serial.available() == 0) {
}
Serial.println("----------Let's begin!----------");
Serial.println("");
i2c_init();
PORTC = (1 << PORTC4) | (1 << PORTC5);

int dev = 0x00;
unsigned int data_l = 0;
unsigned int data_h = 0;
int pec = 0;
float data_t = 0;
float emissivity = 0;

//WRITE TO EEPROM, FIRST: ERASE OLD STUFF
Serial.println("*1: Erasing old EEPROM settings");
Serial.println("");
Serial.println("Erasing filter settings..");
i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x25);
i2c_write(0x00); //Erase low byte (write 0)
i2c_write(0x00); //Erase high byte (write 0)
i2c_write(0x83); //Send PEC
//For PEC Calculation have a look at : http://smbus.org/faq/crc8Applet.htm
//In this case the PEC calculates from 250000 (=0x83)
i2c_stop();
delay(5000);

Serial.println("Erasing maximum temperature setting..");
i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x20);
i2c_write(0x00);
i2c_write(0x00);
i2c_write(0x43);
i2c_stop();
delay(5000);

Serial.println("Erasing minimum temperature setting..");
i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x21);
i2c_write(0x00);
i2c_write(0x00);
i2c_write(0x28);
i2c_stop();
delay(5000);

//WRITE TO EEPROM, THE NEW STUFF!
Serial.println("");
Serial.println("*2: Write new settings to EEPROM");
Serial.println("");
Serial.println("Writing new filter settings..");
i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x25); //Register Address to write to
i2c_write(0x74); //New filter settings (B374)
i2c_write(0xB3);
i2c_write(0x65); //Send PEC
i2c_stop();
delay(5000);

Serial.println("Writing new maximum temperature setting..");
i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x20);
i2c_write(0xFF);
i2c_write(0xFF);
i2c_write(0x67);
i2c_stop();
delay(5000);

Serial.println("Writing new minimum temperature setting..");
i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x21);
i2c_write(0x5B);
i2c_write(0x4F);
i2c_write(0x59);
i2c_stop();

Serial.println("");
Serial.println("----------Finish!----------");
}
void loop()
{
}


The code changes the filter settings of the MLX90614-DCI to the minimum value of 49ms (100% FIR) and extends the standard temperature range from -20 - 120 degree to -70 - 370 °.

@ Henkka:
Great that you also try to build a IR camera. Limiting the scanning range to Ă­nteressting areas will be a possible soon. I will build a portable version of this cheap-thermocam which can be used standalone without any computer and in this step I will include the function. The latest information are always at www.cheap-thermocam.tk  smiley-wink
35  Using Arduino / Storage / Create Images on a SD Card on: April 21, 2011, 11:38:50 am
Hello guys,
my question is whether it's possible to create any kind of image (png, raw, jpg or another format) with the arduino and then save it on an attached SD card.
So for example I want to make an image with 12x12 pixels, tell the arduino which pixels are red/blue/green and then save that created picture on the card.
I searched a lot on the Internet but haven't found anything yet..
Thanks for your help !
Greetings,
Max
36  Using Arduino / Sensors / Re: Problem with Reading/Writing to the EEPROM of a MLX90614 on: April 14, 2011, 03:03:16 pm
I still haven't managed it to get the sketch above working :-(
can anybody pls help me ?
37  Community / Exhibition / Gallery / Re: Cheap-Thermocam | Thermal Imaging for around 100$ on: March 18, 2011, 11:29:22 am
Cool!

Is this sensitive enough to see any stars in the sky (other than our sun)?

Is this sensitive enough to see any stars in the sky (other than our sun) in the daytime?

Never thought about that.. I will try and post results within the next week
38  Using Arduino / Sensors / Re: IR Temperature Readings and Combustion Sensor on: March 16, 2011, 03:41:54 pm
Here you are: www.cheap-thermocam.tk
39  Using Arduino / Sensors / Re: Problem with Reading/Writing to the EEPROM of a MLX90614 on: March 16, 2011, 12:41:22 pm
Use 'bitwise AND" and "bitwise OR" operators to clear the fields you want to set and set the values.

Code:
/Simple program to read/write to the EEPROM (or read RAM) of the MLX90614 IR Sensor (in my case
i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x24); 
i2c_rep_start(dev+I2C_READ);
unsigned int register = i2c_readAck(); //Read low byte and then send ack
register |= i2c_readAck() << 8; //Read high byte and then send ack
pec = i2c_readNak();
i2c_stop();

// Set the register to: 0b100xxxxx100xxxxx  (where 'x' means 'do not modify)
register &= 0b0001111100011111;  // Clear all bits in the fields to be modified.
register |= 0b1000000010000000;  //Set bits in those fields to 1 where needed


//WRITE TO EEPROM, THE NEW STUFF!

i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x24); //Register Address to write to
i2c_write(register);
i2c_write(register >> 8);
i2c_write(0xCC); //Send PEC
i2c_stop();


Thanks a lot for your work ! Unfortunately, it's not working correctly but I don't know whats the reason...
Heres the full code:
Code:
#include <i2cmaster.h>

void setup()
{
Serial.begin(9600);
i2c_init();                             //Initialise i2c bus
PORTC = (1 << PORTC4) | (1 << PORTC5);  //enable pullups

int dev = 0x5A<<1; // I use the general address. If I specify the address
                //(0x05<<1), the code doesn't work, don't know why... yet.
unsigned int value = 0;
int pec = 0;
i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x25); 
i2c_rep_start(dev+I2C_READ);
value = i2c_readAck(); //Read low byte and then send ack
value |= i2c_readAck() << 8; //Read high byte and then send ack
pec = i2c_readNak();
i2c_stop();
// Set the register to: 0b100xxxxx100xxxxx  (where 'x' means 'do not modify)
wert &= 0b0001111100011111;  // Clear all bits in the fields to be modified.
wert |= 0b1000000010000000;  //Set bits in those fields to 1 where needed


//WRITE TO EEPROM, THE NEW STUFF!

i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x25); //Register Address to write to
i2c_write(value);
i2c_write(value >> 8);
i2c_write(0xCC); //Send PEC
i2c_stop();
}

void loop()
{
}

Anybody finds a mistake ?
40  Using Arduino / Sensors / Problem with Reading/Writing to the EEPROM of a MLX90614 on: March 16, 2011, 08:42:08 am
Hello together,
I am stuck with the following problem and really need help from the community:
I have connected a Melexis MLX90614 Infrared Sensor to the Arduino to get temperature data.
Now i want to reduce the response time of the sensor by changing some values in the EEPROM.
According to this document http://www.melexis.com/Assets/Understanding-MLX90614-on-chip-digital-signal-filters-5272.aspx, I have to change bits 0-2 and 8-10 from a 16 bit column in the EEPROM ConfigRegister1. The other bits should not be changed, so the programm should read the register, make the alterations, then write the register value back, preserving the value in bits 3-7.

I found this sketch that modifies the emission rate of the MLX90614, i think this is very close to what I need:

Code:
/Simple program to read/write to the EEPROM (or read RAM) of the MLX90614 IR Sensor (in my case
//the MLX90614ESF-AAA). Example below erases the emissivity coefficient and then writes E = 1.
//Written be a total beginner, probably includes errors, and can definitely be
//improved on in many ways... /Lo-fi, 2011.

#include <i2cmaster.h>

void setup()
{
Serial.begin(9600);
Serial.println("----------Let's begin!----------");
i2c_init();                             //Initialise i2c bus
PORTC = (1 << PORTC4) | (1 << PORTC5);  //enable pullups
}

void loop()
{
int dev = 0x00; // I use the general address. If I specify the address
                //(0x05<<1), the code doesn't work, don't know why... yet.
unsigned int data_l = 0;
unsigned int data_h = 0;
int pec = 0;

float data_t = 0;
float emissivity = 0;

//READ EEPROM/RAM

Serial.println("*1: Read EEPROM address:");
i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x24);  //0x004 and 0x04 etc reads the same address in the RAM,
                  //add 2(0) for EEPROM, eg. 0x24 (emissivity correction
                  //coefficient in EEPROM).

i2c_rep_start(dev+I2C_READ);
data_l = i2c_readAck(); //Read 1 byte and then send ack
data_h = i2c_readAck(); //Read 1 byte and then send ack
pec = i2c_readNak();
i2c_stop();

Serial.print("Data Low: ");
Serial.println(data_l);

Serial.print("Data High: ");
Serial.println(data_h);

Serial.print("Data combined: ");
data_t = (((data_h) << 8) + data_l);
Serial.println(data_t);

Serial.print("Emissivity: ");
emissivity = ((data_t) / 65535);
Serial.println(emissivity);

delay(5000);

//WRITE TO EEPROM, FIRST: ERASE OLD STUFF

i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x24); //Register Address to write to

i2c_write(0x00); //Erase low byte (write 0)
i2c_write(0x00); //Erase high byte (write 0)
i2c_write(0xE8); //Send PEC
i2c_stop();

Serial.println("*2: Erasing old emissivity factor (writing 0).");
delay(5000);

//CHECK IF THE EEPROM VALUE HAS BEEN ERASED

Serial.println("*3: Check if the old emissivity coefficient was erased:");
i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x24);  //See above comment.

i2c_rep_start(dev+I2C_READ);
data_l = i2c_readAck(); //Read 1 byte and then send ack
data_h = i2c_readAck(); //Read 1 byte and then send ack
pec = i2c_readNak();
i2c_stop();

Serial.print("Data Low: ");
Serial.println(data_l);

Serial.print("Data High: ");
Serial.println(data_h);

Serial.print("Data combined: ");
data_t = (((data_h) << 8) + data_l);
Serial.println(data_t);

Serial.print("Emissivity: ");
emissivity = ((data_t) / 65535);
Serial.println(emissivity);
delay(5000);

//WRITE TO EEPROM, THE NEW STUFF!

i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x24); //Register Address to write to

i2c_write(0xFF); //New emissivity factor, Ef=1
i2c_write(0xFF); //New emissivity factor, Ef=1
i2c_write(0xCC); //Send PEC
i2c_stop();

Serial.println("*4: Write new E to EEPROM (E = 1.0).");
delay(5000);
Serial.println("----------The process starts over again----------");
delay(5000);
}

The only thing i know so far is that I have to change i2c_write(0x24);  to i2c_write(0x25); and that I need to send the following 16 Bits to this register:
1;0;0;R;R;R;R;R;1;0;0;R;R;R;R;R
R stands for read, so that the sketch first reads whats the existing value and then uses it.

Can anybody please help me with the adaption of the code ? Thanks a lot in advantage  smiley
41  Community / Exhibition / Gallery / Re: Cheap-Thermocam | Thermal Imaging for around 100$ on: March 15, 2011, 07:18:33 pm
Well, it says it uses a 2-wire interface, so you could probably use the Wire library on the Arduino to program it; page 6 details how to set ConfigRegister1, you basically send 11 bits of data (0-10) to address 0x05, which I guess is the address of the device on the 2-wire bus. The directions are a little vague; it sounds like you are -not- supposed to change bits 3-7, only bits 0-2 and bits 8-10, in order to change the settings. So you have to read the register, make the alterations, then write the register value back, preserving the value in bits 3-7.

Ok thanks. I understand this but code realisation is to difficult for me  smiley-confuse
I found this sketch that modifies the emission rate, i think this is very close to what I need:

Code:
/Simple program to read/write to the EEPROM (or read RAM) of the MLX90614 IR Sensor (in my case
//the MLX90614ESF-AAA). Example below erases the emissivity coefficient and then writes E = 1.
//Written be a total beginner, probably includes errors, and can definitely be
//improved on in many ways... /Lo-fi, 2011.

#include <i2cmaster.h>

void setup()
{
Serial.begin(9600);
Serial.println("----------Let's begin!----------");
i2c_init();                             //Initialise i2c bus
PORTC = (1 << PORTC4) | (1 << PORTC5);  //enable pullups
}

void loop()
{
int dev = 0x00; // I use the general address. If I specify the address
                //(0x05<<1), the code doesn't work, don't know why... yet.
unsigned int data_l = 0;
unsigned int data_h = 0;
int pec = 0;

float data_t = 0;
float emissivity = 0;

//READ EEPROM/RAM

Serial.println("*1: Read EEPROM address:");
i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x24);  //0x004 and 0x04 etc reads the same address in the RAM,
                  //add 2(0) for EEPROM, eg. 0x24 (emissivity correction
                  //coefficient in EEPROM).

i2c_rep_start(dev+I2C_READ);
data_l = i2c_readAck(); //Read 1 byte and then send ack
data_h = i2c_readAck(); //Read 1 byte and then send ack
pec = i2c_readNak();
i2c_stop();

Serial.print("Data Low: ");
Serial.println(data_l);

Serial.print("Data High: ");
Serial.println(data_h);

Serial.print("Data combined: ");
data_t = (((data_h) << 8) + data_l);
Serial.println(data_t);

Serial.print("Emissivity: ");
emissivity = ((data_t) / 65535);
Serial.println(emissivity);

delay(5000);

//WRITE TO EEPROM, FIRST: ERASE OLD STUFF

i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x24); //Register Address to write to

i2c_write(0x00); //Erase low byte (write 0)
i2c_write(0x00); //Erase high byte (write 0)
i2c_write(0xE8); //Send PEC
i2c_stop();

Serial.println("*2: Erasing old emissivity factor (writing 0).");
delay(5000);

//CHECK IF THE EEPROM VALUE HAS BEEN ERASED

Serial.println("*3: Check if the old emissivity coefficient was erased:");
i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x24);  //See above comment.

i2c_rep_start(dev+I2C_READ);
data_l = i2c_readAck(); //Read 1 byte and then send ack
data_h = i2c_readAck(); //Read 1 byte and then send ack
pec = i2c_readNak();
i2c_stop();

Serial.print("Data Low: ");
Serial.println(data_l);

Serial.print("Data High: ");
Serial.println(data_h);

Serial.print("Data combined: ");
data_t = (((data_h) << 8) + data_l);
Serial.println(data_t);

Serial.print("Emissivity: ");
emissivity = ((data_t) / 65535);
Serial.println(emissivity);
delay(5000);

//WRITE TO EEPROM, THE NEW STUFF!

i2c_start_wait(dev+I2C_WRITE);
i2c_write(0x24); //Register Address to write to

i2c_write(0xFF); //New emissivity factor, Ef=1
i2c_write(0xFF); //New emissivity factor, Ef=1
i2c_write(0xCC); //Send PEC
i2c_stop();

Serial.println("*4: Write new E to EEPROM (E = 1.0).");
delay(5000);
Serial.println("----------The process starts over again----------");
delay(5000);
}

The only thing I know so far (after 2 hours of research..) is that I have to change i2c_write(0x24);  to i2c_write(0x25); and that I need to send the following 16 Bits to this register:
1;0;0;R;R;R;R;R;1;0;0;R;R;R;R;R
R stands for read, so that the sketch first reads whats the existing value and then uses it.

Can anybody please help me with the adaption of the code ? Thanks a lot in advantage  smiley
42  Community / Exhibition / Gallery / Re: Cheap-Thermocam | Thermal Imaging for around 100$ on: March 13, 2011, 06:19:56 pm
@cr0sh: thanks for the good explanation smiley
i dont think that moving the servo is a real problem because the limitation at speed at the moment comes from the infrared sensor. faster ones are more expensive and thats not the goal.
 i use the mlx90614 with a response time of 100ms which is at the standard configuration minimum.
today i found out that you can reduce the settle time to 37ms by adjusing some settings in eeprom of the mlx90614. that would make the whole process almost three times faster.
here is the document: http://www.melexis.com/Assets/Understanding-MLX90614-on-chip-digital-signal-filters-5272.aspx
my problem is that i dont know how to configure the sensor without this evaluation board (it costs about 250 dollar -.-)
can somebody help ?
43  Community / Exhibition / Gallery / Re: Cheap-Thermocam | Thermal Imaging for around 100$ on: March 13, 2011, 05:29:30 pm
Your homepage is annoying, all those pop-ups...
Here's the direct youtube-link for the video: http://www.youtube.com/watch?feature=player_embedded&v=fVilpSSpkDc

I don't know if there's more advantages for moving the mirror only, but the fact that there less mass to be moved for servos. Your version moves softly, and it doesn't seem to suffering about the device on it.

Cheers,
Kari

Annoying ? I don't get popups and I haven't implemented any, maybe they come from the hoster .tk and I can't see them because of Adblock..
I tried the mirror version but however, it's not working with my infrared sensor at all... Otherwise it would have been a good idea.
44  Community / Exhibition / Gallery / Re: Cheap-Thermocam | Thermal Imaging for around 100$ on: March 13, 2011, 03:22:57 pm
Homemade IRST, that's pretty cool.
Did you consider scanning a mirror rather than the infra-red sensor?

Excellent point, very small mirror will do the job!

Cheers,
Kari

Do you mean i should focus the sensor on a movable mirror instead of moving the whole sensor ?
45  Community / Exhibition / Gallery / Re: Cheap-Thermocam | Thermal Imaging for around 100$ on: March 12, 2011, 09:23:00 pm
The homepage is now online !

-> www.cheap-thermocam.tk
Pages: 1 2 [3] 4 5 6