scorrpeio
Full Member level 5
I am trying to interface the clap switch with PIC mcu.
The o/p of clap switch is 2.3-2.5V in normal state. When clap occurs the voltage changes to 6-7V.
I have to interface this switch to PIC12F IC which has max voltage level 5.5v.
I have given 5V to PIC Vcc and I have connected the clap switch to PIC using zener diode of 5.1V so that PIC is protected from over voltage.
But, in normal condition, the clap switch gives 2.3v to PIC, which PIC sometimes considers as Logic High.
Can anyone tell me what should I do to make the 2.3v at clap switch o/p as '0' V?
The o/p of clap switch is 2.3-2.5V in normal state. When clap occurs the voltage changes to 6-7V.
I have to interface this switch to PIC12F IC which has max voltage level 5.5v.
I have given 5V to PIC Vcc and I have connected the clap switch to PIC using zener diode of 5.1V so that PIC is protected from over voltage.
But, in normal condition, the clap switch gives 2.3v to PIC, which PIC sometimes considers as Logic High.
Can anyone tell me what should I do to make the 2.3v at clap switch o/p as '0' V?