Cover image
Try Now
2020-07-09

Spark Core Library für den MCP9808 -Temperatursensor

3 years

Works with Finder

2

Github Watches

13

Github Forks

4

Github Stars

MCP9808

A Library to add support of MCP9808 precision temperature sensor to Particle core (Formerly Spark Core).

Usage

Before your setup function

#include "MCP9808.h"
MCP9808 mcp = MCP9808();

In your setup function

    // MCP9808 sensor setup
    while(! mcp.begin()){
        Serial.println("Couldnt find MCP9808");
        delay(1000);
    }
    mcp.setResolution(MCP9808_SLOWEST);

In your loop you can now get the temperature like that

    temperature = mcp.getTemperature();

Options

Power modes

The MCP9808 offers a continuous conversion mode or a low-power mode where the sensor only draw 0.1µA. The low power mode is also called shutdown mode. Continuous conversion is the default mode. You can select either with setPowerMode :

    mcp.setPowerMode(MCP9808_CONTINUOUS);

or

    mcp.setPowerMode(MCP9808_LOW_POWER);

Resolution and Speed modes

If you want to get more frequent temperature readings you'll need to lower the resolution. The best resolution is +/-0.0625°C resolution and takes 250ms of conversion time : MCP9808_SLOWEST The fastest conversion time is 30ms and has a resolution of +/- 0.5°C : MCP9808_FASTEST MCP9808_SLOWEST / MCP9808_SLOW / MCP9808_FAST / MCP9808_FASTEST

    mcp.setResolution(MCP9808_SLOWEST);

Contributing

  1. Fork it (https://github.com/romainmp/MCP9808/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • pontusab
  • Die Cursor & Windsurf -Community finden Regeln und MCPs

  • av
  • Führen Sie mühelos LLM -Backends, APIs, Frontends und Dienste mit einem Befehl aus.

  • 1Panel-dev
  • 🔥 1Panel bietet eine intuitive Weboberfläche und einen MCP -Server, um Websites, Dateien, Container, Datenbanken und LLMs auf einem Linux -Server zu verwalten.

  • Mintplex-Labs
  • Die All-in-One-Desktop & Docker-AI-Anwendung mit integriertem Lappen, AI-Agenten, No-Code-Agent Builder, MCP-Kompatibilität und vielem mehr.

  • GeyserMC
  • Eine Bibliothek für Kommunikation mit einem Minecraft -Client/Server.

  • awslabs
  • AWS MCP -Server - Spezielle MCP -Server, die AWS -Best Practices direkt in Ihren Entwicklungsworkflow bringen

  • appcypher
  • Awesome MCP -Server - eine kuratierte Liste von Modellkontext -Protokollservern für Modellkontext

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llm 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Zusammenfassung der weltbesten LLM -Ressourcen.

    Reviews

    2 (1)
    Avatar
    user_Vhl7kN7A
    2025-04-17

    I've been using the MCP9808 temperature sensor in several projects and it's been fantastic. The accuracy and quick response rate have made it ideal for my needs. Kudos to Romainmp for making this available! The GitHub repository is well-documented and easy to follow. Highly recommend for anyone needing precise temperature measurements!