hello,
am getting following out puts on serial monitor:
a) when no i/p applied : 50
b) when 555 connected to i/p: values changing continuously between hundreds,thousands, ten thousands for the same applied input
constint pulsePin =8;// Input signal connected to Pin 8 of Arduinoint pulseHigh;// Integer variable to capture High time of the incoming pulseint pulseLow;// Integer variable to capture Low time of the incoming pulsefloat pulseTotal;// Float variable to capture Total time of the incoming pulseint frequency;// Calculated Frequencyvoid setup(){
Serial.begin(9600);
pinMode(pulsePin,INPUT);}void loop(){
pulseHigh = pulseIn(pulsePin,HIGH);
pulseLow = pulseIn(pulsePin,LOW);
pulseTotal = pulseHigh + pulseLow;// Time period of the pulse in microseconds
frequency=1000000/pulseTotal;// Frequency in Hertz (Hz)
Serial.println(frequency);}
* What does this mean: "when no i/p applied"? --> don´t leave inputs floating.
I assume this means there is no inptu signal connected, but is there any pullup or pulldown?
* What does this mean? "when 555 connected to i/p"? Is this 555Hz?
Or is this any NE555 signal? Which signal, what levels, what frequency, what duty cycle?
When I say "don´t leave inputs floating" this means you should use either internal or external pullup or pulldown.
--> Do either of the four possible configurations, then tell us what happens.
This is no useful test .. if you don´t know the test condition.
--> Calculate, estimate, measure the vlaues or use any other signal source with known signal parameters.
i am using a mid sized cap and 2K resistor,if that helps