nrkbeta/autocam — reverse-engineered prompt

Reverse engineered prompt

Build me a simple Arduino sketch for an automatic studio camera switcher. I want it to watch the audio level from several microphones on the analog inputs, starting at A0, and decide which person’s camera should be live based on who is talking.

The behavior should be straightforward. If one person is clearly speaking, switch to that person’s camera. If nobody is speaking, or more than one person is speaking at the same time, switch to a wide camera that shows the whole room. If someone talks for a long time, briefly cut back to the previous camera once in a while for a natural listening shot, then return.

Please make it work in a clean, readable way for Arduino boards like Uno Ethernet, Mega, or Mega ADK, and keep the key settings easy to change, like number of mic inputs, audio threshold, timing, and anything related to the switching logic. Add clear comments so I can tune it later. If you need details, look up current Arduino docs online.

Want more depth? Deep Reverse