{ "info": { "author": "Tomohiro Takata, Hiroshi Harada", "author_email": "takata@innovotion.co.jp, harada@keigan.co.jp", "bugtrack_url": null, "classifiers": [], "description": "Python Library for Keigan Motor (v2)\n==============================================\n\nIntroduction\n---------------\nYou can control your Keigan Motor through USB Serial and BLE.\n\nhttps://www.keigan-motor.com/\n\n**This library has been updated from v1 to v2.**\n\n**The method names are not comatible, but we added many important features.**\n\n**We strongrly recommend this v2 from now on.**\n\n**Just in case you can get v1 from: https://github.com/keigan-motor/pykeigan_motor/tree/v1**\n\nAt present we support Linux only for BLE, because the BLE functions of this library depends on bluepy(Python interface to Bluetooth LE on Linux by Mr. Ian Harvey):\n\nhttps://github.com/IanHarvey/bluepy\n\nThe USB serial functions should work on Windows and Mac too. Please use setup-usb.py to install.\n\nRequirements\n------------------\n- python >= 3.5 (recommended) or 2.6\n- pyserial >= 3.4\n- bluepy >= 1.1.4\n\nInstallation\n-------------------------------\nFor Linux::\n\n sudo apt install git\n git clone https://github.com/keigan-motor/pykeigan_motor\n cd pykeigan_motor\n python setup.py install (or python setup-usb.py install )\n\nOr::\n\n pip install pykeigan-motor\n\nUSB Serial\n-----------------\nTo connect your Keigan Motor through USB serial, you need to know the mounted path.\nYou can get the unique path of your Keigan Motor by::\n\n ls /dev/serial/by-id/\n\nYour Keigan Motor's ID should be like 'usb-FTDI_FT230X_Basic_UART_DM00XXXX-if00-port0'.\nTo use your Keigan Motor through USB serial, you need to add R/W permission to it.::\n\n sudo chmod 666 /dev/serial/by-id/usb-FTDI_FT230X_Basic_UART_DM00XXXX-if00-port0\n\n- Simplest Sample Code\n Rotate counter-clockwise with 1.0 rad/sec.\n\n.. code-block:: python\n\n from pykeigan import usbcontroller\n dev=usbcontroller.USBContoller('/dev/serial/by-id/usb-FTDI_FT230X_Basic_UART_DM00xxxx-if00-port0')\n dev.enable_action()\n dev.set_speed(1.0)\n dev.run_forward()\n\n- examples/usb-simple-connection.py\n Basic connection to the Motor.\n- examples/usb-rotate-the-motor.py\n Rotate the Motor continuously and stop.\n- examples/usb-position-control.py\n Rotate the Motor to the relative and absolute position.\n- examples/usb-get-motor-Informations.py\n Acquire the speed, position, torque and IMU values of the Motor.\n- examples/usb-actuator.py\n Let the Motor go and return for the specific distance.\n- examples/usb-torque-control.py\n Demonstration for a torque control. Increase the torque as you rotate the Motor by hand.\n- examples/usb-teaching-control.py\n Let the Motor record and playback your motion.\n\nBLE (for Linux Only)\n----------------------\nYou need to know the MAC address of you Keigan Motor for BLE connection.\n\nFor example, you can use the following simple script. Please run with sudo.\n\nKM1Scan.py\n\n.. code-block:: python\n\n from bluepy.btle import Scanner\n scanner=Scanner()\n devices=scanner.scan(5.0)\n for dev in devices:\n for (adtype, desc, value) in dev.getScanData():\n if desc==\"Complete Local Name\" and \"KM-1\" in value:\n print(value,\":\",dev.addr)\n\n- Simplest Sample Code\n Rotate counter-clockwise with 1.0 rad/sec.\n\n.. code-block:: python\n\n from pykeigan import blecontroller\n dev=blecontroller.BLEController(\"xx:xx:xx:xx:xx\")\n dev.enable_action()\n dev.set_speed(1.0)\n dev.run_forward()\n\n- examples/ble-simple-connection.py\n Basic connection to the Motor.\n- examples/ble-scanner-connection.py\n Connect to the Motor by BLE scanning.\n- examples/ble-rotate-the-motor.py\n Rotate the Motor continuously and stop.\n- examples/ble-get-motor-Informations.py\n Acquire the speed, position, torque and IMU values of the Motor.\n\nRelease Notes\n------------------\nRelease 2.1.0\n\n- Added python 2 support\n\nRelease 2.0.1\n\n- Added APIs for reading and writing teaching data\n- Added read_motion and write_motion_position\n\nRelease 2.0.0\n\n- Method Names Renewal\n- Added Debug Mode\n- Added Data Acquisition on USB serial\n- Added Windows and Mac Support for USB serial\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/keigan-motor/pykeigan_motor", "keywords": "", "license": "MIT-LICENSE", "maintainer": "", "maintainer_email": "", "name": "pykeigan-motor", "package_url": "https://pypi.org/project/pykeigan-motor/", "platform": "", "project_url": "https://pypi.org/project/pykeigan-motor/", "project_urls": { "Homepage": "https://github.com/keigan-motor/pykeigan_motor" }, "release_url": "https://pypi.org/project/pykeigan-motor/2.1.4/", "requires_dist": [ "pyserial", "bluepy" ], "requires_python": "", "summary": "Python Library for Keigan Motors (v2)", "version": "2.1.4" }, "last_serial": 5620883, "releases": { "2.1.0": [ { "comment_text": "", "digests": { "md5": "189c81c75d8f353cb85b22e49f954eb0", "sha256": "30425254dd9b605488ba5843c198990c4b7e1c52e39f2d61d9743408c917c32a" }, "downloads": -1, "filename": "pykeigan_motor-2.1.0-py2.7.egg", "has_sig": false, "md5_digest": "189c81c75d8f353cb85b22e49f954eb0", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 32285, "upload_time": "2019-06-11T09:15:09", "url": "https://files.pythonhosted.org/packages/4e/d2/2eb37e38ecb7680cd8ece94ffb545c3fc1b55ce79159219662424f59232d/pykeigan_motor-2.1.0-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "2bdaf7639db0efddaf204a7bffded35a", "sha256": "1b037259dc000a34c8abd005cc6fb0ae36503fcc8d1fb74cff65b165f10d8678" }, "downloads": -1, "filename": "pykeigan_motor-2.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2bdaf7639db0efddaf204a7bffded35a", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14836, "upload_time": "2019-06-01T00:28:16", "url": "https://files.pythonhosted.org/packages/3e/ac/000df79f749fb6a0774e4082b5e86d641766e448415a3c6d3e04b2e7aa28/pykeigan_motor-2.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "338080dbc56ab5ab2be32032a07ce1db", "sha256": "d0ae00dbd182e79b06b358df03567eb7fd882791242d3cbd52e8f7ef48da3b61" }, "downloads": -1, "filename": "pykeigan_motor-2.1.0.tar.gz", "has_sig": false, "md5_digest": "338080dbc56ab5ab2be32032a07ce1db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14671, "upload_time": "2019-06-01T00:28:19", "url": "https://files.pythonhosted.org/packages/8b/20/1b88f60f6146ab751eec3f480f6f11ff426fcdc44c6777b3f37199d91a90/pykeigan_motor-2.1.0.tar.gz" } ], "2.1.1": [ { "comment_text": "", "digests": { "md5": "a8e8e7f069740c8336797d77f8fe32cf", "sha256": "afd11f621ebb442ca662e55f0d6c499a3b11a5ef36a2a5398e047a2fe00e906f" }, "downloads": -1, "filename": "pykeigan_motor-2.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a8e8e7f069740c8336797d77f8fe32cf", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14845, "upload_time": "2019-06-11T09:15:07", "url": "https://files.pythonhosted.org/packages/7c/58/a96b081bb49e56f802de3f298ff59320390b0a88b70f89f35550b6b714c3/pykeigan_motor-2.1.1-py2.py3-none-any.whl" } ], "2.1.2": [ { "comment_text": "", "digests": { "md5": "240feddb3b5e5f28bf55f877d1d6bba5", "sha256": "ee6d71353a8f5044768db7c0889ee3b873081eaf7b7c547348f7be323794ddf8" }, "downloads": -1, "filename": "pykeigan_motor-2.1.2-py2.7.egg", "has_sig": false, "md5_digest": "240feddb3b5e5f28bf55f877d1d6bba5", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 32325, "upload_time": "2019-06-25T11:44:08", "url": "https://files.pythonhosted.org/packages/2a/b2/00b1c6a2fb4ad2c061d0140e145ba6fef9b59e6ec98bafa88b43236240b3/pykeigan_motor-2.1.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "45f07141a65fad338e872912c8f48494", "sha256": "73f5834d0d23b204b25fb1406481d9275c7308aabce142b3ddc8880f6e9aa4f0" }, "downloads": -1, "filename": "pykeigan_motor-2.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "45f07141a65fad338e872912c8f48494", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14846, "upload_time": "2019-06-11T09:19:41", "url": "https://files.pythonhosted.org/packages/ec/d7/c9a763bb74cabe1245ce691743cb9dd8148c53f561ef8d201d9edb3f8474/pykeigan_motor-2.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "48d3c95146836dcb6018443523df11f5", "sha256": "9c1681a7eb02be78c22243a965f6d4fb9ba6ba4e82067d5e731bea8a8ff63043" }, "downloads": -1, "filename": "pykeigan_motor-2.1.2-py3.6.egg", "has_sig": false, "md5_digest": "48d3c95146836dcb6018443523df11f5", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 32934, "upload_time": "2019-06-25T11:44:10", "url": "https://files.pythonhosted.org/packages/d5/12/7e1581998911ddc073f1574d8641fe3622b5a215a405f8bfcde9b1d88a24/pykeigan_motor-2.1.2-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "9dc95d448865001bc084275577e17d89", "sha256": "ed06edf7eff2258c2867be88e6352615daef5dbfee2b12ab777e2a1b1b9f8bf4" }, "downloads": -1, "filename": "pykeigan_motor-2.1.2.tar.gz", "has_sig": false, "md5_digest": "9dc95d448865001bc084275577e17d89", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14715, "upload_time": "2019-06-11T09:19:43", "url": "https://files.pythonhosted.org/packages/b8/dc/042d4a720219fb0d34cb2ded798271e89ce5ac63bbe069cf81f5b87e1d68/pykeigan_motor-2.1.2.tar.gz" } ], "2.1.3": [ { "comment_text": "", "digests": { "md5": "216b0fab57454d1cdb505a0329ab274e", "sha256": "7eeb013692099ae0bb8e0ec7a58fee49b62ca24f66eca102a34c250bd6a625ca" }, "downloads": -1, "filename": "pykeigan_motor-2.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "216b0fab57454d1cdb505a0329ab274e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14931, "upload_time": "2019-06-25T11:44:06", "url": "https://files.pythonhosted.org/packages/ed/fb/0ab21667c0cda4813eba93c5d09797ea8c7e765bad8dee5bcbd1b5d6aaf4/pykeigan_motor-2.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7aa82cef4332ceb97e37f0822811a104", "sha256": "778ccc4bd9511408d6fb44bb463b9e2d74e4874e15150c9b136dd3b55dd17009" }, "downloads": -1, "filename": "pykeigan_motor-2.1.3-py3.6.egg", "has_sig": false, "md5_digest": "7aa82cef4332ceb97e37f0822811a104", "packagetype": "bdist_egg", "python_version": "3.6", "requires_python": null, "size": 32942, "upload_time": "2019-08-01T21:17:20", "url": "https://files.pythonhosted.org/packages/50/da/25b02e7c864280cd6109ea0f601621ad6fb31d9b0fe96e5c1556292075b2/pykeigan_motor-2.1.3-py3.6.egg" }, { "comment_text": "", "digests": { "md5": "6ca86d1e6a3eb36a1d3c0db3a3f8f47d", "sha256": "1fdaf615e54cfba308134972b72ef183c597ec527974974ad023e1b2de7a9eeb" }, "downloads": -1, "filename": "pykeigan_motor-2.1.3.tar.gz", "has_sig": false, "md5_digest": "6ca86d1e6a3eb36a1d3c0db3a3f8f47d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14816, "upload_time": "2019-06-25T11:44:12", "url": "https://files.pythonhosted.org/packages/b8/70/ba1f958815605ff713bdcf226ec6912460aee4b19930feb36d035a49057f/pykeigan_motor-2.1.3.tar.gz" } ], "2.1.4": [ { "comment_text": "", "digests": { "md5": "07be7cab5c5058956f6265ea2d754080", "sha256": "119149cd5b3b6e46ca2f1c13bfb5de3f7118399c78698e7198ca7d2799ead36f" }, "downloads": -1, "filename": "pykeigan_motor-2.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "07be7cab5c5058956f6265ea2d754080", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14937, "upload_time": "2019-08-01T21:17:14", "url": "https://files.pythonhosted.org/packages/ca/9a/b916eb058047d9241a3530a5dc6200ecd7d863444aff71e46110c264ac9c/pykeigan_motor-2.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6fbeb5e9e00f98597480710910ae2cf9", "sha256": "f9224174509556d3a0aac57544dbfd98e971b80a0b561fe2b0062956e8ab3e23" }, "downloads": -1, "filename": "pykeigan_motor-2.1.4.tar.gz", "has_sig": false, "md5_digest": "6fbeb5e9e00f98597480710910ae2cf9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14827, "upload_time": "2019-08-01T21:17:23", "url": "https://files.pythonhosted.org/packages/21/b2/11cc1104119a249dd1831f2dcdf8f986a2df302dca73f3ee533a59e3e248/pykeigan_motor-2.1.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "07be7cab5c5058956f6265ea2d754080", "sha256": "119149cd5b3b6e46ca2f1c13bfb5de3f7118399c78698e7198ca7d2799ead36f" }, "downloads": -1, "filename": "pykeigan_motor-2.1.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "07be7cab5c5058956f6265ea2d754080", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 14937, "upload_time": "2019-08-01T21:17:14", "url": "https://files.pythonhosted.org/packages/ca/9a/b916eb058047d9241a3530a5dc6200ecd7d863444aff71e46110c264ac9c/pykeigan_motor-2.1.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6fbeb5e9e00f98597480710910ae2cf9", "sha256": "f9224174509556d3a0aac57544dbfd98e971b80a0b561fe2b0062956e8ab3e23" }, "downloads": -1, "filename": "pykeigan_motor-2.1.4.tar.gz", "has_sig": false, "md5_digest": "6fbeb5e9e00f98597480710910ae2cf9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14827, "upload_time": "2019-08-01T21:17:23", "url": "https://files.pythonhosted.org/packages/21/b2/11cc1104119a249dd1831f2dcdf8f986a2df302dca73f3ee533a59e3e248/pykeigan_motor-2.1.4.tar.gz" } ] }