[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-691520-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-691520-en":130,"doc-similar-691520":158},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","adafruit-mlx90640-ir-thermal-camera-guide","Adafruit MLX90640 IR Thermal Camera - Guide","","Adafruit MLX90640 IR Thermal Camera guide explains how to add affordable heat-vision to projects using the MLX90640 thermal sensor breakout. The document describes its 24x32 IR array, 768 infrared temperature readings over I2C, operational temperature range, accuracy, and frame rate. It covers setup considerations, versions with different fields of view, wiring expectations, and usage through Arduino or Raspberry Pi with Python, including library installation and hardware connectors.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/adafruit-mlx90640-ir-thermal-camera-guide/691520/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/adafruit-mlx90640-ir-thermal-camera-guide/691520.png","ImageObject",300,407,{"name":42,"@type":43},"Danger Angel","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-24","2026-11-08",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",7,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What does the Adafruit MLX90640 thermal camera output over I2C?","Question",{"text":63,"@type":64},"It returns an array of 768 individual infrared temperature readings over I2C from its 24x32 IR sensor array.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"What temperature range and accuracy does the sensor support?",{"text":68,"@type":64},"It measures temperatures from -40°C to 300°C with accuracy of ±2°C in the 0–100°C range.",{"name":70,"@type":61,"acceptedAnswer":71},"How can the camera be integrated with a project?",{"text":72,"@type":64},"The guide explains using a microcontroller (or Raspberry Pi) over I2C, and provides example code and libraries for Arduino and Python/CircuitPython, plus STEMMA QT compatible connectors for easier plug-and-play wiring.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},691520,1794174824,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":80,"read_time":144,"preview_page_count":30,"preview_urls":145},962090769052,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","Adafruit MLX90640 IR Thermal Camera  \nCreated by Kattni Rembor  \nLast updated on 2021-02-09 12:10:57 PM EST  \nGuide Contents  \nGuide Contents 2  \nOverview 3  \nPinouts 6  \nPower Pins 6  \nI2C Logic Pins 7  \nSTEMMA Connectors 7  \nArduino Libraries 8  \nLibrary Installation 8  \nArcada Libraries 9  \nInstall Libraries 9 Adafruit Arcada 9 If you aren't running Arduino IDE 1.8.10 or later , you'll need to install all of the following! 9 Adafruit NeoPixel 9  \nAdafruit FreeTouch 10 Adafruit Touchscreen 10 Adafruit SPIFlash 10 Adafruit Zero DMA 10 Adafruit GFX 10 Adafruit ST7735 10 Adafruit ILI9341 11 Adafruit LIS3DH 11 Adafruit Sensor 11  \nAdafruit ImageReader 11 ArduinoJson 11 Adafruit ZeroTimer 11 Adafruit TinyUSB 12 Adafruit WavePlayer 12 SdFat (Adafruit Fork) 12 Audio-Adafruit Fork 12  \nArduino Docs 13 Arduino Thermal Camera 14  \nLoading the Example 14 Python & CircuitPython 18 CircuitPython Microcontroller Wiring 18 Python Computer Wiring 18 CircuitPython Installation of MLX90640 Library 19 Python Installation of MLX90640 Library 19 CircuitPython & Python Usage 20 Python Docs 23 CircuitPython Thermal Camera 24 CircuitPython Microcontroller Wiring 24 CircuitPython Installation of Additional Libraries 24 CircuitPython PyBadge/PyGamer Thermal Camera 24 Downloads 28  \nFiles 28  \nSchematic 28  \nFab Print 28  \n© Adafruit Industries [https://learn.adafruit.com/adafruit-mlx90640-ir-thermal-camera](https://learn.adafruit.com/adafruit-mlx90640-ir-thermal-camera) Page 2 of 29  \nOverview  \nYou can now add affordable heat-vision to your project with an Adafruit MLX90640 Thermal Camera Breakout. This sensor contains a 24x32 array of IR thermal sensors. When connected to your microcontroller (or Raspberry Pi) it will return an array of 768 individual infrared temperature readings over I2C. It's like those fancy thermal cameras, but compact and simple enough for easy integration.  \nThere are two versions: one with a wider 110°x70° field of view ([https://adafru.it/IDi](https://adafru.it/IDi)) and one with a narrower 55°x35° field of view ([https://adafru.it/HNe](https://adafru.it/HNe)) .  \n© Adafruit Industries [https://learn.adafruit.com/adafruit-mlx90640-ir-thermal-camera](https://learn.adafruit.com/adafruit-mlx90640-ir-thermal-camera) Page 3 of 29  \nThis part will measure temperatures ranging from -40°C to 300°C with an accuracy of +-2°C (in the 0- 100°C range) . With a maximum frame rate of 16 Hz (the theoretical limit is 32Hz but we were not able to practically achieve it), It's perfect for creating your own human detector or mini thermal camera. We have code for using this sensor on an Ard ui no or compatible (the sensor communicates over I2C) or on a Raspberry Pi with Python. If using an Ard ui no-compatible, you'll need a processor with at least 20KB RAM-a SAMD21 ( M0) or SAMD51 ( M4) chipset will do nicely. On the Pi, you can even perform interpolation processing with help from the Sci Py python library and get some pretty nice results!  \nThis sensor reads the data twice per frame, in a checker-board pattern, so it's normal to see a checkerboard dither effect when moving the sensor around-the effect isn't noticeable when things move slowly.  \n© Adafruit Industries [https://learn.adafruit.com/adafruit-mlx90640-ir-thermal-camera](https://learn.adafruit.com/adafruit-mlx90640-ir-thermal-camera) Page 4 of 29  \nTo make it easy to use, we hand-soldered it on a breakout board with a 3.3V regulator and level shifting. So you can use it with any 3V or 5V microcontroller or computer. We've even included Spark Fun  \nqwiic ([https://adafru.it/Fpw](https://adafru.it/Fpw)) compatible STEMMA QT ([https://adafru.it/Ft4](https://adafru.it/Ft4)) connectors for the I2C bus  \nso you don't even need to solder! Just plug-n-play with any of our STEMMA QT (JST SH) cables.  \nEven better-We've done all the hard work here, with example code and supporting software libraries to get you up in running in just a few lines of Arduino ([https://adafru.it/IDj](https://adafr","cbCaikp85wi4NulO","https://ap.wps.com/l/cbCaikp85wi4NulO","pdf",3043721,29,"English","# Overview\n## Pinouts\n## Power Pins\n## I2C Logic Pins\n## STEMMA Connectors\n## Arduino Libraries\n## Library Installation\n## Loading the Example\n## Python & CircuitPython Usage","[{\"question\":\"What does the Adafruit MLX90640 thermal camera output over I2C?\",\"answer\":\"It returns an array of 768 individual infrared temperature readings over I2C from its 24x32 IR sensor array.\"},{\"question\":\"What temperature range and accuracy does the sensor support?\",\"answer\":\"It measures temperatures from -40°C to 300°C with accuracy of ±2°C in the 0–100°C range.\"},{\"question\":\"How can the camera be integrated with a project?\",\"answer\":\"The guide explains using a microcontroller (or Raspberry Pi) over I2C, and provides example code and libraries for Arduino and Python/CircuitPython, plus STEMMA QT compatible connectors for easier plug-and-play wiring.\"}]","Adafruit MLX90640 IR Thermal Camera - Guide | PDF",73,[146,150,154],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/23fbe955373c807d1a67b0dba0c14ae9.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/58622b11c595f00f52a329f208906b87.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/3619eaac468509bf1ba03b8e5cee8319.webp",981,1269,{"list":159,"token":11},[160,166,172,177,182,188,194,200,206,212],{"doc_id":161,"doc_title":162,"file_type":137,"home_preview_img_url":163,"slug":164,"view_count":55,"category_name":29,"create_tm":165},691511,"Adafruit MLX90640 IR Thermal Camera","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002678685/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=AUcVyxA0CLjWyahoz5RXyJitXsI%3D","adafruit-mlx90640-ir-thermal-camera",1794174814,{"doc_id":167,"doc_title":168,"file_type":137,"home_preview_img_url":169,"slug":170,"view_count":33,"category_name":29,"create_tm":171},691512,"MLX90640 32x24 IR array - Datasheet - Key Features and Applications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002048740/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=qQnYhrUjgREPdsO1eeLku1a9SBs%3D","mlx90640-32x24-ir-array-datasheet-key-features-and-applications",1794174816,{"doc_id":173,"doc_title":174,"file_type":137,"home_preview_img_url":175,"slug":176,"view_count":102,"category_name":29,"create_tm":171},691513,"MLX90640 32x24 IR array - Short form Datasheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002678701/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=o%2FgGvrYOcH57XczGE8VEWMFTI40%3D","mlx90640-32x24-ir-array-short-form-datasheet",{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":55,"category_name":29,"create_tm":80},691521,"MLX90641-D55 Thermal Camera - Technical Specifications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002048789/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=l08RA05aYNHtIr88uBii4kqPlJU%3D","mlx90641-d55-thermal-camera-technical-specifications",{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":33,"category_name":29,"create_tm":187},671599,"MLX90642 Datasheet - Product Features, Applications, Ordering Information","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988736155/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=sUv2lq%2BfW7vG8ECXpcmJAH5ww1o%3D","mlx90642-datasheet-product-features-applications-ordering-information",1793577539,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":30,"category_name":29,"create_tm":193},720529,"Adafruit VL53L0X Time of Flight MicroLIDAR Distance Sensor Breakout","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024398388/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=E840%2FCfe%2BvxnaptBwKIMoTr3%2B%2Bo%3D","adafruit-vl53l0x-time-of-flight-microlidar-distance-sensor-breakout",1795037859,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":33,"category_name":29,"create_tm":199},692079,"IMX462 2MP Starlight Camera - Specification - Raspberry Pi Setup Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002059113/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=Fdl38wOghUDUN6EO9GE3qkvEnNM%3D","imx462-2mp-starlight-camera-specification-raspberry-pi-setup-guide",1794178306,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":97,"category_name":29,"create_tm":205},720505,"Adafruit DS3231 Precision RTC Breakout - Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023674399/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=TPWpnxY2IyQkkPVqOCnCNOJWdps%3D","adafruit-ds3231-precision-rtc-breakout-guide",1795037639,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":102,"category_name":29,"create_tm":211},720550,"ADXL345 Digital Accelerometer","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023675277/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=lsjMi8ENe%2F5Xxmzu9rRakgEzmuw%3D","adxl345-digital-accelerometer",1795038174,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":97,"category_name":29,"create_tm":217},720501,"Adafruit DS3231 Precision RTC Breakout","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024397560/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111519&Signature=W%2BoO%2BE9c6bYEOQqwJE2tOXyEPSA%3D","adafruit-ds3231-precision-rtc-breakout-720501",1795037628]