{ "info": { "author": "Kevin Walchko", "author_email": "walchko@users.noreply.github.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Application Frameworks", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. image:: https://raw.githubusercontent.com/MomsFriendlyRobotCompany/tfmini/master/tfmini.jpg\n\nTFmini\n========\n\nUsage\n------\n\nReading the sensor returns the range in meters.\n\n.. code-block:: python\n\n from __future__ import division, print_function\n import time\n from tfmini import TFmini\n\n # create the sensor and give it a port and (optional) operating mode\n tf = TFmini('/dev/tty.usbserial-A506BOT5', mode=TFmini.STD_MODE)\n\n try:\n print('='*25)\n while True:\n d = tf.read()\n if d:\n print('Distance: {:5}'.format(d))\n else:\n print('No valid response')\n time.sleep(0.1)\n\n except KeyboardInterrupt:\n tf.close()\n print('bye!!')\n\n\n- ``TFmini(port, mode=5, retry=25)``: the constructor takes several inputs\n - ``port``: serial port the sensor is connected too\n - ``mode``: either standard (*default*) or decimal mode\n - ``retry``: how many times the driver should search the serial port for the packet header. This only applies in standard mode.\n- ``read()``: in any mode, returns the distance in meters\n- ``TFmini.strength``: in standard mode, each packet contains the returned IR strength level. In decimal mode, this doesn't exist and is always set to -1.\n\nStandard (Packet) Mode\n-----------------------------\n\nIn this mode, a data packet is sent from the sensor:\n\n::\n\n packet = [0x59, 0x59, distL, distH, strL, strH, reserved, integration time, checksum]\n\nWhere the first two bytes ``0x59, 0x59`` are the header and each packet has a\nchecksum to ensure the packet is valid data.\n\nDecimal (String) Mode\n----------------------------\n\nIn this mode, the sensor can sometimes returns an incorrect value because the\nASCII string was read wrong across the serial port. There is no error checking\nin this mode.\n\n.. code-block:: bash\n\n Distance: 2.96\n Distance: 2.96\n Distance: 96.0 <<< Error\n Distance: 2.95\n Distance: 2.95\n Distance: 2.96\n\nReferences\n-------------\n\n- `Sparkfun product page `_\n- `Manufacturer produce page `_\n\nMIT License\n============\n\n**Copyright (c) 2018 Kevin 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": "http://github.com/walchko/tfmini", "keywords": "robot,pi,serial,sensor,range,ranging,robotics,tf", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "tfmini", "package_url": "https://pypi.org/project/tfmini/", "platform": "", "project_url": "https://pypi.org/project/tfmini/", "project_urls": { "Homepage": "http://github.com/walchko/tfmini" }, "release_url": "https://pypi.org/project/tfmini/0.1.3/", "requires_dist": [ "build-utils", "pyserial" ], "requires_python": "", "summary": "A driver for the TFmini LiDAR sold by Sparkfun", "version": "0.1.3" }, "last_serial": 3573075, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "357f555eaf98a408361cfc96edfb793f", "sha256": "1eca5e3d0aa74df5e830d05b7cacdf4633f1b065841209799ca1b355ee2d0b3c" }, "downloads": -1, "filename": "tfmini-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "357f555eaf98a408361cfc96edfb793f", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7584, "upload_time": "2018-02-11T23:10:21", "url": "https://files.pythonhosted.org/packages/0b/98/f04bd78d473ed110b75a8d70efd224157715dcbe92ff42f4ae00ba097d84/tfmini-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "aa09efd11d509efaca90ed905fe4e717", "sha256": "3ecc8986017b611d19cbd523bc5b04532844fd6e54b45b1b685e22710975a6b2" }, "downloads": -1, "filename": "tfmini-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "aa09efd11d509efaca90ed905fe4e717", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7585, "upload_time": "2018-02-11T23:10:23", "url": "https://files.pythonhosted.org/packages/a8/f8/b9d9ccf213f5463a210e9db935a8286c99b37bc34c4956716cded7c9a09b/tfmini-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c6e152ec3dbca2061d8129033bc24a19", "sha256": "2a2a13f0821f1fe1e27585039e53cf72fb0391b66b2dfdb509db8b68bd8bf5f0" }, "downloads": -1, "filename": "tfmini-0.1.0.tar.gz", "has_sig": false, "md5_digest": "c6e152ec3dbca2061d8129033bc24a19", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4550, "upload_time": "2018-02-11T23:10:25", "url": "https://files.pythonhosted.org/packages/46/bd/80bdfeb624804113248ed36acea1f75aac5e717a07fff751411490a06dd9/tfmini-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "880658aaeae594ec4c24727170d2726d", "sha256": "fb0c02d7222d446b6b2fea96e38cbe4739c9274d83ddf4127ec1c5028d512ab8" }, "downloads": -1, "filename": "tfmini-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "880658aaeae594ec4c24727170d2726d", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7543, "upload_time": "2018-02-11T23:14:23", "url": "https://files.pythonhosted.org/packages/8c/c7/44c6efbac9a869bc4b77802d414e0f361c6098eaa02269fd146efeafd818/tfmini-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d3f2fddb9d60de2c53d8349eb75fa18f", "sha256": "f7acc3171a4f22a0fbbe2ed04aee56c07d91cd338c24a515d85dcc27d13574ef" }, "downloads": -1, "filename": "tfmini-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d3f2fddb9d60de2c53d8349eb75fa18f", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7542, "upload_time": "2018-02-11T23:14:25", "url": "https://files.pythonhosted.org/packages/ec/c8/0069b77f0574faa2d097b57662be62f02ae5de3956a8a159521b58ad47b3/tfmini-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c9fd77aa0d87f81656c4d8f6bd0b2421", "sha256": "790481a97df6af47c22511eeac9adc921b90a9490b5c3a2d3d41f55eb055d287" }, "downloads": -1, "filename": "tfmini-0.1.1.tar.gz", "has_sig": false, "md5_digest": "c9fd77aa0d87f81656c4d8f6bd0b2421", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4534, "upload_time": "2018-02-11T23:14:26", "url": "https://files.pythonhosted.org/packages/a4/f7/9a9e58da4aea8f950a8034eba590cbd88d502c3efcf5bec4672279ee2e21/tfmini-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "316645d19adc32c1c23f86f4f1e82c8d", "sha256": "9c056f842ec9fd45240254e655e27fef2e3794dc2810198479c70658149edcd6" }, "downloads": -1, "filename": "tfmini-0.1.2-py2-none-any.whl", "has_sig": false, "md5_digest": "316645d19adc32c1c23f86f4f1e82c8d", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7550, "upload_time": "2018-02-11T23:21:46", "url": "https://files.pythonhosted.org/packages/ba/30/7b4a972fa6e4c2601c3963b6b76f8e81bc5a1da75fe8528f3746169da556/tfmini-0.1.2-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ca25bb33c907fbf59bf16fd982191cd5", "sha256": "99a9953c318a883dff48ceb79c87a52701d044e30e0f794903d43344eef8e27d" }, "downloads": -1, "filename": "tfmini-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "ca25bb33c907fbf59bf16fd982191cd5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7551, "upload_time": "2018-02-11T23:21:47", "url": "https://files.pythonhosted.org/packages/f2/b2/becd0d1c6fcd7ae3cde27d9ff230e97b3335488fc55beec1c4be621c33ee/tfmini-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e72583ce22a661f28a0564cd8df1fae1", "sha256": "b668189b267d31bf66d63a7eaf6b7e3939b4c55078b7ac3c572f390f7bd635aa" }, "downloads": -1, "filename": "tfmini-0.1.2.tar.gz", "has_sig": false, "md5_digest": "e72583ce22a661f28a0564cd8df1fae1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4570, "upload_time": "2018-02-11T23:21:48", "url": "https://files.pythonhosted.org/packages/ca/96/be9de143bf041916eadff09d4c4b55d1a1143eeec6bd60b075a946d7df44/tfmini-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "731e0eff51a455d12f0a6abe97d1c8d0", "sha256": "2d0436954d9653e68dc0dbd5334af543de9cc80ba0e91484e3037576d7b9cd95" }, "downloads": -1, "filename": "tfmini-0.1.3-py2-none-any.whl", "has_sig": false, "md5_digest": "731e0eff51a455d12f0a6abe97d1c8d0", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7633, "upload_time": "2018-02-11T23:23:54", "url": "https://files.pythonhosted.org/packages/2e/e0/06e1fd98835fcc0f46ef33ba8a6735bf519df9c9139d974d9119bead3fca/tfmini-0.1.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "422e8cb57f15c451666ba434b3a4c070", "sha256": "4b75bc88fc5c06d40fbcde6b017bbd0b1175f35b14bc8b3b39e8f6a1faf0a397" }, "downloads": -1, "filename": "tfmini-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "422e8cb57f15c451666ba434b3a4c070", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7633, "upload_time": "2018-02-11T23:23:57", "url": "https://files.pythonhosted.org/packages/55/97/9086226f8732cfe5e4565f0dedb9f0ab602f2cc30614022cbcea0d296654/tfmini-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8eff2e6404f35a90a084f33c562e25ec", "sha256": "4e955a7f75926a38f7c94646713e4c23889dc03641e8510df1b65034381905a4" }, "downloads": -1, "filename": "tfmini-0.1.3.tar.gz", "has_sig": false, "md5_digest": "8eff2e6404f35a90a084f33c562e25ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4607, "upload_time": "2018-02-11T23:23:58", "url": "https://files.pythonhosted.org/packages/22/0f/a88084b882c6a7239228e205cdb11be719f673b7050e7ce623b18695b174/tfmini-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "731e0eff51a455d12f0a6abe97d1c8d0", "sha256": "2d0436954d9653e68dc0dbd5334af543de9cc80ba0e91484e3037576d7b9cd95" }, "downloads": -1, "filename": "tfmini-0.1.3-py2-none-any.whl", "has_sig": false, "md5_digest": "731e0eff51a455d12f0a6abe97d1c8d0", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 7633, "upload_time": "2018-02-11T23:23:54", "url": "https://files.pythonhosted.org/packages/2e/e0/06e1fd98835fcc0f46ef33ba8a6735bf519df9c9139d974d9119bead3fca/tfmini-0.1.3-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "422e8cb57f15c451666ba434b3a4c070", "sha256": "4b75bc88fc5c06d40fbcde6b017bbd0b1175f35b14bc8b3b39e8f6a1faf0a397" }, "downloads": -1, "filename": "tfmini-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "422e8cb57f15c451666ba434b3a4c070", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7633, "upload_time": "2018-02-11T23:23:57", "url": "https://files.pythonhosted.org/packages/55/97/9086226f8732cfe5e4565f0dedb9f0ab602f2cc30614022cbcea0d296654/tfmini-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8eff2e6404f35a90a084f33c562e25ec", "sha256": "4e955a7f75926a38f7c94646713e4c23889dc03641e8510df1b65034381905a4" }, "downloads": -1, "filename": "tfmini-0.1.3.tar.gz", "has_sig": false, "md5_digest": "8eff2e6404f35a90a084f33c562e25ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4607, "upload_time": "2018-02-11T23:23:58", "url": "https://files.pythonhosted.org/packages/22/0f/a88084b882c6a7239228e205cdb11be719f673b7050e7ce623b18695b174/tfmini-0.1.3.tar.gz" } ] }