MLX90614 Interfacing with Raspberry Pi | Python | I2C Tutorial | Non Contact Temp Sensor

preview_player
Показать описание
#temperature #raspberrypi # #contactless #mlx90614 #I2C

In this video, I have explained the interfacing of MLX90614 with Raspberry Pi. It works on the I2C bus protocol.

I hope you like it.!!

You can visit our website for a detailed explanation and code here :
-----------------------------------------------------------------------------------------------------------

You can support my channel at-- Paytm: +91-8655761125

-----------------------------------------------------------------------------------------------------------

-----------------------------------------------------------------------------------------------------------
Some of my other videos are:

Raspberry Pi PDF Reader

Getting started with Raspberry Pi - Setup & Boot without external LAN or MONITOR

Raspberry Pi 3 - Introduction and First Impression

DHT22 Temperature and Humidity Interfacing with Arduino | Digital One wire sensor

Pull up and Pull-down Resistor Explained | Electronics | Micro-controller

What is an Interrupt | Types of Interrupt | Applications of Interrupt

Arduino | Reading data from Serial Port | Serial Communication

Arduino Buzzer Interfacing

Arduino Introduction - Hardware, IDE setup and Led Interfacing

Keil Tutorial for 8051 Micro-Controller using hardware Complete Explanation.

8051 Programming in Keil + hardware tutorial 2

Bluetooth Control pick and place Robot with 3 DOF

-----------------------------------------------------------------------------------------------------------c
Рекомендации по теме
Комментарии
Автор

There is one mistake in the connections. When you look into the connections they are right but when you see the written notes - I have mentioned SCL - SCL(Pin 4) that is wrong. It will be SCL to SCL (Pin 5 on Raspberry). Please verify all the connections before you power on your Raspberry Pi to avoid damages to your sensor.

electrofun
Автор

very nice. i got confused by the characters 1 and l in the code. but it worked. god bless you .

GSNGH
Автор

Sir is it possible to get temperature level on lcd by using raspberry pi controller?

akshpednekar
Автор

Hello, can you please help me with one little thinks? I performed all the steps successfully, but I get AttributeError: "MLX90614 instance has no attribute 'get_ambient'. Can you please tell how can I fix the code or maybe do another one operation to get the code work?
( I use PyMLX90614-0.0.4 version of library)

полинакомарова-хы
Автор

Hi. The MLX90614 is powered with 5V. Should there be a voltage divider connected at the SCL/SDA of the ML90614 to prevent overvoltages at the GPIO pins?

shawnkhoo
Автор

I got it to work on its own, but it causes problems with other devices on my i2c bus. I think it's a 3.3V vs 5V interface, but I don't really know. Have you seen this issue too?

milkawhy
Автор

for those having trouble with code on python 3 do this first

pip3 install PyMLX90614

then run this code:

from smbus2 import SMBus
from mlx90614 import MLX90614

bus = SMBus(1)
sensor = MLX90614(bus, address=0x5A)
print (sensor.get_ambient())
print (sensor.get_object_1())
print (sensor.get_object_2())
bus.close()

allansantosh
Автор

Hi, First of all thank you for simple and neat explanation. I am trying this with R Pi4, is there any limitations or need additional setup for Pi to discover the sensor as slave? Watching your video seems the OS is 4.19.97.. hardware should be something Pi3.

manikandanpounraj
Автор

Does this work with MLX90615 too? I cant get the code to run in thonny python. it shows that there is a "invalid syntax". it does work in the terminal though. plez help

GSNGH
Автор

I see a lot of other people who encounters the same issue as me, that when doing the "i2cdetect -y 1" the sensor connceted does not show up as 5a. Has anybody found out how to solve this - or is it simply because the sensor does not work? I have tried with two different RPs but none of them could find the sensor. The sensor was brand new and connected accordingly.

HeidiNielsen-hkkj
Автор

sir in your diagram u have written pin 4 for SCL and in raspberry Pi diagram below SCL it is connected to pin 5.. I have done the mistake while seeing the video and now my sensor is damaged..so please make some changes so further any one who watches the video may not go wrong .

harshvardhangupta
Автор

When i I run the command ls /dev/*i2c* i get the same output as you but when I run i2cdetect -y 1 no address is displayed. Do you know why this might be?

antwon
Автор

Sir, why is a breadboard in the video? what was it used for?

abbymahabir
Автор

it is possible that this program runs in python3, because I have a error in compilation, because the program doesn't find the library

carloschicharro
Автор

Hello, it's possible to use two sensors at the same time?

JS-dvpd
Автор

Hello Sir, I have the same return as you when i run ls /dev/*i2c* but I don't have the 5A when I run i2cdetect -y 1. I have redone the connections but still nothing. Do you have an idea of the source of my problem

Askin
Автор

What is the output voltage of the sensor? pi I/O pins are not tolerant for 5v right?

ayb
Автор

Traceback (most recent call last):
File "/home/pi/Desktop/temp.py", line 2, in <module>
from mlx90614 import MLX90614
ModuleNotFoundError: No module named 'mlx90614'
can you please tell me why am I getting this error

dsahara
Автор

When I run the code its printing negative values of the temperature what could be the problem, also the addresses i have are 3a and 50 which one is suitable

joanmasesa
Автор

How I can fix the syntaxError: invalid syntax? Thank you

elx_tagnongjoshuamathewt.
visit shbcf.ru