I am looking for a solution to detect when a plastic tank (a waste tank on a boat) is half full and nearly full
I am new to RobotShop and nearly new to Arduino
Does the Gravity Non-contact Liquid Level Sensor RB-Dfr-694 come with everything that I need including the sensor, chip and then the gravity interface board (if that the board that looks like an Arduino)?
Can I buy something extra that will beep when the level is reached?
Do I need to program the board?
Thanks
Hello there!
This is just the sensor and it’s adapter. You will need a micro controller like an Arduino and program it.
Here is a sample arduino code that shows the liquid level:
-
This example is to get liquid level
-
@author jackli([email protected])
-
@version V1.0
-
@date 2016-1-30
-
GNU Lesser General Public License.
-
See http://www.gnu.org/licenses/ for details.
-
All above must be included in any redistribution
-
****************************************************/
int Liquid_level=0;
void setup() {
Serial.begin(9600);
pinMode(5,INPUT);
}
void loop() {
Liquid_level=digitalRead(5);
Serial.print("Liquid_level= ");
Serial.println(Liquid_level,DEC);
delay(500);
}
If you want your setup to produce sounds, you can buy a buzzer like this one: https://www.robotshop.com/ca/en/electronic-brick-buzzer.html
Have fun!