{"id":18193108,"url":"https://github.com/hexadecimal233/esp32c3-singing-stepper","last_synced_at":"2026-05-10T03:53:18.181Z","repository":{"id":260747937,"uuid":"865897951","full_name":"hexadecimal233/esp32c3-singing-stepper","owner":"hexadecimal233","description":"电机报废计划（电机唱歌）","archived":false,"fork":false,"pushed_at":"2024-11-03T00:01:18.000Z","size":67,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-13T18:52:56.422Z","etag":null,"topics":["arduino","esp32","esp32-c3","esp32c3","midi"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/hexadecimal233.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":"2024-10-01T10:12:33.000Z","updated_at":"2024-11-03T00:01:22.000Z","dependencies_parsed_at":"2024-11-02T10:18:23.299Z","dependency_job_id":"5cb3015a-0bfe-45b4-ba5b-9854baa6b529","html_url":"https://github.com/hexadecimal233/esp32c3-singing-stepper","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"e91a64ca971fe81dab0a93f08e2971c29263c23e"},"previous_names":["hexadecimal233/esp32c3-singing-stepper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexadecimal233%2Fesp32c3-singing-stepper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexadecimal233%2Fesp32c3-singing-stepper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexadecimal233%2Fesp32c3-singing-stepper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexadecimal233%2Fesp32c3-singing-stepper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexadecimal233","download_url":"https://codeload.github.com/hexadecimal233/esp32c3-singing-stepper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247692173,"owners_count":20980387,"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":["arduino","esp32","esp32-c3","esp32c3","midi"],"created_at":"2024-11-03T07:04:31.721Z","updated_at":"2026-05-10T03:53:18.143Z","avatar_url":"https://github.com/hexadecimal233.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esp32c3-singng-stepper\n\n使用 ESP32-C3 开发板与 42 步进电机驱动的 MIDI 音乐播放器！\n\n## 如何创建支持本程序的 MIDI 文件\n\n下方教程使用`FL Studio`作为示例，其他支持 MIDI 导出和编辑的软件需要按需调整\n\n1. 创建 FL 工程，然后添加 **和你电机数目一样的** MIDI Out，每个通道对应一个电机\n   \u003e （若需预览结果可 MIDI Out 连到其他的合成器上）\n2. 将自己的 MIDI 导入进来然后对每个音轨进行适配（最好选用 Lead (\u0026 Lead Vocal)，Bass，Arp，Chrod 等，效果最好）\n3. 导出中选择 MIDI 文件，正常导出就得到可以由本程序播放的 MIDI 文件\n\nP.S. 如果要控制电机反转，将 MIDI Out 的端口号设为`电机数 + 1`即可，触发的音符将使电机反转\n\n## 食用方法\n\n1. 运行程序，输入 MIDI 路径和开发板串口设备名（Windows 是 COM+一个数字，Linux 是/dev/ttyUSB+一个数字）\n2. 开玩！\n\n\u003e 注意！C5 以下的音符可能会出现类似嘶哑的声音\n\n## 开发者文档\n\n数据包格式：\n`\u003cpacket_id\u003e \u003cdata\u003e`\n\n- packet_id = 0: 播放音符\n  data = `\u003cindex: 电机编号，从0开始\u003e \u003cfreq: 音符频率\u003e \u003creverse: 是否改变电机旋转方向\u003e`\n\n- packet_id = 1: 停止播放音符\n  data = `\u003cindex: 电机编号，从0开始\u003e`\n\n- packet_id = 2: 获取电机数目\n  data 无需任何参数，返回电机数目\n\n\u003e 注意！串口接收数据有较大延迟，获取电机数目可能需要等 1 秒左右，有时候还会超时（）\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexadecimal233%2Fesp32c3-singing-stepper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexadecimal233%2Fesp32c3-singing-stepper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexadecimal233%2Fesp32c3-singing-stepper/lists"}