{"id":32451232,"url":"https://github.com/castillodelsol/genericsensor","last_synced_at":"2025-10-26T06:59:25.662Z","repository":{"id":319448721,"uuid":"1078700680","full_name":"CastilloDelSol/GenericSensor","owner":"CastilloDelSol","description":"A lightweight, modular C++ framework for precision sensor data processing — designed for microcontrollers (Arduino, ESP32, STM32) and laboratory-grade applications. Implements fast, numerically stable function mappers, filters, and measurement processors for resistive temperature devices (RTDs) and generic analog sensors.","archived":false,"fork":false,"pushed_at":"2025-10-18T09:33:57.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-19T05:53:57.540Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CastilloDelSol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-18T08:27:03.000Z","updated_at":"2025-10-18T09:34:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2fed930-06c5-4db9-b701-c456c5ccd3a5","html_url":"https://github.com/CastilloDelSol/GenericSensor","commit_stats":null,"previous_names":["castillodelsol/genericsensor"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/CastilloDelSol/GenericSensor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CastilloDelSol%2FGenericSensor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CastilloDelSol%2FGenericSensor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CastilloDelSol%2FGenericSensor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CastilloDelSol%2FGenericSensor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CastilloDelSol","download_url":"https://codeload.github.com/CastilloDelSol/GenericSensor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CastilloDelSol%2FGenericSensor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281069108,"owners_count":26438554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-26T06:59:22.024Z","updated_at":"2025-10-26T06:59:25.657Z","avatar_url":"https://github.com/CastilloDelSol.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GenericSensor-Processing Framework (v0.1.2)\n\nA lightweight, modular C++ framework for precision sensor data processing — designed for microcontrollers (Arduino, ESP32, STM32) and laboratory-grade applications.  \nImplements fast, numerically stable function mappers, filters, and measurement processors for resistive temperature devices (RTDs) and generic analog sensors.\n\n---\n\n## ✳️ Features\n\n- **Callendar–Van Dusen RTD Processor**  \n  - Supports any platinum RTD with α = 0.00385 (IEC 60751)  \n  - Exact quadratic solution for T ≥ 0 °C  \n  - Minimax-corrected seeded double Newton step for T \u003c 0 °C  \n  - Universal normalization (`R/R₀`) → works with Pt100, Pt500, Pt1000  \n  - Accuracy: full float accuracy.\n  - Valid range: −200 °C … +661 °C  \n\n- **Polynomial Mapper**  \n  - Efficient Horner-form evaluation (supports any order)  \n  - Coefficients defined as static `constexpr` arrays  \n  - Useful for custom transfer functions or pre-calibrated sensors  \n\n- **Filter Chain Framework**  \n  - Generic `BaseFilter`, `EMAFilter`, and extensible design for multi-stage signal conditioning  \n  - Low overhead, ideal for ADC streaming pipelines  \n\n- **Generic Sensor Abstraction**  \n  - Unified interface for mappers, filters, and processors  \n  - Enables plug-and-play measurement pipelines  \n\n---\n\n## 🧮 RTD CVD 385 Processor\n\nHeader: `RTD_385.h`\n\n```cpp\n#include \"RTD_385.h\"\n\nRTD385 rtd(100.0f);  // Pt100, default constants for α=0.00385\n\nvoid loop() {\n    int raw = readADC();          // resistance in ohms\n    float T = rtd.apply(R);       // temperature in °C\n    Serial.println(T, 6);\n}\n```\n\n**Internally:**\n- For T ≥ 0 °C: exact quadratic inverse  \n- For T \u003c 0 °C: quadratic seed + minimax correction → two Newton steps \n\n---\n\n## ⚙️ Structure\n\n```\nIMeasurementProcessor (interface)\n├── BaseMapper (generic transformation interface + config)\n│   ├── BaseTableProcessor (shared logic for table-based transforms)\n│   │   ├── PiecewiseLinearTable\n│   │   └── CubicSplineTable\n│   └── PolynomialMapper\n└── BaseFilter (generic filter base class + config)\n\t├── EMAFilter\n\t├── SMAFilter\n\t├── AlphaBetaFilter\n\t├── ButterworthFilter\n\t├── Kalman1DFilter\n\t├── LowPassFilter\n\t├── HighPassFilter\n\t├── BiquadFilter\n\t├── MedianFilter\n\t├── WMAFilter\n\t└── FIRFilter\n```\n\nAll modules are header-only and can be used independently.\n\n---\n\n## 📦 Installation\n\nCopy the headers into your project or platform-specific `include/` directory, or use as an Arduino library:\n\n```bash\ngit clone https://github.com/\u003cyour-repo-name\u003e.git\n```\n\nThen include the desired modules:\n\n```cpp\n#include \"RTD_385.h\"\n```\n\n---\n\n## 🧾 License\n\nMIT License © 2025 Your Name  \nSee `LICENSE` for details.\n\n---\n\n## 🧭 Version History\n\n| Version | Date | Notes |\n|----------|------|-------|\n| **v0.1.0** | 2025-10-18 | Initial public release — full CVD RTD processor, filter \u0026 mapper base classes |\n\n---\n\n**Precise. Efficient. Embedded-ready.**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcastillodelsol%2Fgenericsensor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcastillodelsol%2Fgenericsensor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcastillodelsol%2Fgenericsensor/lists"}