

The WS3 Weather Board, manufactured by Waveshare (Part ID: Sensor Board), is a versatile sensor platform designed to monitor environmental conditions such as temperature, humidity, and atmospheric pressure. This compact and efficient board integrates multiple sensors, making it ideal for weather stations, IoT applications, and environmental monitoring systems. Its ability to collect and transmit weather data makes it a valuable tool for analysis, forecasting, and automation.








The WS3 Weather Board features a 4-pin interface for easy connection to microcontrollers like the Arduino UNO.
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (3.3V or 5V) |
| 2 | GND | Ground |
| 3 | SDA | I2C data line |
| 4 | SCL | I2C clock line |
Adafruit_Sensor and Adafruit_BME280 (if the board uses a BME280 sensor).Below is an example code snippet to read temperature, humidity, and pressure data from the WS3 Weather Board using the BME280 sensor.
#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
// Create an instance of the BME280 sensor
Adafruit_BME280 bme;
// Define I2C address for the sensor (default is 0x76 or 0x77)
#define BME280_I2C_ADDRESS 0x76
void setup() {
Serial.begin(9600); // Initialize serial communication
while (!Serial); // Wait for serial port to connect (for native USB boards)
// Initialize the BME280 sensor
if (!bme.begin(BME280_I2C_ADDRESS)) {
Serial.println("Could not find a valid BME280 sensor, check wiring!");
while (1); // Halt execution if sensor is not found
}
Serial.println("WS3 Weather Board Initialized");
}
void loop() {
// Read and print temperature, humidity, and pressure data
Serial.print("Temperature: ");
Serial.print(bme.readTemperature());
Serial.println(" °C");
Serial.print("Humidity: ");
Serial.print(bme.readHumidity());
Serial.println(" %");
Serial.print("Pressure: ");
Serial.print(bme.readPressure() / 100.0F); // Convert Pa to hPa
Serial.println(" hPa");
delay(2000); // Wait 2 seconds before the next reading
}
Sensor Not Detected
Inaccurate Readings
No Data Output
Adafruit_Sensor and Adafruit_BME280 libraries are installed and up to date.Interference on I2C Bus
Q: Can the WS3 Weather Board be used with a 5V microcontroller?
A: Yes, the board supports both 3.3V and 5V power supplies.
Q: What is the maximum cable length for I2C communication?
A: For reliable communication, keep the cable length under 1 meter. Use shielded cables for longer distances.
Q: Can I use multiple WS3 Weather Boards on the same I2C bus?
A: Yes, but ensure each board has a unique I2C address. Check the datasheet for address configuration options.
Q: Is the board waterproof?
A: No, the WS3 Weather Board is not waterproof. Use a protective enclosure for outdoor applications.
By following this documentation, you can effectively integrate the WS3 Weather Board into your projects and ensure reliable performance.