Arduino-Controlled Bluetooth Water Sensor with Servo and LED Indicators
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
The circuit in question appears to be a microcontroller-based system designed to interface with a Bluetooth module, a water sensor, a servo motor (MG90S), and multiple LEDs. The microcontroller of choice is an Arduino UNO, which controls the LEDs and receives data from the water sensor, as well as communicates with the HC-05 Bluetooth module. The LEDs are each connected to the Arduino through a 200 Ohm resistor, and the servo motor is controlled by one of the Arduino's digital pins. The water sensor's signal pin is also connected to a digital pin on the Arduino for water detection. The Bluetooth module interfaces with the Arduino via serial communication for wireless data transfer.
Component List
LEDs: Two Pin (red)
- Description: Red LEDs used for indication purposes.
- Pins: cathode, anode
Resistors
- Description: Resistors used to limit current through the LEDs.
- Value: 200 Ohms
HC-05 Bluetooth Module
- Description: Bluetooth module for wireless communication.
- Pins: Key, VCC, GND, TXD, RXD, State
Arduino UNO
- Description: Microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13
MG90S
- Description: Micro servo motor for small-scale, precise movements.
- Pins: SIG, VCC, GND
Water Sensor
- Description: Sensor for detecting the presence of water.
- Pins: Signal, VCC, GND
Wiring Details
LED: Two Pin (red)
- Cathode connected to common ground.
- Anode connected to a 200 Ohm resistor.
Resistor
- One pin connected to an LED anode.
- Other pin connected to a digital pin on the Arduino UNO (D10, D11, D12, or D13).
HC-05 Bluetooth Module
- VCC connected to the 5V supply from the Arduino UNO.
- GND connected to common ground.
- TXD connected to the D1 (TX) pin on the Arduino UNO.
- RXD connected to the D0 (RX) pin on the Arduino UNO.
Arduino UNO
- GND pin connected to common ground.
- 5V pin providing power to the HC-05 Bluetooth Module, Water Sensor, and MG90S.
- Digital pins D0, D1, D2, D9, D10, D11, D12, and D13 used for controlling and interfacing with other components.
MG90S
- SIG connected to the D9 pin on the Arduino UNO.
- VCC connected to the 5V supply from the Arduino UNO.
- GND connected to common ground.
Water Sensor
- Signal connected to the D2 pin on the Arduino UNO.
- VCC connected to the 5V supply from the Arduino UNO.
- GND connected to common ground.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Additional Notes (documentation.txt)
No additional documentation provided for the code.