Use your forum account to login.

LOGIN

TOP Contributors

  1. MikroElektronika Team (452 codes)
  2. Shawon Shahryiar (246 codes)
  3. Alcides Ramos (97 codes)
  4. Dany (66 codes)
  5. O B (61 codes)
  6. MikroBUS.NET Team (35 codes)
  7. NART SCHINACKOW (34 codes)
  8. Alberto Trasimeni (25 codes)
  9. Roman Toropov (25 codes)
  10. Arezki YOUYOU (24 codes)

Most Downloaded

  1. Timer Calculator (78341 times)
  2. Network Ethernet Library (38043 times)
  3. FAT32 Library (37062 times)
  4. USB Device Library (28701 times)
  5. Network WiFi Library (27410 times)
  6. FT800 Library (20161 times)
  7. PID Library (19026 times)
  8. GSM click - Example (18596 times)
  9. microSD click - Example (15965 times)
  10. GPS click - Example (12784 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Project

MLX90614 - Reading and writing via SMBus

Rating:

Author: Matej Nogić

Last Updated: 2017-02-26

Category: Measurement

Downloaded: 236 times

Not followed.

Project demonstrates reading and writing to a MLX90614 temperature sensor.

Program is controlled over UART, baud rate: 19200bps
Write "Read" to read all the register's values
Write "Write" to write settings listed from line 178.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "MLX90614 - Reading and writing via SMBus" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "MLX90614 - Reading and writing via SMBus" changes.

Do you want to report abuse regarding "MLX90614 - Reading and writing via SMBus".

  • Information
  • Comments (0)
Download

Download Project [309.12KB]

Version 1.0.0.0

DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Project Blog

Project demonstrates reading and writing to a MLX90614 temperature sensor.  Program is controlled over UART, baud rate: 19200bps
Write "Read" to read all the register's values
Write "Write" to write settings listed from line 178.

Tmin and Tmax should be written in degrees Celsius,
others registers should be written in raw format.

If you want to switch from PWM mode back to SMBus mode
you need to pull SCL pin low for a time longer than 1.024ms.
This will allow you to communicate with a sensor over SMBus
but the PWMCTRL register value will NOT change. So if you want to
stay in a SMBus mode after POR you have to change the PWMCTRL
register value manually.

Reading

Reading

"Read" command

View full image
Writing

Writing

"Write" command

View full image
Writing

Writing

Put here what you want to write

View full image

RELATED CODES

Altitude click Example

This is a simple example of using MPL3115A2 sensor to calculate the current altitude. Resulting altitude in meters is displayed on the Lcd.

[Learn More]

Heart rate click

Heart Rate click carries a MAX30100 integrated pulse oximetry and heart-rate sensor. It’s an optical sensor that derives its readings from emitting two wavelengths of light from two LEDs, then measuring the absorbance of pulsing blood through a photodetector. Uses 3.3V power supply.

[Learn More]

Precision 1kHz sine wave with PIC 16F

Generates a sinewave with a precision sine waveshape and 1000.000 Hz frequency using a PIC 16F628A, 20MHz xtal and the PIC's internal PWM module. This can be used as a piece of test equipment. Complete project with schematics and photos is on this page; http://romanblack.com/onesec/Sine1kHz.htm

[Learn More]