{"product_id":"gy-511-lsm303dlhc-3-axis-e-compass-sensor-module-0348","title":"GY-511 LSM303DLHC 3-Axis E-Compass Sensor Module","description":"\u003ch1\u003eGY-511 LSM303DLHC 3-axis E-Compass Sensor Module\u003c\/h1\u003e\n\n\u003cp\u003eThe GY-511 module integrates the LSM303DLHC chip, providing a 3-axis accelerometer and 3-axis magnetometer. It delivers tilt-compensated heading data over I2C, making it ideal for orientation, navigation, and motion-sensing projects. Whether you're designing a drone, robot, or wearable, this sensor offers accurate and compact performance with 3.3V logic.\u003c\/p\u003e\n\n\u003ch2\u003eKey Specifications\u003c\/h2\u003e\n\u003ctable\u003e\n  \u003cthead\u003e\u003ctr\u003e\n\u003cth\u003eSpecification\u003c\/th\u003e\n\u003cth\u003eValue\u003c\/th\u003e\n\u003c\/tr\u003e\u003c\/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n\u003ctd\u003eChipset\u003c\/td\u003e\n\u003ctd\u003eLSM303DLHC\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eAccelerometer Range\u003c\/td\u003e\n\u003ctd\u003e±2\/±4\/±8\/±16 g\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eMagnetometer Range\u003c\/td\u003e\n\u003ctd\u003e±1.3\/±1.9\/±2.5\/±4.0\/±4.7\/±5.6\/±8.1 gauss\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eInterface\u003c\/td\u003e\n\u003ctd\u003eI2C (up to 400 kHz)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eOperating Voltage\u003c\/td\u003e\n\u003ctd\u003e2.16V – 3.6V (VDD), 1.8V (VDDIO)\u003c\/td\u003e\n\u003c\/tr\u003e\n    \u003ctr\u003e\n\u003ctd\u003eDimensions\u003c\/td\u003e\n\u003ctd\u003e~18mm x 14mm\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch2\u003eWhat You Can Build With This\u003c\/h2\u003e\n\u003cul\u003e\n  \u003cli\u003eDigital compass for autonomous robots\u003c\/li\u003e\n  \u003cli\u003eGesture-controlled gadgets with tilt sensing\u003c\/li\u003e\n  \u003cli\u003ePedestrian dead reckoning system\u003c\/li\u003e\n  \u003cli\u003eAugmented reality head tracking\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch2\u003eCompatibility\u003c\/h2\u003e\n\u003cp\u003eThis sensor works with any microcontroller supporting I2C, such as Arduino Uno, Mega, Nano, ESP32, and Raspberry Pi. It operates at 3.3V logic; for 5V boards, use a logic level converter on SDA and SCL lines. It pairs well with GPS modules for navigation systems and with gyroscopes for full IMU configurations.\u003c\/p\u003e\n\n\u003ch2\u003eWiring Notes\u003c\/h2\u003e\n\u003cp\u003eConnect VCC to 3.3V, GND to common ground, SDA to A4 (Arduino Uno) or GPIO21 (ESP32), SCK to A5 or GPIO22. The module includes onboard pull-up resistors, but if communication is unstable, add external 4.7kΩ resistors between SDA\/SCL and 3.3V. Keep wires short to avoid interference.\u003c\/p\u003e\n\n\u003ch2\u003eWhy Buy from Compoden\u003c\/h2\u003e\n\u003cp\u003eEvery component is sourced from verified suppliers and tested for compatibility before listing. We've spent 10 years building projects for makers, schools, and institutions across India. Ships from Bengaluru in 3-5 days. If defective on arrival, replace within 7 days.\u003c\/p\u003e\n\n\u003cdetails\u003e\u003csummary\u003eIs this compatible with Arduino Uno?\u003c\/summary\u003e\u003cp\u003eYes, it works with Arduino Uno via I2C. Connect SDA to A4, SCK to A5, and use the LSM303 library for data reading.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eDoes it include tilt compensation?\u003c\/summary\u003e\u003cp\u003eThe LSM303DLHC chip provides both accelerometer and magnetometer data; heading must be calculated in software with tilt compensation algorithms.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eCan I use it to detect metal objects?\u003c\/summary\u003e\u003cp\u003eThe magnetometer can detect magnetic fields, so it may respond to ferrous metals but is primarily designed for compass heading.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdetails\u003e\u003csummary\u003eWhat is the update rate?\u003c\/summary\u003e\u003cp\u003eThe maximum output data rate is 400 Hz for the magnetometer and up to 1.6 kHz for the accelerometer, depending on configuration.\u003c\/p\u003e\u003c\/details\u003e\n\u003cdiv class=\"compoden-handoff\" style=\"margin-top:24px;padding:16px;background:#f0f4ff;border-left:4px solid #2B4D8F;border-radius:4px;\"\u003e\n  \u003cp style=\"margin:0 0 6px 0;font-weight:600;color:#1A3560;\"\u003e📦 Free Setup Handoff Document Included\u003c\/p\u003e\n  \u003cp style=\"margin:0;font-size:0.95em;color:#333;\"\u003eEvery Compoden order includes a free setup handoff document — step-by-step instructions to get your component working within minutes. Download it via QR code on your package. The handoff document is also trained to help you troubleshoot the majority of problems.\u003c\/p\u003e\n\u003c\/div\u003e\n","brand":"Compoden","offers":[{"title":"Default Title","offer_id":53444959568237,"sku":"CDN-0348","price":270.0,"currency_code":"INR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0999\/3997\/5533\/files\/image_1_e0e5f08b-62d6-458d-9b63-bbd317b34275.jpg?v=1781512485","url":"https:\/\/compoden.com\/products\/gy-511-lsm303dlhc-3-axis-e-compass-sensor-module-0348","provider":"Compoden","version":"1.0","type":"link"}