Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO Based Water Level Monitoring and Ultrasonic Distance Measurement with HC-06 Bluetooth Interface

View and Edit Project In Cirkit DesignerImage of Arduino UNO Based Water Level Monitoring and Ultrasonic Distance Measurement with HC-06 Bluetooth Interface

Circuit Documentation

Summary

The circuit consists of an Arduino UNO microcontroller interfaced with several peripheral devices: an HC-06 Bluetooth module, a two-pin red LED, a water level sensor, and an ultrasonic sensor. The Arduino UNO controls the LED based on serial input and reads data from the water level sensor and the ultrasonic sensor. The HC-06 Bluetooth module allows for wireless communication, potentially with a smartphone or computer.

Component List

Arduino UNO

LED: Two Pin (red)

HC-06

Water Level Sensor

Ultrasonic Sensor

Wiring Details

Arduino UNO

LED: Two Pin (red)

HC-06

Water Level Sensor

Ultrasonic Sensor

Documented Code

char Incoming_value = 'B';
int pin13 = 13;
int LEVEL = 0;

void setup() {
  Serial.begin(9600);
  pinMode(pin13, OUTPUT);
  pinMode(A0, INPUT);
  LEVEL = analogRead(A0);
}

void loop() {
  LEVEL = analogRead(A0);
  if (Serial.available() > 0) {
    Incoming_value = Serial.read();
    Serial.print(Incoming_value);
    Serial.print("\n");
    if (Incoming_value == 'A')
      digitalWrite(pin13, HIGH);
    else if (Incoming_value == 'B')
      digitalWrite(pin13, LOW);
  }
  Serial.println(LEVEL);
  delay(500);
}

Code Description