[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-691511-105":59,"doc-detail-691511-en":130,"doc-similar-691511":166},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","adafruit-mlx90640-ir-thermal-camera","Adafruit MLX90640 IR Thermal Camera","","Adafruit MLX90640 IR Thermal Camera guide explains how to integrate the MLX90640 thermal sensor into microcontroller or Raspberry Pi projects. It describes the 24x32 IR array output of 768 temperature readings over I2C, available wide and narrow field-of-view versions, operating temperature range and accuracy, and typical frame-rate limits. The document covers electrical connections, STEMMA QT support with level shifting, and setup steps for Arduino and Python/CircuitPython library installation and example usage.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/adafruit-mlx90640-ir-thermal-camera/691511/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/adafruit-mlx90640-ir-thermal-camera/691511.png","ImageObject",300,407,{"name":92,"@type":93},"Alexandar","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","2026-11-08",true,{"@type":102,"interactionType":103,"userInteractionCount":34},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What data does the MLX90640 sensor provide over I2C?","Question",{"text":112,"@type":113},"It outputs an array of 768 individual infrared temperature readings over I2C from its 24x32 IR sensor array.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What field-of-view versions are available for the thermal camera breakout?",{"text":117,"@type":113},"There are two versions: a wider 110°x70° field of view and a narrower 55°x35° field of view, primarily distinguished by lens length.",{"name":119,"@type":110,"acceptedAnswer":120},"How is the board powered and connected to different logic levels?",{"text":121,"@type":113},"The breakout includes a 3.3V regulator and level shifting, so it can be powered with 3-5VDC and interfaced with 3V or 5V microcontrollers/computers using the level-shifted I2C pins.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},691511,1794174814,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":34,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":139,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":129,"read_time":144,"preview_page_count":24,"preview_urls":145},962090768658,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","Adafruit MLX90640 IR Thermal Camera  \nCreated by Kattni Rembor  \n[https://learn.adafruit.com/adafruit-mlx90640-ir-thermal-camera](https://learn.adafruit.com/adafruit-mlx90640-ir-thermal-camera)  \nLast updated on 2026-08-20 03:17:38 PM UTC  \n©Adafruit Industries Page 1 of 43  \nTable of Contents  \nOverview 5  \n\n| Pinouts | 8 |\n| --- | --- |\n| • Power Pins\u003Cbr>• I2C Logic Pins\u003Cbr>• STEMMA Connectors\u003Cbr>Arduino Libraries | 10 |\n| • Library Installation\u003Cbr>Arcada Libraries | 11 |\n| • Install Libraries\u003Cbr>• Adafruit Arcada\u003Cbr>• If you aren't running Arduino IDE 1.8.10 or later, you'll need to install all of the following!\u003Cbr>• Adafruit NeoPixel\u003Cbr>• Adafruit FreeTouch\u003Cbr>• Adafruit Touchscreen\u003Cbr>• Adafruit SPIFlash\u003Cbr>• Adafruit Zero DMA\u003Cbr>• Adafruit GFX\u003Cbr>• Adafruit ST7735\u003Cbr>• Adafruit ILI9341\u003Cbr>• Adafruit LIS3DH\u003Cbr>• Adafruit Sensor\u003Cbr>• Adafruit ImageReader\u003Cbr>• ArduinoJson\u003Cbr>• Adafruit ZeroTimer\u003Cbr>• Adafruit TinyUSB\u003Cbr>• Adafruit WavePlayer\u003Cbr>• SdFat (Adafruit Fork)\u003Cbr>• Audio-Adafruit Fork\u003Cbr>Arduino Wiring and Example | 17 |\n| • I2C Wiring\u003Cbr>• Load Example\u003Cbr>Arduino Docs | 21 |\n| Arduino PyBadge and PyGamer Thermal Camera | 21 |\n| • Loading the Example\u003Cbr>Arduino Feather and LCD Thermal Camera | 25 |\n| • Parts\u003Cbr>• Wiring\u003Cbr>• Required Libraries\u003Cbr>• Code\u003Cbr>Python & CircuitPython | 32 |\n\n• CircuitPython Microcontroller Wiring  \n• Python Computer Wiring  \n• CircuitPython Installation of MLX90640 Library  \n• Python Installation of MLX90640 Library  \n©Adafruit Industries Page 2 of 43  \n• CircuitPython & Python Usage  \nPython Docs 37  \n\n| CircuitPython Thermal Camera | 37 |\n| --- | --- |\n| • CircuitPython Microcontroller Wiring\u003Cbr>• CircuitPython Installation of Additional Libraries\u003Cbr>• CircuitPython PyBadge/PyGamer Thermal Camera\u003Cbr>Downloads | 42 |\n\n• Files  \n• Schematic  \n• Fab Print  \n©Adafruit Industries Page 3 of 43  \n©Adafruit Industries Page 4 of 43  \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.  \n©Adafruit Industries Page 5 of 43  \nThere are two versions: one with a wider 110°x70° field of view ([http://adafru.it/4469](http://adafru.it/4469)) and one with a narrower 55°x35° field of view ([http://adafru.it/4407](http://adafru.it/4407)) .  \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 Arduino or compatible (the sensor communicates over I2C) or on a Raspberry Pi with Python. If using an Arduino-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 SciPy python library and get some pretty nice results!  \n©Adafruit Industries Page 6 of 43  \nThis sensor reads the data twice per frame, in a checker-board pattern, so it's normal to see a checker-board dither effect when moving the sensor around-the effect isn't noticeable when things move slowly.  \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 SparkFun qwiic ([https://adafru.it/Fpw](https://adafru.it/Fpw)) compatible STEMMA  \n©Adafruit Industries Page 7 of 43  \nQT ([https://adafru.it/Ft4](https://adafru.it/Ft4)) connectors for the I2C bus so you don't even need to solder! Just plug-n-play with any of our STEMMA QT (JST SH) cables.  \nEven better-W","cbCairdXsupPPgEx","https://ap.wps.com/l/cbCairdXsupPPgEx","pdf",6413481,43,"English","# Overview\n# Pinouts\n## Power Pins\n## I2C Logic Pins\n## STEMMA Connectors\n# Arduino Wiring and Example\n## I2C Wiring\n## Load Example\n# Python & CircuitPython\n## CircuitPython Microcontroller Wiring\n## Python Computer Wiring\n## CircuitPython Installation of MLX90640 Library\n# Downloads","[{\"question\":\"What data does the MLX90640 sensor provide over I2C?\",\"answer\":\"It outputs an array of 768 individual infrared temperature readings over I2C from its 24x32 IR sensor array.\"},{\"question\":\"What field-of-view versions are available for the thermal camera breakout?\",\"answer\":\"There are two versions: a wider 110°x70° field of view and a narrower 55°x35° field of view, primarily distinguished by lens length.\"},{\"question\":\"How is the board powered and connected to different logic levels?\",\"answer\":\"The breakout includes a 3.3V regulator and level shifting, so it can be powered with 3-5VDC and interfaced with 3V or 5V microcontrollers/computers using the level-shifted I2C pins.\"}]","Adafruit MLX90640 IR Thermal Camera | PDF",108,[146,150,154,158,162],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/a3303e4176f5ca6371a2efdbcdf6367d.webp",983,1390,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/5e4c272aacaa631f2270697a2351a7c5.webp",982,1388,{"page_no":81,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/027e338a7e31fc37318d46313aa97190.webp",981,1387,{"page_no":19,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/5a43e62d6374590782c60fb1d2350aad.webp",980,1385,{"page_no":24,"url":163,"width":164,"height":165},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/f160d26346cf465e552514a3a6bff89e.webp",979,1384,{"list":167,"token":66},[168,174,180,186,193,199,205,211,217,223],{"doc_id":169,"doc_title":170,"file_type":137,"home_preview_img_url":171,"slug":172,"view_count":34,"category_name":30,"create_tm":173},691520,"Adafruit MLX90640 IR Thermal Camera - Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002048763/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=hfzWNXa6GtdyvpIBTkhhZY6wjwQ%3D","adafruit-mlx90640-ir-thermal-camera-guide",1794174824,{"doc_id":175,"doc_title":176,"file_type":137,"home_preview_img_url":177,"slug":178,"view_count":24,"category_name":30,"create_tm":179},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=1796111039&Signature=jqlxcg7WV4tkOkVhoHJB5vmqOO0%3D","adafruit-ds3231-precision-rtc-breakout-720501",1795037628,{"doc_id":181,"doc_title":182,"file_type":137,"home_preview_img_url":183,"slug":184,"view_count":34,"category_name":30,"create_tm":185},720517,"Adafruit BNO055 Absolute Orientation Sensor - Setup, Orientation Data, and Calibration Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024397763/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=vkdWNwIFGM9XXhd1xBq4VwDWi58%3D","adafruit-bno055-absolute-orientation-sensor-setup-orientation-data-and-calibration-guide",1795037682,{"doc_id":187,"doc_title":188,"file_type":137,"home_preview_img_url":189,"slug":190,"view_count":191,"category_name":30,"create_tm":192},690357,"Adafruit LIS3DH Triple-Axis Accelerometer Breakout - Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002631446/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=dd6DO0xftj4LGga2TQcFQvqQktQ%3D","adafruit-lis3dh-triple-axis-accelerometer-breakout-guide",12,1794164631,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":34,"category_name":30,"create_tm":198},720615,"Adafruit 4-Channel ADC Breakouts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023676115/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=LnxEIfuVCPgsgayk0Cjb47U%2BO4g%3D","adafruit-4-channel-adc-breakouts",1795038464,{"doc_id":200,"doc_title":201,"file_type":137,"home_preview_img_url":202,"slug":203,"view_count":29,"category_name":30,"create_tm":204},720489,"Adafruit INA219 Current Sensor Breakout - Assembly and Wiring Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024396997/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=L6zPhi6NivMkBOnXeT%2Fhkmf8ysY%3D","adafruit-ina219-current-sensor-breakout-assembly-and-wiring-guide",1795037522,{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":29,"category_name":30,"create_tm":210},691700,"Adafruit TLV493 Triple-Axis Magnetometer - Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002682239/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=VMHsE2gap8Ik%2F46laXMO0oRLFas%3D","adafruit-tlv493-triple-axis-magnetometer-overview",1794175797,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":29,"category_name":30,"create_tm":216},720580,"MCP4725 12-Bit DAC Tutorial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230023675645/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=dgmsgMnHXvyyv5oBXb67adc9yPI%3D","mcp4725-12-bit-dac-tutorial",1795038301,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":81,"category_name":30,"create_tm":222},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=1796111039&Signature=V6kLPCzAXEgKVQVXuhTIxnCB4bw%3D","adafruit-vl53l0x-time-of-flight-microlidar-distance-sensor-breakout",1795037859,{"doc_id":224,"doc_title":225,"file_type":137,"home_preview_img_url":226,"slug":227,"view_count":19,"category_name":30,"create_tm":228},720477,"Adafruit BMP280 Barometric Pressure + Temperature Sensor Breakout","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024396857/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111039&Signature=dlq2BhiHQvRus%2FV%2Fsn9eh5mflwA%3D","adafruit-bmp280-barometric-pressure-temperature-sensor-breakout",1795037493]