{"id":22207629,"url":"https://github.com/anatolykopyl/cat-ball","last_synced_at":"2025-03-25T04:28:16.516Z","repository":{"id":128234667,"uuid":"419876807","full_name":"anatolykopyl/cat-ball","owner":"anatolykopyl","description":"A DIY remote controlled smart toy for your cat 😻","archived":false,"fork":false,"pushed_at":"2021-10-21T21:07:15.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-30T04:41:40.653Z","etag":null,"topics":["diy-electronics","nodemcu","toy"],"latest_commit_sha":null,"homepage":"","language":"C++","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/anatolykopyl.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":"2021-10-21T21:06:29.000Z","updated_at":"2021-10-21T21:09:37.000Z","dependencies_parsed_at":"2023-07-11T13:02:03.118Z","dependency_job_id":null,"html_url":"https://github.com/anatolykopyl/cat-ball","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/anatolykopyl%2Fcat-ball","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anatolykopyl%2Fcat-ball/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anatolykopyl%2Fcat-ball/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anatolykopyl%2Fcat-ball/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anatolykopyl","download_url":"https://codeload.github.com/anatolykopyl/cat-ball/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245399659,"owners_count":20609010,"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":["diy-electronics","nodemcu","toy"],"created_at":"2024-12-02T19:13:53.145Z","updated_at":"2025-03-25T04:28:16.511Z","avatar_url":"https://github.com/anatolykopyl.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cat Ball\n\nThe code I wrote to make a cat toy that will come to life when touched or \ncan be controlled remotely via Wi-Fi.\n\nI found that my cat loses interest in a toy as soon as he sees it not \nreacting to him catching it.\n\nThe idea is that a relatively strong motor with some mass attached to it's \naxis off center is glued to a spherical housing along with all the needed \nelectronics. The violent vibration made by turning that motor on when \nsomething touches the ball makes this an interesting toy for a cat.\n\n\n### Components:\n- NodeMCU\n- SW-18010P vibration sensor\n- DC motor\n- MX1508 DC motor driver (depends on what motor you'll use)\n- battery\n\n## Assembly\nI glued the biggest coin (a nut would be fine too) I could find off axis to \nthe motor and hooked the motor to the nodeMCU through the motor driver (pin 1).\nAnd the vibration sensor to pin 3. The same battery powers both the motor and \nthe nodeMCU.\n\nFlash the .ino and now you can connect to the toy via Wi-Fi.\n\n```\nSSID: Cat Ball\nKEY: churchill\n```\nNavigate to `192.168.4.1` when connected.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanatolykopyl%2Fcat-ball","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanatolykopyl%2Fcat-ball","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanatolykopyl%2Fcat-ball/lists"}