No description
Find a file
ladyada 374dbc0494 Add calibration constants and ambient temperature calculation
- Implement getCalibrations() to read all EEPROM calibration constants with proper double precision scaling using multiplication (2^-n) instead of division
- Add getAmbientTemperature() with complete calculation: VRTA, AMB pre-calculations and final temperature formula P_O + (AMB - P_R)/P_G + P_T * (AMB - P_R)^2
- Add refresh rate control with setRefreshRate()/getRefreshRate() functions
- Add getEEPROMVersion() for version information
- Add RAM_6 register definition for ambient temperature calculations
- Update test sketch to display calibration constants and continuous ambient temperature readings
- All functions tested successfully on hardware with MLX90632 sensor showing stable ~23.36°C readings

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-01 20:38:53 -04:00
.github/workflows Initial commit: MLX90632 Far Infrared Temperature Sensor library 2025-07-18 19:25:34 -04:00
examples/test_MLX90632 Add calibration constants and ambient temperature calculation 2025-08-01 20:38:53 -04:00
.clang-format Initial commit: MLX90632 Far Infrared Temperature Sensor library 2025-07-18 19:25:34 -04:00
.gitignore Initial commit: MLX90632 Far Infrared Temperature Sensor library 2025-07-18 19:25:34 -04:00
Adafruit_MLX90632.cpp Add calibration constants and ambient temperature calculation 2025-08-01 20:38:53 -04:00
Adafruit_MLX90632.h Add calibration constants and ambient temperature calculation 2025-08-01 20:38:53 -04:00
README.md Initial commit: MLX90632 Far Infrared Temperature Sensor library 2025-07-18 19:25:34 -04:00

Adafruit MLX90632 Build Status

Arduino library for the MLX90632 Far Infrared Temperature Sensor

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.

Formatting and clang-format

This library uses clang-format to standardize the formatting of .cpp and .h files. Contributions should be formatted using clang-format:

The -i flag will make the changes to the file.

clang-format -i *.cpp *.h

If you prefer to make the changes yourself, running clang-format without the -i flag will print out a formatted version of the file. You can save this to a file and diff it against the original to see the changes.

Note that the formatting output by clang-format is what the automated formatting checker will expect. Any pull requests that don't conform to the formatting style will not pass the automated checks.

About this Driver

Written by Adafruit Industries.

MIT license, check license.txt for more information. All text above must be included in any redistribution.