adafruit-circuitpython-mcp9600


Nameadafruit-circuitpython-mcp9600 JSON
Version 2.0.4 PyPI version JSON
download
home_pageNone
SummaryCircuitPython library for the Adafruit MCP9600 breakout
upload_time2024-10-07 22:13:13
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT
keywords adafruit blinka circuitpython micropython mcp9600 temp temperature i2c thermocouple
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Introduction
============

.. image:: https://readthedocs.org/projects/adafruit-circuitpython-mcp9600/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/mcp9600/en/latest/
    :alt: Documentation Status

.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg
    :target: https://adafru.it/discord
    :alt: Discord

.. image:: https://github.com/adafruit/Adafruit_CircuitPython_MCP9600/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_MCP9600/actions/
    :alt: Build Status

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black
    :alt: Code Style: Black

This is a CircuitPython driver for the MCP9600 thermocouple I2C amplifier.
In addition to the MCP9600 breakout, you will also need a thermocouple, which
can be found in the Adafruit store.
The MCP9600 supports several thermocouple types for different temperature
ranges. The "K" type is the default, with a range of -200C to +1372C.


Dependencies
=============
This driver depends on:

* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_

Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.

Installing from PyPI
====================

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
PyPI <https://pypi.org/project/adafruit-circuitpython-mcp9600/>`_. To install for current user:

.. code-block:: shell

    pip3 install adafruit-circuitpython-mcp9600

To install system-wide (this may be required in some cases):

.. code-block:: shell

    sudo pip3 install adafruit-circuitpython-mcp9600

To install in a virtual environment in your current project:

.. code-block:: shell

    mkdir project-name && cd project-name
    python3 -m venv .venv
    source .venv/bin/activate
    pip3 install adafruit-circuitpython-mcp9600

Usage Example
=============

This is a simple example showing the hot junction temperature (the
temperature at the tip of the thermocouple). You may need to adjust the
I2C frequency if you receive input/output errors.

.. code-block:: shell

    import board
    import busio
    from adafruit_bus_device.i2c_device import I2CDevice
    from adafruit_mcp9600 import MCP9600

    i2c = busio.I2C(board.SCL, board.SDA,frequency=200000)
    try:
        # using default I2C register and "K" thermocouple
        device = MCP9600(i2c)
        print("temperature(C):",device.temperature)
    except ValueError:
        print("MCP9600 sensor not detected")

This example displays the ambient/room and hot junction temperatures at
1 second intervals. Turn on the Mu editor's plotter option to view the
temperatures in a real-time graph.

.. code-block:: shell

    import board
    import busio
    import time
    from adafruit_bus_device.i2c_device import I2CDevice
    from adafruit_mcp9600 import MCP9600

    i2c = busio.I2C(board.SCL, board.SDA, frequency=200000)

    try:
        device = MCP9600(i2c)
        print("version:", device.version)
        while True:
            print((
                device.ambient_temperature,
                device.temperature
            ))
            time.sleep(1)
    except ValueError:
        print("MCP9600 sensor not detected")


Documentation
=============

API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/mcp9600/en/latest/>`_.

For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.

Contributing
============

Contributions are welcome! Please read our `Code of Conduct
<https://github.com/adafruit/Adafruit_CircuitPython_MCP9600/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "adafruit-circuitpython-mcp9600",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "adafruit, blinka, circuitpython, micropython, mcp9600, temp, temperature, i2c, thermocouple",
    "author": null,
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/01/f9/c56cccea80faddd180ff06e1fc8850fb18973199d389e7ea61949a1175d0/adafruit_circuitpython_mcp9600-2.0.4.tar.gz",
    "platform": null,
    "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-mcp9600/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/mcp9600/en/latest/\n    :alt: Documentation Status\n\n.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg\n    :target: https://adafru.it/discord\n    :alt: Discord\n\n.. image:: https://github.com/adafruit/Adafruit_CircuitPython_MCP9600/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_MCP9600/actions/\n    :alt: Build Status\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n    :alt: Code Style: Black\n\nThis is a CircuitPython driver for the MCP9600 thermocouple I2C amplifier.\nIn addition to the MCP9600 breakout, you will also need a thermocouple, which\ncan be found in the Adafruit store.\nThe MCP9600 supports several thermocouple types for different temperature\nranges. The \"K\" type is the default, with a range of -200C to +1372C.\n\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.\n\nInstalling from PyPI\n====================\n\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI <https://pypi.org/project/adafruit-circuitpython-mcp9600/>`_. To install for current user:\n\n.. code-block:: shell\n\n    pip3 install adafruit-circuitpython-mcp9600\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n    sudo pip3 install adafruit-circuitpython-mcp9600\n\nTo install in a virtual environment in your current project:\n\n.. code-block:: shell\n\n    mkdir project-name && cd project-name\n    python3 -m venv .venv\n    source .venv/bin/activate\n    pip3 install adafruit-circuitpython-mcp9600\n\nUsage Example\n=============\n\nThis is a simple example showing the hot junction temperature (the\ntemperature at the tip of the thermocouple). You may need to adjust the\nI2C frequency if you receive input/output errors.\n\n.. code-block:: shell\n\n    import board\n    import busio\n    from adafruit_bus_device.i2c_device import I2CDevice\n    from adafruit_mcp9600 import MCP9600\n\n    i2c = busio.I2C(board.SCL, board.SDA,frequency=200000)\n    try:\n        # using default I2C register and \"K\" thermocouple\n        device = MCP9600(i2c)\n        print(\"temperature(C):\",device.temperature)\n    except ValueError:\n        print(\"MCP9600 sensor not detected\")\n\nThis example displays the ambient/room and hot junction temperatures at\n1 second intervals. Turn on the Mu editor's plotter option to view the\ntemperatures in a real-time graph.\n\n.. code-block:: shell\n\n    import board\n    import busio\n    import time\n    from adafruit_bus_device.i2c_device import I2CDevice\n    from adafruit_mcp9600 import MCP9600\n\n    i2c = busio.I2C(board.SCL, board.SDA, frequency=200000)\n\n    try:\n        device = MCP9600(i2c)\n        print(\"version:\", device.version)\n        while True:\n            print((\n                device.ambient_temperature,\n                device.temperature\n            ))\n            time.sleep(1)\n    except ValueError:\n        print(\"MCP9600 sensor not detected\")\n\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/mcp9600/en/latest/>`_.\n\nFor information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n<https://github.com/adafruit/Adafruit_CircuitPython_MCP9600/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "CircuitPython library for the Adafruit MCP9600 breakout",
    "version": "2.0.4",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_MCP9600"
    },
    "split_keywords": [
        "adafruit",
        " blinka",
        " circuitpython",
        " micropython",
        " mcp9600",
        " temp",
        " temperature",
        " i2c",
        " thermocouple"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dc76c9a810bf9cacaaefa49af06016c3afa7ea143b0d0506d8c40743de7d5c04",
                "md5": "d78ce8b262812e73a1f52ae026e29bb6",
                "sha256": "fedca733489fd31a7894428f8ab2c3aa11dd6d95225aa16c10cadece20b60b83"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_mcp9600-2.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d78ce8b262812e73a1f52ae026e29bb6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 8125,
            "upload_time": "2024-10-07T22:13:10",
            "upload_time_iso_8601": "2024-10-07T22:13:10.545686Z",
            "url": "https://files.pythonhosted.org/packages/dc/76/c9a810bf9cacaaefa49af06016c3afa7ea143b0d0506d8c40743de7d5c04/adafruit_circuitpython_mcp9600-2.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "01f9c56cccea80faddd180ff06e1fc8850fb18973199d389e7ea61949a1175d0",
                "md5": "7730c53d79c4dec3047bda0d4578d66f",
                "sha256": "e81343b0507b7f3366017a2bcd744a5dba65e36e244c06669e7611625195d14a"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_mcp9600-2.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "7730c53d79c4dec3047bda0d4578d66f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 28953,
            "upload_time": "2024-10-07T22:13:13",
            "upload_time_iso_8601": "2024-10-07T22:13:13.004144Z",
            "url": "https://files.pythonhosted.org/packages/01/f9/c56cccea80faddd180ff06e1fc8850fb18973199d389e7ea61949a1175d0/adafruit_circuitpython_mcp9600-2.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-07 22:13:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "adafruit",
    "github_project": "Adafruit_CircuitPython_MCP9600",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "adafruit-circuitpython-mcp9600"
}
        
Elapsed time: 3.96183s