// Howdy ๐.
//
// This is where you can create powerful part automations like resistors that tell you when too much current is flowing through them
// You can also create your own flexible parts, like generics (https://docs.flux.ai/Introduction/generic-parts)
//
// If you are new to writing code in Flux make sure to check out our get started docs: https://docs.flux.ai/reference/introduction
//
// We also have a Flux Slack Community in case you need help: https://join.slack.com/t/fluxcommunity/shared_invite/zt-p48n941f-wzQ06kGmuFJ2HXnGYT1JkA
//
// To infinity and beyond ๐
circuit = {
"name": "Key Tag Detector",
"description": "Detects two hand claps within 3 seconds and activates a tone.",
"components": [
{ "type": "Microphone", "name": "Mic", "function": "Detect sound signals" },
{ "type": "Amplifier", "model": "LM358", "name": "Amp", "function": "Boost microphone signal" },
{ "type": "Timer", "model": "555", "name": "ClapTimer", "mode": "Monostable", "function": "Time interval detection between claps" },
{ "type": "Timer", "model": "555", "name": "ToneGenerator", "mode": "Astable", "function": "Generate tone" },
{ "type": "Timer", "model": "555", "name": "ResetTimer", "mode": "Monostable", "function": "Reset tone after specific duration" },
{ "type": "Speaker", "name": "Speaker", "function": "Produce sound tone" },
{ "type": "Resistors", "name": "Resistors", "function": "Set time delays and signal shaping" },
{ "type": "Capacitors", "name": "Capacitors", "function": "Signal filtering and stabilization" },
{ "type": "PowerSource", "voltage": 5, "function": "Provide power to the circuit" }
]
}