Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PulseSensor-Arduino-library
Arduino library to control pulse sensor like hall effect flowmeters, water and electric counters using photodiode or pulse output.
Conect yor 0-5V signal to an external interrupt of the Arduino UNO or MEGA 2560
Connect yor 0-5V signal to an external interrupt of the Arduino UNO or MEGA 2560

PIN D2 -> INT 0 UNO/MEGA

Expand All @@ -17,18 +17,18 @@ PIN D18 TX1 -> INT 5 MEGA

First, declare an instance of the PulseSensor class.

Inside Setup(), initilize your instance. Use conversion factors from your technical datasheet.
Inside Setup(), initialize your instance. Use conversion factors from your technical datasheet.

Inside loop(), refreshData() or ask if a new value is available().
use diferent read functions to acces pulse rate and acumulted pulses, also converted to your defined units.
use diferent read functions to access pulse rate and acumulated pulses, also converted to your defined units.



I test it with a water flow sensor YF-402, arduino UNO and Arduino MEGA 2560 and works (precision not tested)

TODO: use pin change interrupt to allow every pin.

TODO: integrate with pool controler to detect water flows through pH and ORP sensors
TODO: integrate with pool controller to detect water flows through pH and ORP sensors

TODO: integrate with photodiode to detect water leakage (reading water counter)

Expand Down