No description
Find a file
ladyada cef5e156ec Port STM API functions with enhanced ODR validation and algorithm reset
- Port sths34pf80_tmos_odr_set with comprehensive ODR validation based on averaging settings
- Port sths34pf80_func_cfg_write as writeEmbeddedFunction() with safe power-down procedures
- Port sths34pf80_algo_reset as algorithmReset() for sensor algorithm reset
- Port sths34pf80_tmos_odr_check_safe_set as safeSetOutputDataRate() with proper DRDY handling
- Add proper #define STHS34PF80_EMBEDDED_RESET_ALGO to replace hardcoded 0x2A value
- Implement isConnected() function for chip ID verification (0xD3)
- Add complete data reading functions for all sensor outputs
- Add status flag checking functions (isDataReady, isPresence, isMotion, isTempShock)
- Update test sketch with live sensor readings and continuous monitoring
- Enhance begin() to use recommended default settings and proper initialization

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-23 15:11:39 -04:00
.github Remove backup file 2025-06-11 18:03:21 -04:00
examples/test_sths34pf80 Port STM API functions with enhanced ODR validation and algorithm reset 2025-08-23 15:11:39 -04:00
.clang-format Add GitHub configuration and formatting files 2025-06-11 18:02:30 -04:00
Adafruit_STHS34PF80.cpp Port STM API functions with enhanced ODR validation and algorithm reset 2025-08-23 15:11:39 -04:00
Adafruit_STHS34PF80.h Port STM API functions with enhanced ODR validation and algorithm reset 2025-08-23 15:11:39 -04:00
output.txt Add complete low-pass filter configuration support 2025-06-11 18:19:01 -04:00
README.md Add README.md with library overview and documentation 2025-06-11 18:05:22 -04:00
sths34pf80.pdf Add complete low-pass filter configuration support 2025-06-11 18:19:01 -04:00
sths34pf80.txt Add complete low-pass filter configuration support 2025-06-11 18:19:01 -04:00

Adafruit STHS34PF80 Library Build StatusDocumentation

This is the Adafruit STHS34PF80 infrared sensor library for Arduino.

Tested and works great with the Adafruit STHS34PF80 Breakout Board.

This chip uses I2C to communicate, 2 pins are required to interface.

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

About the STHS34PF80

The STHS34PF80 is an uncooled, factory-calibrated infrared motion and presence detection sensor. Key features include:

  • High Sensitivity: 2000 LSB/°C IR sensitivity
  • Long Range: Up to 4 meters detection without lens for 70x25cm objects
  • Wide Field of View: 80° field of view
  • Smart Algorithms: Embedded presence, motion, and ambient temperature shock detection
  • Low Power: 10 µA supply current at 1Hz ODR
  • Temperature Sensor: Integrated ambient temperature sensor with ±0.3°C accuracy
  • Flexible ODR: Programmable output data rates from 0.25 Hz to 30 Hz
  • Digital Interface: I²C and 3-wire SPI interface
  • Operating Range: 5 µm to 20 µm wavelength, -40°C to +85°C

Installation

To install, use the Arduino Library Manager and search for "Adafruit STHS34PF80" and install the library.

Dependencies

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Documentation and doxygen

Documentation is produced by doxygen. Contributions should include documentation for any new features that they add.

Some examples of how to use the library are included in the examples/ folder.

About this Driver

Written by Ladyada for Adafruit Industries. MIT license, check license.txt for more information All text above must be included in any redistribution