{"id":14977874,"url":"https://github.com/peter-t-ruehr/piscant","last_synced_at":"2025-06-25T10:31:57.531Z","repository":{"id":45857695,"uuid":"482031240","full_name":"Peter-T-Ruehr/PiScAnt","owner":"Peter-T-Ruehr","description":"Python code to run scAnt 3D scanning setup on a Raspberry Pi","archived":false,"fork":false,"pushed_at":"2024-11-17T21:24:44.000Z","size":225,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T12:44:00.900Z","etag":null,"topics":["3d-scanning","entomology","focus-stacking","macro","museum","pololu","raspberry-pi","raspberry-pi-3","raspberry-pi-camera","stepper-motor-control","zoology"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Peter-T-Ruehr.png","metadata":{"files":{"readme":"README_with_scAnt_setup.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-04-15T17:15:14.000Z","updated_at":"2024-11-17T21:24:48.000Z","dependencies_parsed_at":"2024-04-16T22:31:15.579Z","dependency_job_id":"04e4dd44-6235-4315-b8b4-523ff47438da","html_url":"https://github.com/Peter-T-Ruehr/PiScAnt","commit_stats":{"total_commits":76,"total_committers":1,"mean_commits":76.0,"dds":0.0,"last_synced_commit":"877ed801bc439c5f47d86c0bd838ca6b9104e3a1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter-T-Ruehr%2FPiScAnt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter-T-Ruehr%2FPiScAnt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter-T-Ruehr%2FPiScAnt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Peter-T-Ruehr%2FPiScAnt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Peter-T-Ruehr","download_url":"https://codeload.github.com/Peter-T-Ruehr/PiScAnt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238608235,"owners_count":19500337,"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":["3d-scanning","entomology","focus-stacking","macro","museum","pololu","raspberry-pi","raspberry-pi-3","raspberry-pi-camera","stepper-motor-control","zoology"],"created_at":"2024-09-24T13:56:28.565Z","updated_at":"2025-02-13T06:33:12.016Z","avatar_url":"https://github.com/Peter-T-Ruehr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PiscAnt (Pi scAnt)\nPython code to run scAnt setup on Raspberry Pi Model 3+. This was developed for my own use, so code documentation here will appear over time. \n\nFeel free to use this code and its [Discussions](https://github.com/Peter-T-Ruehr/PiscAnt/discussions) and [Issues](https://github.com/Peter-T-Ruehr/PiscAnt/issues) pages.\n\nCAD files to house the RPi HQ cam on the [original](https://www.thingiverse.com/thing:4694713) or [modified](https://www.thingiverse.com/thing:5479056) scAnt are available [here](https://www.thingiverse.com/thing:5502528).\n\nA model of a praying mantis head generated from the photos taken with this code and setup is available [here](https://skfb.ly/ourV8).\n\nThe scAnt author`s original code and documentation are available [here](https://github.com/evo-biomech/scAnt), CAD files [here](https://www.thingiverse.com/thing:4694713), and the related publication [here](https://peerj.com/articles/11155/).\n\n# Installation\n## Raspbian\nInstall Raspbian GNU/Linux 11 (bullseye)\n\n## Enable legacy camera\n`sudo raspi-config`\n  * Interface Options\n  * Legacy Camera: Enable\n  * reboot\n  \n## add imx477 support\n`sudo nano /boot/config.txt`\n\nadd\n\n`# Enable pi HQ camera`\n\n`dtoverlay=imx477`\n\nout-comment\n`# dtoverlay=vc4-fkms-v3d`\n\nSee below for some test commands to see if camera works.\n\n## download and install pololu tic 500 drivers\nsource: https://www.pololu.com/docs/0J71/all#1.2\n\n`cd ~/Downloads`\n\n`tar -xvf pololu-tic-*.tar.xz`\n\n`sudo pololu-tic-*/install.sh`\n\n(re-)plug tics\n\n## check if tics are detectable\n`ticcmd --list`\n\nwhen 3 tics are connected, it should look like this (with your own tic driver numbers):\n\n`0036xxx3,         Tic T500 Stepper Motor Controller`\n\n`0033xxx0,         Tic T500 Stepper Motor Controller`\n\n`0037xxx3,         Tic T500 Stepper Motor Controller`\n\n## start Tic Control Center\n`ticgui`\n\n## install picamerax python package\n`pip install picamerax`\n\n## some random camera control commands to test camera and find good settings\nWith help from\nhttps://www.arducam.com/docs/cameras-for-raspberry-pi/native-raspberry-pi-cameras/native-camera-commands-raspistillraspivid/\n\n`raspistill -t 1 -o image.jpg -p100,100,300,200`\n\n`raspistill -t 1 -o image.jpg -n`\n\n`raspistill -t 0 -k -o image.jpg -p 0,0,800,600`\n\n`raspistill -t 0 -k -o image.jpg -p 30,30,800,600 --ISO 200 --shutter 3000 -sh 0 -co 0 -br 50 -sa 0`\n\n`raspistill -t 0 -k -o image.jpg -p 30,30,800,600 --ISO 200 --shutter 3000 -sh 0 -co 0 -br 50 -sa 0 -awb off -awbg 2.9,1.5`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter-t-ruehr%2Fpiscant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeter-t-ruehr%2Fpiscant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter-t-ruehr%2Fpiscant/lists"}