Arduino UNO-Based Smart Sensor System with Ultrasonic and DHT11 Integration
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller interfacing with an ultrasonic sensor, a servo motor, a DHT11 temperature and humidity sensor, and a 16x2 LCD display. The circuit is designed to measure distance using the ultrasonic sensor, control the servo motor, read temperature and humidity data, and display information on the LCD screen.
Component List
Ultrasonic Sensor
- Description: Measures distance by using ultrasonic waves.
- Pins: +VCC, Trigger, Echo, GND
Arduino UNO
- Description: Microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
Servo
- Description: A motor that can be positioned at various angles.
- Pins: GND, VCC, PWM
DHT11
- Description: Temperature and humidity sensor.
- Pins: DATA, GND, VCC
16x2 LCD
- Description: A 16x2 character LCD display.
- Pins: VSS, VDD, V0, RS, RW, E, D1, D0, D2, D3, D4, D6, D5, D7, A, K
Wiring Details
Ultrasonic Sensor
- +VCC connected to 5V on Arduino UNO
- Trigger connected to D10 on Arduino UNO
- Echo connected to D11 on Arduino UNO
- GND connected to GND on Arduino UNO
Servo
- VCC connected to 5V on Arduino UNO
- PWM connected to D12 on Arduino UNO
- GND connected to GND on Arduino UNO
DHT11
- VCC connected to 5V on Arduino UNO
- DATA connected to D2 on Arduino UNO
- GND connected to GND on Arduino UNO
16x2 LCD
- VSS connected to GND on Arduino UNO
- VDD connected to 5V on Arduino UNO
- V0 connected to GND on Arduino UNO
- RS connected to D7 on Arduino UNO
- RW connected to GND on Arduino UNO
- E connected to D8 on Arduino UNO
- D4 connected to D9 on Arduino UNO
- D5 connected to D10 on Arduino UNO
- D6 connected to D11 on Arduino UNO
- D7 connected to D12 on Arduino UNO
Documented Code
Arduino UNO (Instance 1)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Arduino UNO (Instance 2)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used for the microcontrollers.