{ "info": { "author": "Kevin Walchko", "author_email": "walchko@user.noreply.github.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX", "Operating System :: POSIX :: Linux", "Operating System :: Unix", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Artificial Intelligence", "Topic :: Scientific/Engineering :: Image Recognition", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. figure:: https://raw.githubusercontent.com/MomsFriendlyRobotCompany/MCP3208/master/docs/pics/chip.png\n :width: 300px\n\nMCP3208\n=============\n\nThis is a python library designed to work with the MCP3208 ADC using SPI on a Raspberry Pi. The MCP3208 is capable of:\n\n- 12-bit resolution\n- \u00b11 LSB max DNL\n- \u00b11 LSB max INL (MCP3204/3208-B)\n- \u00b12 LSB max INL (MCP3204/3208-C)\n- 4 (MCP3204) or 8 (MCP3208) input channels\n- Analog inputs programmable as single-ended or pseudo-differential pairs\n- On-chip sample and hold\n- SPI serial interface (modes 0,0 and 1,1)\n- Single supply operation: 2.7V-5.5V\n- 100ksps max.sampling rate at VDD = 5V\n- 50ksps max. sampling rate at VDD = 2.7V\n- Low power CMOS technology\n - 500 nA typical standby current, 2 \u03bcA max.\n - 400 \u03bcA max. active current at 5V\n- Industrial temp range: -40\u00b0C to +85\u00b0C\n\nFor more information, see the `datasheet `_.\n\nInstall\n--------\n\nThe preferred installation method is::\n\n\tpip install mcp3208\n\nUsage\n---------\n\n.. code-block:: python\n\n\tfrom mcp3208 import MCP3208\n\timport time\n\n\tadc = MCP3208()\n\n\twhile True:\n\t\tfor i in range(8):\n\t\t\tprint('ADC[{}]: {:.2f}'.format(i, adc.read(i)))\n\t\ttime.sleep(0.5)\n\nSPI Interface\n----------------\n\nThis chip uses SPI to interface with the Raspberry Pi. Basically, the chip\nreturns 12 bits contained in 3 bytes. You are able to read the MCP3208\neither LSB or MSB first.\n\n.. figure:: https://raw.githubusercontent.com/MomsFriendlyRobotCompany/MCP3208/master/docs/pics/waveform.png\n\nMIT License\n--------------\n\n**Copyright (c) 2017 Kevin J. Walchko**\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/MomsFriendlyRobotCompany/mcp3208", "keywords": "adc,mcp3208,spi", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "mcp3208", "package_url": "https://pypi.org/project/mcp3208/", "platform": "", "project_url": "https://pypi.org/project/mcp3208/", "project_urls": { "Homepage": "https://github.com/MomsFriendlyRobotCompany/mcp3208" }, "release_url": "https://pypi.org/project/mcp3208/0.0.6/", "requires_dist": [ "Adafruit-GPIO", "build-utils" ], "requires_python": "", "summary": "A python library for MCP3208", "version": "0.0.6" }, "last_serial": 2958462, "releases": { "0.0.1": [], "0.0.2": [ { "comment_text": "", "digests": { "md5": "079c26a782cd46b16abcc42dad5b94e3", "sha256": "50787daf3b352cec903f4d140d27608c74526d65553abb2ef1383eac801984bb" }, "downloads": -1, "filename": "mcp3208-0.0.2-py2-none-any.whl", "has_sig": false, "md5_digest": "079c26a782cd46b16abcc42dad5b94e3", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6167, "upload_time": "2017-06-14T05:24:47", "url": "https://files.pythonhosted.org/packages/cb/0a/8b445103c72ae007ba0185a1507aa7c772596c84490e766df8ab617e02e6/mcp3208-0.0.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0c71b47e492e2e564ce00c6807e1ff1f", "sha256": "9fee4cd98436663a4282b93f9217e6d114047ba8e32263f187f183ec92a71152" }, "downloads": -1, "filename": "mcp3208-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "0c71b47e492e2e564ce00c6807e1ff1f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6168, "upload_time": "2017-06-14T05:24:48", "url": "https://files.pythonhosted.org/packages/01/2e/27dd93466c677c41966cdf04b11d9ff75040799d085c8ff9bfb481e9ab92/mcp3208-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a95907ee178cce9e3b9e1db9f03cab1e", "sha256": "ab0e5571192b7e8d2d4f90cbd6f30bcfacc6ea9c82b90da920b31cc8f76ddf70" }, "downloads": -1, "filename": "mcp3208-0.0.2.tar.gz", "has_sig": false, "md5_digest": "a95907ee178cce9e3b9e1db9f03cab1e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3393, "upload_time": "2017-06-14T05:24:50", "url": "https://files.pythonhosted.org/packages/15/93/3e0f087cfbae614fd3d799c17165fb9974b41fdd9e310ace6ca43f0a1d00/mcp3208-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "e8be4f97f5a3ba3de78cbc0e7f166047", "sha256": "39bcc8d83f88c61ace0825478a7f9366079f5f69577c123c20509ed9be3d5549" }, "downloads": -1, "filename": "mcp3208-0.0.3-py2-none-any.whl", "has_sig": false, "md5_digest": "e8be4f97f5a3ba3de78cbc0e7f166047", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6173, "upload_time": "2017-06-14T05:27:13", "url": "https://files.pythonhosted.org/packages/08/3a/1d2743bb49f29d06b4ed81c7401dae375a846aaf069981be4a8fd03f815b/mcp3208-0.0.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7994f120e2643bee3a72dc9075359306", "sha256": "d165460fd987035d1cb146522058f4cc691265cdb50e986c053fd80dfaa92ba8" }, "downloads": -1, "filename": "mcp3208-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "7994f120e2643bee3a72dc9075359306", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6174, "upload_time": "2017-06-14T05:27:15", "url": "https://files.pythonhosted.org/packages/35/e6/6ef4041482d352cda2c0ae80ea3f5f94cd31adfd4f19a10571e714d39075/mcp3208-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d1083ca5b7e1d1b0fbc29bebd9149120", "sha256": "b335508d6f2c436f4b9afe9390210412be5969e413552d264d4585b3e2c2e1a4" }, "downloads": -1, "filename": "mcp3208-0.0.3.tar.gz", "has_sig": false, "md5_digest": "d1083ca5b7e1d1b0fbc29bebd9149120", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3390, "upload_time": "2017-06-14T05:27:17", "url": "https://files.pythonhosted.org/packages/cf/af/c0f4540bbfb9bbb6e64f594b1744009c78d56ee2073d8d150119ed056a43/mcp3208-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "8dfaaae2bc51ba52d3b194ff032cee4d", "sha256": "82e8e32945723e869bb657f66c5215cbd9ceab66237983a75fe7d8378a6f30e4" }, "downloads": -1, "filename": "mcp3208-0.0.4-py2-none-any.whl", "has_sig": false, "md5_digest": "8dfaaae2bc51ba52d3b194ff032cee4d", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6174, "upload_time": "2017-06-18T20:39:58", "url": "https://files.pythonhosted.org/packages/6e/7f/f5daea494dfa4a7d7219300ef6e34a6b4a1e9be4a545ce16ecb308b10050/mcp3208-0.0.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "38745cf519dd69053c6ab0252d132a76", "sha256": "589aa76af174864d3598ce7bfe867dd235d1cdfaf389a329c4b0a09a3e6268ac" }, "downloads": -1, "filename": "mcp3208-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "38745cf519dd69053c6ab0252d132a76", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6174, "upload_time": "2017-06-18T20:39:59", "url": "https://files.pythonhosted.org/packages/d2/7c/4a241b703d5ca1d2fd942e96311babcf0c3d95578857f75e9a7ec8aeeaa5/mcp3208-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dc1ae8aafd08b515479d1f989cdc9632", "sha256": "124ade4d22245b71360bb12060f205f5e425f36571ddf07baf19bbb0b1eda55b" }, "downloads": -1, "filename": "mcp3208-0.0.4.tar.gz", "has_sig": false, "md5_digest": "dc1ae8aafd08b515479d1f989cdc9632", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3387, "upload_time": "2017-06-18T20:40:01", "url": "https://files.pythonhosted.org/packages/1f/26/dc9e0f43df620548b9cf77ce5e8dd626e71e9bad8bafa78d840b8e09c10b/mcp3208-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "a6224af5ca3df878eb88dcabc5e98a48", "sha256": "e4c1dbe3a0d5cd86053c8296d49ab85899dd19e50fa31c74b4670a0c9bda7435" }, "downloads": -1, "filename": "mcp3208-0.0.5-py2-none-any.whl", "has_sig": false, "md5_digest": "a6224af5ca3df878eb88dcabc5e98a48", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6768, "upload_time": "2017-06-18T20:44:59", "url": "https://files.pythonhosted.org/packages/0e/9a/ddc1f458d748b77a728fd687182695512973c3caf50d09cce6dcafd6bfe5/mcp3208-0.0.5-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "be6cf85d5764b593fdd82fb3fb609704", "sha256": "47dc6fff4ce89a24311ffeba4a8c5eea01a6a13a0fc622107e3961a1f192eb47" }, "downloads": -1, "filename": "mcp3208-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "be6cf85d5764b593fdd82fb3fb609704", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6768, "upload_time": "2017-06-18T20:45:01", "url": "https://files.pythonhosted.org/packages/b4/69/926bb32981d1c48e44b24fa6c7511702e309909d325cd60795c09a18371a/mcp3208-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c730e06f25bd6fe7cc819cc7991a5bf7", "sha256": "6c683402251390041162e6a565f8b6c37bb750bd7da42181dad75b8bc66c5c96" }, "downloads": -1, "filename": "mcp3208-0.0.5.tar.gz", "has_sig": false, "md5_digest": "c730e06f25bd6fe7cc819cc7991a5bf7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3755, "upload_time": "2017-06-18T20:45:03", "url": "https://files.pythonhosted.org/packages/85/80/e48b82537772dd616cab247ff3f5f23400801de099098168ae894245d713/mcp3208-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "5640a99d44f7e626b41f807d61849b1b", "sha256": "bc5a116390669eb358d6004bf2cf72bf24d0c166c79caae813143fe940fe7c6b" }, "downloads": -1, "filename": "mcp3208-0.0.6-py2-none-any.whl", "has_sig": false, "md5_digest": "5640a99d44f7e626b41f807d61849b1b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6778, "upload_time": "2017-06-19T02:37:33", "url": "https://files.pythonhosted.org/packages/aa/5d/9e30d543d2b1ef521fd0bd45cb0009a5cfe0985a7306a37c32de68948452/mcp3208-0.0.6-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "598bf377656bdeb13930a85713320abd", "sha256": "207068b4ba7779bd44b572b1ee69b0657dee49e1dd782e36dbcb8ed1b58ef1aa" }, "downloads": -1, "filename": "mcp3208-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "598bf377656bdeb13930a85713320abd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6778, "upload_time": "2017-06-19T02:37:34", "url": "https://files.pythonhosted.org/packages/63/40/e86c28e68edb062e3c7c5e5e8047f1864c9694b91b31bb4163693c33956c/mcp3208-0.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8968d12beb4fe37a672413b7860207b1", "sha256": "25249c16aefd460b1ffcbe281df3fddef21866970d1c5247b72c74b7dcb2f2be" }, "downloads": -1, "filename": "mcp3208-0.0.6.tar.gz", "has_sig": false, "md5_digest": "8968d12beb4fe37a672413b7860207b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3752, "upload_time": "2017-06-19T02:37:35", "url": "https://files.pythonhosted.org/packages/58/fb/ad4836951de44aea7c8865e84bdf68b255d7bf14f87ffaea3c5dd9360f18/mcp3208-0.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5640a99d44f7e626b41f807d61849b1b", "sha256": "bc5a116390669eb358d6004bf2cf72bf24d0c166c79caae813143fe940fe7c6b" }, "downloads": -1, "filename": "mcp3208-0.0.6-py2-none-any.whl", "has_sig": false, "md5_digest": "5640a99d44f7e626b41f807d61849b1b", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 6778, "upload_time": "2017-06-19T02:37:33", "url": "https://files.pythonhosted.org/packages/aa/5d/9e30d543d2b1ef521fd0bd45cb0009a5cfe0985a7306a37c32de68948452/mcp3208-0.0.6-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "598bf377656bdeb13930a85713320abd", "sha256": "207068b4ba7779bd44b572b1ee69b0657dee49e1dd782e36dbcb8ed1b58ef1aa" }, "downloads": -1, "filename": "mcp3208-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "598bf377656bdeb13930a85713320abd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6778, "upload_time": "2017-06-19T02:37:34", "url": "https://files.pythonhosted.org/packages/63/40/e86c28e68edb062e3c7c5e5e8047f1864c9694b91b31bb4163693c33956c/mcp3208-0.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8968d12beb4fe37a672413b7860207b1", "sha256": "25249c16aefd460b1ffcbe281df3fddef21866970d1c5247b72c74b7dcb2f2be" }, "downloads": -1, "filename": "mcp3208-0.0.6.tar.gz", "has_sig": false, "md5_digest": "8968d12beb4fe37a672413b7860207b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3752, "upload_time": "2017-06-19T02:37:35", "url": "https://files.pythonhosted.org/packages/58/fb/ad4836951de44aea7c8865e84bdf68b255d7bf14f87ffaea3c5dd9360f18/mcp3208-0.0.6.tar.gz" } ] }