{"id":13781972,"url":"https://github.com/ksksue/PhysicaloidLibrary","last_synced_at":"2025-05-11T15:32:09.234Z","repository":{"id":55657790,"uuid":"9767964","full_name":"ksksue/PhysicaloidLibrary","owner":"ksksue","description":"Android Library for communicating with physical-computing boards (e.g.Arduino, mbed)","archived":false,"fork":false,"pushed_at":"2022-05-30T07:09:54.000Z","size":1152,"stargazers_count":356,"open_issues_count":31,"forks_count":151,"subscribers_count":46,"default_branch":"master","last_synced_at":"2024-11-17T17:42:44.442Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.physicaloid.com/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ksksue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-30T09:29:57.000Z","updated_at":"2024-11-17T07:28:25.000Z","dependencies_parsed_at":"2022-08-15T05:50:12.038Z","dependency_job_id":null,"html_url":"https://github.com/ksksue/PhysicaloidLibrary","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksksue%2FPhysicaloidLibrary","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksksue%2FPhysicaloidLibrary/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksksue%2FPhysicaloidLibrary/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksksue%2FPhysicaloidLibrary/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksksue","download_url":"https://codeload.github.com/ksksue/PhysicaloidLibrary/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253588637,"owners_count":21932291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T18:01:31.569Z","updated_at":"2025-05-11T15:32:07.348Z","avatar_url":"https://github.com/ksksue.png","language":"Java","readme":"Physicaloid Library\n==================\n\nAndroid Library for communicating with physical-computing boards (e.g.Arduino, mbed)\n\n![Android x Arduino](https://lh5.googleusercontent.com/-weC-lA-1rdw/UeaCzIrWR3I/AAAAAAAACno/u-ZapAmzkz8/s640/android_arduino.jpg)\n\n\nUsers does not need to download an Arduino sketch from a web site.\n![Download sketch](https://lh3.googleusercontent.com/-Hh-vISkTL6w/UeaC5moml2I/AAAAAAAACn8/g7Dozio1QrE/s640/physicaloid_download.png)\n\n\nYou (developer) can include Arduino firmwares in your Android app and upload to Google Play.\n![Upload to Google Play](https://lh6.googleusercontent.com/-lzDrLOSohUY/UeaC5p7Z0uI/AAAAAAAACoA/hcqRjLUe6JQ/s640/physicaloid_upload.png)\n\n\nFeatures\n-----------------\n- Android Java library project\n- USB-Serial communication\n- upload a firmware to an Arduino\n- support on Android 3.1 or higher (need USB Host API feature)\n- **does not require ROOT**\n- support USB-Serial protocols : CDC-ACM, FTDI, Silicon Labs CP210x\n- support uploading firmware protocols : STK500, STK500V2\n- open-source(Apache License 2.0)\n\n\nCode example\n-----------------\n\n### Upload a firmware from Android to Arduino ###\n```java\nPhysicaloid mPhysicaloid = new Physicaloid(this);\nmPhysicaloid.upload(Boards.ARDUINO_UNO, \"/sdcard/arduino/Blink.hex\");\n```\n\n\n### Write serial data to Arduino ###\n```java\nPhysicaloid mPhysicaloid = new Physicaloid(this);\nif(mPhysicaloid.open()) {\n    byte[] buf = \"moemoe\".getBytes();\n    mPhysicaloid.write(buf, buf.length);\n    mPhysicaloid.close()\n}\n```\n\n\n### Read serial data from Arduino ###\n```java\nPhysicaloid mPhysicaloid = new Physicaloid(this);\nTextView TextView1 = (TextView) findViewById(R.id.TextView1);// Android TextView\n\nif(mPhysicaloid.open()) {\n    byte[] buf = new byte[256];\n\n    mPhysicaloid.read(buf, buf.length);\n    String str = new String(buf);\n    TextView1.append(str);\n\n    mPhysicaloid.close();\n}\n```\n\nHow to use\n-----------------\n1. File -\u003e import and select a PhysicaloidLibrary directory.\n2. Right click your project -\u003e Properties -\u003e Android -\u003e click Library's \"Add\" button -\u003e select PhysicaloidLibrary\n\n\nSpecial Thanks\n-----------------\nThis code has built in knowledge of avrdude.\nThanks to all avrdude coders.\n\n\nLicense\n-----------------\nPhysicaloid Library is released under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n","funding_links":[],"categories":["Libraries"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksksue%2FPhysicaloidLibrary","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksksue%2FPhysicaloidLibrary","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksksue%2FPhysicaloidLibrary/lists"}