5V
5V
6V-12V
68.5 mm x 53.5 mm
20g
Conclusion
The Arduino UNO Sensor Shield Expansion Board V5 is a highly versatile and feature-rich accessory board that provides a convenient and easy-to-use platform for connecting and interfacing with various sensors, modules, and peripherals. With its wide range of interfaces, power management capabilities, and prototyping area, this shield expansion board is an ideal choice for IoT prototyping, robotics, and automation projects.
Arduino UNO Sensor Shield Expansion Board V5 DocumentationOverviewThe Arduino UNO Sensor Shield Expansion Board V5 is a versatile board designed to simplify the connection and implementation of various sensors and modules with the Arduino UNO board. This shield provides a convenient interface for connecting multiple sensors, eliminating the need for excessive wiring and jumper cables.FeaturesCompatible with Arduino UNO R3 and compatible boards
Supports multiple sensor interfaces, including I2C, SPI, UART, and analog
Onboard 3.3V and 5V voltage regulators for powering sensors
Three Grove connectors for easy connection of Grove modules
Four-pin I2C connector for connecting I2C devices
Onboard LEDs for power indication and debuggingConnecting the ShieldTo connect the shield to your Arduino UNO board, simply stack the shield on top of the Arduino UNO board, ensuring that the pins align properly.Code Examples### Example 1: Reading Temperature and Humidity using a DHT11 SensorConnect a DHT11 temperature and humidity sensor to the shield's analog pin A0.```c
#include <DHT.h>#define DHT_PIN A0
#define DHT_TYPE DHT11DHT dht(DHT_PIN, DHT_TYPE);void setup() {
Serial.begin(9600);
dht.begin();
}void loop() {
int temperature = dht.readTemperature();
int humidity = dht.readHumidity();Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println("C");Serial.print("Humidity: ");
Serial.print(humidity);
Serial.println("%");delay(2000);
}
```### Example 2: Reading Distance using an Ultrasonic Sensor (HC-SR04)Connect an HC-SR04 ultrasonic sensor to the shield's digital pins 2 (Trig) and 3 (Echo).```c
#define TRIG_PIN 2
#define ECHO_PIN 3void setup() {
Serial.begin(9600);
pinMode(TRIG_PIN, OUTPUT);
pinMode(ECHO_PIN, INPUT);
}void loop() {
int distance = getDistance();Serial.print("Distance: ");
Serial.print(distance);
Serial.println(" cm");delay(50);
}int getDistance() {
digitalWrite(TRIG_PIN, LOW);
delayMicroseconds(2);
digitalWrite(TRIG_PIN, HIGH);
delayMicroseconds(10);
digitalWrite(TRIG_PIN, LOW);int duration = pulseIn(ECHO_PIN, HIGH);
int distance = duration 0.034 / 2;return distance;
}
```### Example 3: Reading Accelerometer Data using an ADXL345 ModuleConnect an ADXL345 accelerometer module to the shield's I2C pins (SDA and SCL).```c
#include <Wire.h>
#include <ADXL345.h>ADXL345 accelerometer;void setup() {
Serial.begin(9600);
Wire.begin();
accelerometer.begin();accelerometer.setRange(ADXL345_RANGE_16G);
}void loop() {
int x, y, z;accelerometer.readAccel(&x, &y, &z);Serial.print("Accelerometer Data:");
Serial.print(" X = ");
Serial.print(x);
Serial.print(" mg");
Serial.print(" Y = ");
Serial.print(y);
Serial.print(" mg");
Serial.print(" Z = ");
Serial.print(z);
Serial.println(" mg");delay(50);
}
```These examples demonstrate the versatility of the Arduino UNO Sensor Shield Expansion Board V5 and its ability to support a wide range of sensors and modules.