Arduino Motion-Triggered Speaker Code
Budget: $750 – $1,500 USD
I have a small outdoor setup where a motion sensor should fire a brief contact that feeds a speaker. All I need from you is a clean, well-commented Arduino sketch that monitors the PIR motion detector installed outside, debounces or filters stray signals, and then closes a contact long enough to activate the speaker line. After a configurable delay the output should reset so the system is ready for the next detection.
Please write the code so pin numbers, delay length, and trigger duration can be adjusted at the top of the sketch. No fancy libraries are required—simple Arduino IDE–compatible code works best. A quick wiring diagram or pin-mapping note is welcome so I can hook the PIR sensor and the relay or transistor that drives the speaker feed correctly.
Deliverables
• Arduino .ino file with clear inline comments
• Brief text or image showing pin connections and any component values
I’ll load and test the sketch on my board as soon as you deliver; if the contact reliably switches when motion is sensed outdoors and resets cleanly afterward, the job is done.
Please write the code so pin numbers, delay length, and trigger duration can be adjusted at the top of the sketch. No fancy libraries are required—simple Arduino IDE–compatible code works best. A quick wiring diagram or pin-mapping note is welcome so I can hook the PIR sensor and the relay or transistor that drives the speaker feed correctly.
Deliverables
• Arduino .ino file with clear inline comments
• Brief text or image showing pin connections and any component values
I’ll load and test the sketch on my board as soon as you deliver; if the contact reliably switches when motion is sensed outdoors and resets cleanly afterward, the job is done.