MLX90614 module

Post here if you want to announce new wiki modules, projects or articles

Moderators: David Barker, Jerry Messina

Post Reply
Tom Estes
Registered User
Registered User
Posts: 37
Joined: Thu Dec 14, 2006 4:19 pm
Location: Monkey Island, Oklahoma USA

MLX90614 module

Post by Tom Estes » Wed Sep 26, 2007 6:47 pm

I have posted a new user module to the Wiki. It provides read/write capability for the Melexis MLX90614 family of non-contact IR sensors. More on the sensor at http://www.melexis.com/ProdMain.aspx?nID=615.

I'm a self taught hobbyist programmer just learning SF so I welcome any comments on module improvements.

Tom

Edited to correct product link.

PhilJ2
Posts: 8
Joined: Sun Aug 09, 2009 4:56 pm
Location: Toronto, Canada

Help with your MLX90614 module

Post by PhilJ2 » Mon Nov 29, 2010 2:55 pm

Hi
I've been trying to get some response from your module - no joy.
The pic (18F2620 @20M) seems to lock-up.
If I disable the I2C call, and just send out the USart.writes all is ok - obviously no values though.

I have the device connected as follows

Pin1 SCL to Pic C.3
Pin2 SDA to Pic C.4
Pin3 Vdd
Pin4 Vss

I have made no changes to you example code, except added Portb.0 to toggle its state, after every sample. When I disable the I2C call this addition functions as expected.

Any ideas ?

Jon Chandler
Registered User
Registered User
Posts: 185
Joined: Mon Mar 10, 2008 8:20 am
Location: Seattle, WA USA
Contact:

Post by Jon Chandler » Mon Nov 29, 2010 4:44 pm

Do you have 4.7k pullup resistors on the clock and data lines?

PhilJ2
Posts: 8
Joined: Sun Aug 09, 2009 4:56 pm
Location: Toronto, Canada

mlx90614 problem

Post by PhilJ2 » Tue Nov 30, 2010 2:06 pm

Hi
Thanks for getting back to me, yes I do have pull-ups on the scl/sda lines.

look forward to hearing from you.

cheers

PhilJ2
Posts: 8
Joined: Sun Aug 09, 2009 4:56 pm
Location: Toronto, Canada

Can anyone help with my problem

Post by PhilJ2 » Wed Dec 01, 2010 9:33 pm

After what seems to be a long time testing the code, I'm getting no where using the MLX90614 from Sparkfun.

Again have not changed anything with Tom's orginal code.

Getting desperate !

Phil :?

Tom Estes
Registered User
Registered User
Posts: 37
Joined: Thu Dec 14, 2006 4:19 pm
Location: Monkey Island, Oklahoma USA

Post by Tom Estes » Thu Dec 02, 2010 2:39 pm

Sorry but I'm away from my bench for several weeks but the code continues to work in an application I have running.

The only thing that comes to mind is that the MLX90614 is a 3.2V device and if you have applied 5V to it, it may be fried.

The pullups (I used 22k) must be tied to the 3.2V supply as well. The PIC will interpret the logic levels correctly when set up this way. Actually I used the LF version of the PIC so I could apply 3.2V to it as well - needing only one power supply.

Otherwise, there may be a silicon issue for the I2C hardware in the PIC. You might try using the software I2C or try getting I2C working with another less complex device.

Any help?

Tom

Post Reply