Adafruit Datalogger Shield with Environmental Sensing and Relay Control
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary of the Circuit
This circuit is designed to interface with various sensors and a relay to perform data logging and control functions. It includes temperature and humidity sensing (DHT11), light intensity measurement (Photocell), soil moisture detection (Soil Moisture Sensor and Capacitive Soil Moisture Sensor V1.2), and a relay module for controlling a solenoid valve. The Adafruit Datalogger Shield v1 serves as the central interface for the sensors and provides data logging capabilities. The circuit is powered by a 12V power supply, and a resistor is used for the photocell voltage divider.
Component List
Adafruit Datalogger Shield v1
- SD card interface for data logging
- Real-time clock for timestamping data
- Digital and analog I/O pins for interfacing with sensors and actuators
DHT11 (x2)
- Measures temperature and humidity
- Simple digital interface
Photocell (LDR)
- Measures light intensity
- Requires an external resistor to form a voltage divider
12V Single Channel Relay
- Controls high power devices like solenoid valves
- Has Normally Open (NO) and Normally Closed (NC) contacts
Resistor
- 10k Ohm resistor used for the photocell voltage divider
Plastic Solenoid Valve
- Controlled by the relay to allow/block fluid flow
12V Power Supply
- Provides power to the circuit
Soil Moisture Sensor
- Detects the moisture level in the soil
Capacitive Soil Moisture Sensor V1.2
- Detects soil moisture levels using capacitive sensing
Soil Moisture Module
- Interfaces with the soil moisture sensor
Wiring Details
Adafruit Datalogger Shield v1
+5Vconnected to VCC of DHT11 sensors, Photocell, Capacitive Soil Moisture Sensor V1.2, and 12V Single Channel RelayGNDconnected to GND of DHT11 sensors, Capacitive Soil Moisture Sensor V1.2, 10k Ohm Resistor, and 12V Single Channel RelayD2connected to DATA of DHT11 sensorsA0connected to one end of the Photocell, other end connected to 10k Ohm ResistorA1connected to AOUT of Capacitive Soil Moisture Sensor V1.2D3connected to IN of 12V Single Channel Relay
DHT11
VCCconnected to +5VDATAconnected to D2 of Adafruit Datalogger Shield v1GNDconnected to GND
Photocell (LDR)
- One end connected to +5V
- Other end connected to A0 of Adafruit Datalogger Shield v1 and to 10k Ohm Resistor
12V Single Channel Relay
VCCconnected to +5VGNDconnected to GNDINconnected to D3 of Adafruit Datalogger Shield v1COMconnected to + of 12V Power SupplyNOconnected to one pin of the Plastic Solenoid Valve
Resistor (10k Ohm)
- One end connected to GND
- Other end connected to A0 of Adafruit Datalogger Shield v1 and to one end of the Photocell
Plastic Solenoid Valve
- One pin connected to NO of 12V Single Channel Relay
- Other pin connected to - of 12V Power Supply
12V Power Supply
+connected to COM of 12V Single Channel Relay-connected to one pin of the Plastic Solenoid Valve
Soil Moisture Sensor
- Not directly connected in the provided net list
Capacitive Soil Moisture Sensor V1.2
VCCconnected to +5VGNDconnected to GNDAOUTconnected to A1 of Adafruit Datalogger Shield v1
Soil Moisture Module
- Not directly connected in the provided net list
Documented Code
sketch.ino
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
documentation.txt
No additional code documentation provided.