{"id":27556763,"url":"https://github.com/jeffersonlab/daceri-local","last_synced_at":"2026-04-24T21:32:07.126Z","repository":{"id":284632689,"uuid":"955556480","full_name":"JeffersonLab/DACERI-local","owner":"JeffersonLab","description":"Use the Logitech F310 Game Controller connected to the local RaspPi 4B and control the JLab DACERI robot with the REV Control Hub.","archived":false,"fork":false,"pushed_at":"2025-04-02T21:22:32.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-02T22:27:12.282Z","etag":null,"topics":["gamepad","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"Python","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/JeffersonLab.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-26T20:32:39.000Z","updated_at":"2025-04-02T21:22:36.000Z","dependencies_parsed_at":"2025-03-26T22:34:13.432Z","dependency_job_id":null,"html_url":"https://github.com/JeffersonLab/DACERI-local","commit_stats":null,"previous_names":["jeffersonlab/daceri-local"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeffersonLab%2FDACERI-local","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeffersonLab%2FDACERI-local/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeffersonLab%2FDACERI-local/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JeffersonLab%2FDACERI-local/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JeffersonLab","download_url":"https://codeload.github.com/JeffersonLab/DACERI-local/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249787075,"owners_count":21325569,"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":["gamepad","raspberry-pi"],"created_at":"2025-04-19T19:56:02.292Z","updated_at":"2026-04-24T21:32:07.121Z","avatar_url":"https://github.com/JeffersonLab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DACERI-local\n\nThis repository has been merged into the official DACERI repository and is now considered obsolete. Here is the link to the official DACERI project repository: https://github.com/JeffersonLab/daceri \n\nUse the Logitech F310 Game Controller connected to the local RaspPi 4B and control the JLab DACERI robot with the [REV Control Hub](https://www.revrobotics.com/rev-31-1595/).\n\n## External Modules\n```bash\ngit submodule update --init  # Clone the submodules\n```\n\n- `hiddapi`: The underlying system-level support for python package `hid`. After `dnf/apt install hid`, if you still see the python import error such as cannot find certain *.so/*.dll files, you will need to compile and install the `hidapi` library by your self. Follow the docstrings in [detect_joystick.py](./scripts/detect_joystick.py) to see the process.\n\n- `REVHubInterface`: The Python module for the REV Control Hub. By running `python -m REVHubInterface`, you should be able to see a GUI that can take the inputs from the GUI and control the Robot motors.\n\n## Scripts\n- [motor_test.py](./scripts/motor_test.py): Control one of the wheels (motors) with `REVHubInterface` without launching the GUI. If succeeded, the wheel will run for 3 seconds.\n- [detect_joystick.py](./scripts/detect_joystick.py): Use the Python `hid` library to detect the Logitech F310 Game Controller, translate its inputs to a string and print the string to the screen.\n\n### Notes\n#### **Fix the `/dev/hidraw*` permission**\n\nIf you can print the gampad's vendor id and product id to the screen but it raises `HIDException` \"Unable to open device\", that is related to the permission for the device.\n\nCheck it with `ls -l /dev/hidraw*` (`hidraw1` in our case). If it’s owned by `root` or another group, the user can’t access it. Fix it by:\n\n1. Create a udev rule: `sudo nano /etc/udev/rules.d/99-logitech-f310.rules`\n2. In this rule file, add:\n    ```\n    SUBSYSTEM==\"hidraw\", ATTRS{idVendor}==\"046d\", ATTRS{idProduct}==\"c216\", MODE=\"0666\"\n    ```\n   Replace the `idVendor` and `idProduct` with the HEX outputs of the Python file.\n3. Reload the rule\n    ```bash\n    sudo udevadm control --reload\n    sudo udevadm trigger\n    ```\n\nRerun the Python script and the `HIDException` error should be gone.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffersonlab%2Fdaceri-local","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeffersonlab%2Fdaceri-local","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffersonlab%2Fdaceri-local/lists"}