[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-690360-105":59,"doc-detail-690360-en":130,"doc-similar-690360":154},{"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","circuitpython-hardware-lis3dh-accelerometer","CircuitPython Hardware - LIS3DH Accelerometer","","A practical hardware-and-software guide for using the LIS3DH triple-axis accelerometer with Adafruit CircuitPython. It explains what acceleration is, why the LIS3DH is a simple low-cost sensor for motion and orientation, and how to connect the breakout board using either I2C or SPI wiring. The document then covers installing the Adafruit_CircuitPython_LIS3DH module and preparing to read acceleration, detect taps/clicks, and use related sensor features in Python on supported boards.",{"@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/circuitpython-hardware-lis3dh-accelerometer/690360/",{"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/circuitpython-hardware-lis3dh-accelerometer/690360.png","ImageObject",300,407,{"name":92,"@type":93},"RizkyPratama_92","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-22","2026-11-08",true,{"@type":102,"interactionType":103,"userInteractionCount":29},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Which accelerometer and board types does this guide target?","Question",{"text":112,"@type":113},"It targets the LIS3DH triple-axis accelerometer breakout and boards running CircuitPython, with ESP8266- or SAMD21-based boards mentioned as supported options.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How do you connect the LIS3DH using I2C versus SPI?",{"text":117,"@type":113},"For I2C, it uses SCL and SDA along with power (Vin) and ground (GND). For SPI, it uses SCK, MOSI (SDA), MISO (SDO), plus a CS line in addition to power and ground.",{"name":119,"@type":110,"acceptedAnswer":120},"What CircuitPython module must be installed to control the LIS3DH?",{"text":121,"@type":113},"Install the Adafruit_CircuitPython_LIS3DH module to use the LIS3DH with Adafruit CircuitPython on the selected board.","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},690360,1794164677,{"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":29,"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":14,"preview_urls":145},962094243231,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","CircuitPython Hardware: LIS3DH Accelerometer  \nCreated by Tony DiCola  \n[https://learn.adafruit.com/circuitpython-hardware-lis3dh-accelerometer](https://learn.adafruit.com/circuitpython-hardware-lis3dh-accelerometer)  \nLast updated on 2024-06-03 02:05:14 PM EDT  \n©Adafruit Industries Page 1 of 13  \nTable of Contents  \nOverview 3  \n\n| Hardware | 4 |\n| --- | --- |\n| • Parts\u003Cbr>• Wiring\u003Cbr>• I2C Wiring\u003Cbr>• SPI Wiring\u003Cbr>Software | 6 |\n\n• Adafruit CircuitPython Module Install  \n• Examples & Usage  \n• Intialization  \n• Accelerometer Usage  \n• Tap Detection Usage  \n• Analog to Digital Converter Usage  \n©Adafruit Industries Page 2 of 13  \nOverview  \nThe examples in this guide are no longer supported. Check out the LIS3DH sensor guide for CircuitPython and Python usage: [https://learn.adafruit.com/](https://learn.adafruit.com/)  \nadafruit-lis3dh-triple-axis-accelerometer-breakout  \nAcceleration makes the world go around--literally! It's the force that causes movement like a car accelerating away from a stop light or an object falling to the ground from gravity when dropped. Accelerometers are small sensors that can detect the force of acceleration and are great for detecting motion and orientation. The LIS3DH triple-axis accelerometer ([http://adafru.it/2809](http://adafru.it/2809)) in particular is an inexpensive and easy to use accelerometer with features like X, Y, Z axis acceleration and click detection. This guide will show you how to wire the LIS3DH to a board like the ESP8266 or SAMD21/M0 and start reading acceleration values from it in CircuitPython!  \nBefore you get started you'll want to be familiar with CircuitPython, MicroPython, and the LIS3DH by reading these guides:  \n• MicroPython Basics: What is MicroPython? ([https://adafru.it/pXa](https://adafru.it/pXa))  \n• MicroPython Basics: How to Load MicroPython on a Board ([https://adafru.it/pNB](https://adafru.it/pNB))  \n• MicroPython Basics: Load Files & Run Code ([https://adafru.it/s1f](https://adafru.it/s1f))  \n• Adafruit LIS3DH Triple-Axis Accelerometer Breakout ([https://adafru.it/uBr](https://adafru.it/uBr))  \nContinue on to learn about the hardware needed to follow this guide.  \n©Adafruit Industries Page 3 of 13  \nHardware  \nThe examples in this guide are no longer supported. Check out the LIS3DH sensor guide for CircuitPython and Python usage: [https://learn.adafruit.com/](https://learn.adafruit.com/)  \nadafruit-lis3dh-triple-axis-accelerometer-breakout  \nParts  \nYou'll need the following hardware to follow this guide:  \n• Board running CircuitPython. Currently ESP8266 or SAMD21-based boards are supported by CircuitPython. The Feather HUZZAH ESP8266 ([http://adafru.it/](http://adafru.it/)[ ](http://adafru.it/)2821) or Feather M0 boards ([http://adafru.it/2772](http://adafru.it/2772)) are great options that can easily be connected to an accelerometer. See the guide on loading MicroPython & CircuitPython firmware ([https://adafru.it/pWF](https://adafru.it/pWF)) on a board for details on loading CircuitPython. Remember you want to run Adafruit CircuitPython ([https://adafru.it/tBa](https://adafru.it/tBa)) and not MicroPython to follow this guide!  \n• LIS3DH accelerometer breakout board. ([http://adafru.it/2809](http://adafru.it/2809))  \n• Breadboard ([http://adafru.it/64](http://adafru.it/64)), hookup wires ([http://adafru.it/153](http://adafru.it/153)), and soldering tools ([http://adafru.it/136](http://adafru.it/136)). You'll need to solder headers to the accelerometer breakout, be sure to see the guide to excellent soldering ([https://](https://)[ ](https://)[adafru.it/dxy](adafru.it/dxy)) if you're new to it.  \nStart by following the LIS3DH breakout guide ([https://adafru.it/uBr](https://adafru.it/uBr)) to assemble and test the board. Then continue on below to learn how to wire it to a Feather for use with CircuitPython.  \nWiring  \nThere are two ways to connect the LIS3DH accelerometer to a board, either with an I2C or SPI connection. The I2C connection requires ju","cbCaiasBZVHQuUmb","https://ap.wps.com/l/cbCaiasBZVHQuUmb","pdf",2149909,13,"English","# Overview\n# Hardware\n## Parts\n## Wiring\n### I2C Wiring\n### SPI Wiring\n# Software\n## Adafruit CircuitPython Module Install\n## Examples & Usage\n## Initialization\n## Accelerometer Usage\n## Tap Detection Usage\n## Analog to Digital Converter Usage","[{\"question\":\"Which accelerometer and board types does this guide target?\",\"answer\":\"It targets the LIS3DH triple-axis accelerometer breakout and boards running CircuitPython, with ESP8266- or SAMD21-based boards mentioned as supported options.\"},{\"question\":\"How do you connect the LIS3DH using I2C versus SPI?\",\"answer\":\"For I2C, it uses SCL and SDA along with power (Vin) and ground (GND). For SPI, it uses SCK, MOSI (SDA), MISO (SDO), plus a CS line in addition to power and ground.\"},{\"question\":\"What CircuitPython module must be installed to control the LIS3DH?\",\"answer\":\"Install the Adafruit_CircuitPython_LIS3DH module to use the LIS3DH with Adafruit CircuitPython on the selected board.\"}]","CircuitPython Hardware - LIS3DH Accelerometer | PDF",33,[146,150],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/cdc0948807b35bdb79fc7045621da275.webp",983,1390,{"page_no":14,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/e3f81e2fcf09174a6c1b879787f709d6.webp",982,1388,{"list":155,"token":66},[156,163,170,176,182,188,194,200,206,212],{"doc_id":157,"doc_title":158,"file_type":137,"home_preview_img_url":159,"slug":160,"view_count":161,"category_name":30,"create_tm":162},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=1796111999&Signature=pGNOgSKC7mntsDv8pH6J7x%2F2EY0%3D","adafruit-lis3dh-triple-axis-accelerometer-breakout-guide",12,1794164631,{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":168,"category_name":30,"create_tm":169},720508,"Adafruit BNO055 Absolute Orientation Sensor - Absolute Orientation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024397681/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=HCai1Da%2F%2BIXWvtBdL5SrRK6VBXc%3D","adafruit-bno055-absolute-orientation-sensor-absolute-orientation",11,1795037657,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":24,"category_name":30,"create_tm":175},692096,"LSM6DSOX, ISM330DHC, & LSM6DSO32 - 6 DoF IMUs - Wiring, Pinouts, and Library Examples","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002896603/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=5VJZ132pqBLKor03E4GGMB9e7Us%3D","lsm6dsox-ism330dhc-lsm6dso32-6-dof-imus-wiring-pinouts-and-library-examples",1794178562,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":34,"category_name":30,"create_tm":181},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=1796111999&Signature=eMiSis9KWXlqCIpEloR4WWkz48g%3D","adafruit-bno055-absolute-orientation-sensor-setup-orientation-data-and-calibration-guide",1795037682,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":34,"category_name":30,"create_tm":187},720588,"MCP4725 12-Bit DAC Tutorial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024400689/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=c5YK5t%2FOFJBOe8tT6EnCYcJld14%3D","mcp4725-12-bit-dac-tutorial-720588",1795038320,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":29,"category_name":30,"create_tm":193},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=1796111999&Signature=6oEugtZmz56hI2UoMBhxl2sN8p8%3D","adafruit-tlv493-triple-axis-magnetometer-overview",1794175797,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":29,"category_name":30,"create_tm":199},700731,"SmartElex 6 Degrees of Freedom Breakout - LSM6DSO - Tutorial","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012034053/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=2CZjZwiWJzquWBWT3PHKPjeFwl4%3D","smartelex-6-degrees-of-freedom-breakout-lsm6dso-tutorial",1794520312,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":34,"category_name":30,"create_tm":205},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=1796111999&Signature=%2F%2BcA3%2BTs4BRhVXI2OacCZzAhJkE%3D","adafruit-4-channel-adc-breakouts",1795038464,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":81,"category_name":30,"create_tm":211},700486,"Adafruit VL53L1X Time of Flight Distance Sensor - Overview - Removing the Protective Tape - Pinouts - Python & CircuitPython","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012027425/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111999&Signature=pbtHjwvyzqOgnN2VjXVw6Qonucs%3D","adafruit-vl53l1x-time-of-flight-distance-sensor-overview-removing-the-protective-tape-pinouts-python-circuitpython",1794519070,{"doc_id":213,"doc_title":214,"file_type":137,"home_preview_img_url":215,"slug":216,"view_count":24,"category_name":30,"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=1796111999&Signature=5c99It81w%2B%2FIZSKbs%2FjJo3GhMHM%3D","adafruit-ds3231-precision-rtc-breakout-720501",1795037628]