electret condenser microphone
Bob Morane
Posts: 2
Hi,
I want to use an electret microphone with my basic stamp. I read many things in this forum, but I don't find anything to help me (or maybe I don't understand). I want to use it for reading a sound and determine if it's loud enought to start my application. In my code (under), I want to know if I can replace my photocell with the microphone·by also·using rctime.
' {$STAMP BS2}
' {$PBASIC 2.5}
OUTPUT 0 'Moteur
OUTPUT 4 'Moteur
INPUT 1· 'Photocell
OUTPUT 2 'Lumiere DELL Rouge
OUTPUT 3 'Lumiere DELL Verte
Photocell VAR Word
'
'
Principal:
HIGH 1
PAUSE 10
RCTIME 1,1,Photocell
DEBUG ? Photocell
PAUSE 1000
IF Photocell > 300 THEN
· DEBUG ? Photocell
· PAUSE 1000
· GOTO Moteur
·ELSE
· HIGH 2
· LOW 3
· GOTO Principal
ENDIF
I send a picture of my connection so if I make mistake tell me, you will see that I am newbie .
Thanks.
I want to use an electret microphone with my basic stamp. I read many things in this forum, but I don't find anything to help me (or maybe I don't understand). I want to use it for reading a sound and determine if it's loud enought to start my application. In my code (under), I want to know if I can replace my photocell with the microphone·by also·using rctime.
' {$STAMP BS2}
' {$PBASIC 2.5}
OUTPUT 0 'Moteur
OUTPUT 4 'Moteur
INPUT 1· 'Photocell
OUTPUT 2 'Lumiere DELL Rouge
OUTPUT 3 'Lumiere DELL Verte
Photocell VAR Word
'
'
Principal:
HIGH 1
PAUSE 10
RCTIME 1,1,Photocell
DEBUG ? Photocell
PAUSE 1000
IF Photocell > 300 THEN
· DEBUG ? Photocell
· PAUSE 1000
· GOTO Moteur
·ELSE
· HIGH 2
· LOW 3
· GOTO Principal
ENDIF
I send a picture of my connection so if I make mistake tell me, you will see that I am newbie .
Thanks.
Comments