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

Arduino UNO-Based Humidity-Controlled Camera Defogging System with DHT11 and OV7670

View and Edit Project In Cirkit DesignerImage of Arduino UNO-Based Humidity-Controlled Camera Defogging System with DHT11 and OV7670

Circuit Documentation

Summary

This circuit is designed to control a defogging system for a camera lens. It uses a DHT11 humidity sensor to monitor humidity levels near the lens. When the humidity surpasses a threshold, a buzzer sounds and a relay is activated to turn on a fan. The camera module (OV7670) captures images which can be viewed using the serial port reader. The circuit is controlled by an Arduino UNO microcontroller.

Component List

  1. 120 Fan 12V

    • Pins: 12V+, GND
    • Description: A 12V fan used for defogging the camera lens.
    • Properties: None
  2. Resistor (4700 Ohms)

    • Pins: pin1, pin2
    • Description: A resistor with a resistance of 4700 Ohms.
    • Properties: Resistance: 4700 Ohms
  3. Resistor (200 Ohms)

    • Pins: pin1, pin2
    • Description: A resistor with a resistance of 200 Ohms.
    • Properties: Resistance: 200 Ohms
  4. Arduino UNO

    • 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
    • Description: A microcontroller board based on the ATmega328P.
    • Properties: None
  5. KY-015 DHT11

    • Pins: 5V, S, GND
    • Description: A humidity and temperature sensor.
    • Properties: None
  6. OV7670

    • Pins: RET, PWDN, D1, D0, D3, D2, D4, D5, D6, PLK, XLK, D7, VS, HS, SCL, SDA, 3.3V, DGND
    • Description: A camera module for capturing images.
    • Properties: None
  7. Resistor (10000 Ohms)

    • Pins: pin1, pin2
    • Description: A resistor with a resistance of 10000 Ohms.
    • Properties: Resistance: 10000 Ohms
  8. 12V Battery

    • Pins: -, +
    • Description: A 12V battery used to power the fan and other components.
    • Properties: None
  9. 5V Relay

    • Pins: Normally Open, Common terminal, Normally Closed, In, GND, VCC
    • Description: A relay used to control the fan.
    • Properties: None
  10. LM340T5 7805

    • Pins: Vout, Vin, GND
    • Description: A voltage regulator to convert 12V to 5V.
    • Properties: None
  11. Buzzer

    • Pins: PIN, GND
    • Description: A buzzer used to alert when the humidity surpasses the threshold.
    • Properties: None

Wiring Details

120 Fan 12V

Resistor (4700 Ohms)

Resistor (200 Ohms)

Arduino UNO

KY-015 DHT11

OV7670

Resistor (10000 Ohms)

12V Battery

5V Relay

LM340T5 7805

Buzzer

Code Documentation

/*
 * This Arduino Sketch controls a defogging system for a camera lens.
 * It uses a DHT11 humidity sensor to monitor humidity levels near the lens.
 * When the humidity surpasses a threshold, a buzzer sounds and a relay is
 * activated to turn on a fan. The