Audio cable as an input on arduino
hello guys, i'm looking @ options of problem dealing with. i've got few objects devices market when touched change colour , give out sound. plan add led strip 1 colour unless object touched , when sound goes off want led strips change colour till sound stops.
on of object have aux output speaker. if add 3.5mm splitter there , add audio cable 1 of ends cut off. use red wire input arduino or pcb board + black common ground , use red input value. let when object touched have signal coming in , if = 1 ( sound on) arduino code changes led strip colour, when sound stops ( value goes 0) led strip changes standard colour. driving led strip not problem. problem how state of touch value arduino. question is, idea work. if not can suggest in situation achieve want.
thank much, appreciate every response.
on of object have aux output speaker. if add 3.5mm splitter there , add audio cable 1 of ends cut off. use red wire input arduino or pcb board + black common ground , use red input value. let when object touched have signal coming in , if = 1 ( sound on) arduino code changes led strip colour, when sound stops ( value goes 0) led strip changes standard colour. driving led strip not problem. problem how state of touch value arduino. question is, idea work. if not can suggest in situation achieve want.
thank much, appreciate every response.
audio not digital. should consider working analog inputs, not digital inputs. analogread() function.
Arduino Forum > Using Arduino > General Electronics > Audio cable as an input on arduino
arduino
Comments
Post a Comment