{"id":27415569,"url":"https://github.com/davidbradway/halloweentree","last_synced_at":"2026-05-07T11:31:54.150Z","repository":{"id":77761875,"uuid":"154760532","full_name":"davidbradway/halloweentree","owner":"davidbradway","description":"Particle Arduino firmware for the Particle Holiday Tree Shield","archived":false,"fork":false,"pushed_at":"2018-10-26T02:22:16.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T09:49:54.107Z","etag":null,"topics":["arduino","c","cheerlights","electron","halloween","jack-olantern","midi","particle-iot","photon","pir-sensor"],"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/davidbradway.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":"2018-10-26T01:37:02.000Z","updated_at":"2018-10-26T02:22:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"f52e92b9-60cf-4581-9a7d-f7e8f40d97f0","html_url":"https://github.com/davidbradway/halloweentree","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davidbradway/halloweentree","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbradway%2Fhalloweentree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbradway%2Fhalloweentree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbradway%2Fhalloweentree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbradway%2Fhalloweentree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidbradway","download_url":"https://codeload.github.com/davidbradway/halloweentree/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidbradway%2Fhalloweentree/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32735094,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","c","cheerlights","electron","halloween","jack-olantern","midi","particle-iot","photon","pir-sensor"],"created_at":"2025-04-14T09:27:43.556Z","updated_at":"2026-05-07T11:31:54.144Z","avatar_url":"https://github.com/davidbradway.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HalloweenTree :jack_o_lantern: :candy: :chocolate_bar: :ghost:\n\n[Get it in build.partile.io!](https://go.particle.io/shared_apps/5bd2679508d258a1490010ec)\n\nWhat can you do with a [Particle Holiday Tree shield](https://store.particle.io/products/holiday-tree-pcb) the rest of the year? This Halloween, I'm making mine into the brains of a motion-sensing, music-playing, light-animation-displaying, IoT Jack-o-Lantern!\n\nChanges made\n\n- I took Particle's [firmware for the sheild](https://github.com/particle-iot/xmastree/tree/master/src/firmware) and swapped out the music and light animations for Halloween-appropriate options. \n- I also added the option to use [Cheerlights](https://cheerlights.com/) via the Thingspeak library when you aren't using the animations\n- Finally, I added a Passive Infrared (PIR) motion sensor to activate the lights and sounds as trick-or-treaters approach \n\n## LED Animations\n\n- Pulse Orange: all LEDs smoothly fade in and out\n- Orange Twinkle: random LEDs light up across the tree\n\n## Piezo Buzzer tunes\n\n- Addams Family theme\n- Ghostbusters\n- Bewitched\n\n### Notes on creating the piezo buzzer tunes\n\n- I found some Halloween [midi files](https://westnet.com/Halloween/midi/)\n- I found a [tool for converting a midi track to Arduino tone buzzer code](https://www.extramaster.net/tools/midiToArduino)\n- To find the right track, I followed instructions on the site above and downloaded [MidiYodi](http://www.canato.se/midiyodi/my_download.html)\n- Often a track with a simple melody, not percussion or chords, seems to work\n- I chose the Midi Speed Factor to be 1X \n- The Percentage of Tone to Be Played was left at 90%\n- I chose for Device, the Arduino (C, Tone) option\n- To check the track, I used an Arduino simulator available at [Autodesk TInkercad Circuits](https://www.tinkercad.com/learn/#/learn/circuits)\n- I selected the Arduino Uno and connected a piezo buzzer to pin 11 and ground\n- I copied the source code and ran the simulation \n- I then had to get the tones and delays into the array format used in `songs.h`. I did this with a lot of ugly search-and-replace, but it could probably be done with some slick regex (wish I knew that better...)\n\n## Contributions\n\nWritten by Particle and modified by David Bradway.\n\nI welcome more animations and songs via Pull Request!\n\nHappy Halloween! :jack_o_lantern: :candy: :chocolate_bar: :ghost:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidbradway%2Fhalloweentree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidbradway%2Fhalloweentree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidbradway%2Fhalloweentree/lists"}