Automatic Washing Machine Bluetooth Based Circuit

Hi All!,

If I make any mistake I apologize in advance. I don't have much electornics knowledge learned whatever I know is learned through this forum and google.

I am working on circuit and want to read frequency of sensor: Kps-59-C/Kps-61-C Digital Water Level Pressure Sensor for Whirlpool Top Load Washing Machine - China Liquid Level Sensor and Electronic Level Sensor price

Downloaded this library in Arduino IDE: FreqCount Library, for Measuring Frequencies in the 1 kHz to 5 MHz Range

Circuit Diagram:

My Code:

#include <FreqCount.h>

void setup() {
  Serial.begin(9600);
  FreqCount.begin(1000);
}

void loop() {
  if (FreqCount.available()) {
    unsigned long count = FreqCount.read();
    Serial.println(count);
  }
}

Output:

0
0
0
0
....

Can anyone guide me what I have done wrong here?

input pin has diode to protect pin from negative polarity.
pin 5 is a digital pin, that mean Voltage over 3V count as HIGH and under 2V as LOW.
Are you sure the measured signal reach over 3V?

your link contain this

It was under 1 volt default will have to verify after connecting sensor

That link is just for share library actual cricuit diagram which I am using is attached in problem statement having green circle highlighted as sensor

@dragonzone , your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project.

Thank you and apologize for the inconvenience

and just to be clear if you check FreqCount library page they have mentioned for Arduino Uno it will read frequency at pin 5

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.