{"id":25236740,"url":"https://github.com/amnabubshait/the-music-box","last_synced_at":"2026-05-17T19:35:25.285Z","repository":{"id":276979697,"uuid":"930925567","full_name":"amnabubshait/The-Music-Box","owner":"amnabubshait","description":"The Music Box is a remote-controlled device that plays random musical notes using a Pico-Sensor kit and Python. The project integrates hardware components, including a buzzer, LED, and RGB lights, to create an engaging and interactive musical experience.","archived":false,"fork":false,"pushed_at":"2025-02-27T21:06:50.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-26T01:02:38.252Z","etag":null,"topics":["micropython","music-box","raspberry-pi-pico-w"],"latest_commit_sha":null,"homepage":"https://wokwi.com/projects/424069328869043201","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/amnabubshait.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,"zenodo":null}},"created_at":"2025-02-11T12:46:24.000Z","updated_at":"2025-02-27T21:06:53.000Z","dependencies_parsed_at":"2025-06-07T11:31:32.639Z","dependency_job_id":null,"html_url":"https://github.com/amnabubshait/The-Music-Box","commit_stats":null,"previous_names":["amnabubshait/the-music-box"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amnabubshait/The-Music-Box","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnabubshait%2FThe-Music-Box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnabubshait%2FThe-Music-Box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnabubshait%2FThe-Music-Box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnabubshait%2FThe-Music-Box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amnabubshait","download_url":"https://codeload.github.com/amnabubshait/The-Music-Box/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amnabubshait%2FThe-Music-Box/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261978905,"owners_count":23239417,"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":["micropython","music-box","raspberry-pi-pico-w"],"created_at":"2025-02-11T15:31:46.784Z","updated_at":"2025-10-24T23:35:08.180Z","avatar_url":"https://github.com/amnabubshait.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# The Music Box - Remote-Controlled Musical Device\n\n## Overview\n\nThe Music Box is a remote-controlled device that plays random musical notes using a Pico-Sensor kit and Python. The project integrates hardware components, including a buzzer, LED, and RGB lights, to create an engaging and interactive musical experience.\n\n## Features\n\n- Remote-controlled musical note generation\n- LED and RGB light synchronization with music\n- Play/Pause functionality for user control\n- Randomized note playback for variety\n- Wireless interaction using a Pico microcontroller\n\n## Hardware \u0026 Materials\n\n\u003cimg width=\"263\" alt=\"image\" src=\"https://github.com/user-attachments/assets/a0e5dc09-5048-4a3e-9b30-141995379002\" /\u003e\n\n- Raspberry Pi Pico\n- IR Remote Control\n- Buzzer\n- RGB LED Strip\n- Standard LED\n- Resistors and Wiring\n- Power Supply\n\n## System Design\n\u003cimg width=\"271\" alt=\"image\" src=\"https://github.com/user-attachments/assets/cf8b28ca-ecbb-4eb4-8e16-c9fd932702e5\" /\u003e\n\n## Circuit\n![image](https://github.com/user-attachments/assets/e096fa0f-847d-4966-81d9-91614ab6e020)\n\n## Prototype Sketch\n\n\u003cimg width=\"288\" alt=\"image\" src=\"https://github.com/user-attachments/assets/1c3725f3-0b61-4495-9ab0-bd91dd731b59\" /\u003e\n\n## Software Dependencies\n\nEnsure you have the following Python libraries installed:\n\n```bash\npip install machine utime neopixel\n```\n\n## Implementation Steps\n\n1. Turn on the device using the remote's Play/Pause button.\n2. The red LED indicates the device's status: ON (active) or OFF (paused).\n3. Each button press plays a random note via the buzzer and triggers an RGB light show.\n4. The red LED turns on and off in sync with playback.\n\n## Code Snippet (Example)\n\n```python\nfrom machine import Pin, PWM\nfrom utime import sleep\nimport random\n\nbuzzer = PWM(Pin(12))\ntones = {\"C4\": 262, \"D4\": 294, \"E4\": 330, \"F4\": 349, \"G4\": 392, \"A4\": 440, \"B4\": 494}\n\ndef play_note():\n    note = random.choice(list(tones.values()))\n    buzzer.freq(note)\n    buzzer.duty_u16(30000)\n    sleep(0.5)\n    buzzer.duty_u16(0)\n\nwhile True:\n    play_note()\n    sleep(1)\n```\n\n## Testing\n\n- **Signal Transmission:** Verified that button presses successfully transmit signals to the Pico microcontroller.\n- **Play/Pause Functionality:** Ensured accurate toggling of the device.\n- **LED \u0026 RGB Response:** Checked synchronization with remote button presses.\n\n## Future Improvements\n\n- Add a feature to allow users to assign specific musical notes to remote buttons.\n- Implement a setting mode for user-defined sound effects.\n\n## Conclusion\n\nThe Music Box successfully combines hardware and software to create an interactive musical experience. The integration of the Pico-Sensor kit with Python demonstrates the seamless interaction between embedded systems and software programming.\n\n## Simulation:\nDownloaded from https://wokwi.com/projects/424069328869043201\n\nSimulate this project on https://wokwi.com\n\n\n**_Note_:** The data values of the IR Remote on Wowki differ from the ones from the WaveShare Raspberry Pi Pico Entry-Level Sensor Kit.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famnabubshait%2Fthe-music-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famnabubshait%2Fthe-music-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famnabubshait%2Fthe-music-box/lists"}