รหัสสินค้า | AS50228 |
หมวดหมู่ | วัดสภาพแวดล้อมและแก๊ส Environmental / Gas |
ราคา | 7,785.00 บาท |
Project 1: Make Your Own Arduino Weather Station
This durable Arduino weather station kit includes an anemometer, wind vane, rain bucket and DH11 temperature and humidity sensor. It can transmit data via serial or RF interfaces.
Hardware List:
LCD12864 Shield for Arduino
Weather Station Kit with Solar Panel
Weather Station Kit with Anemometer/Wind Vane/Rain Bucket
Bluno M3 - A STM32 ARM with Bluetooth 4.0 (Arduino Compatible)
No. | Description |
---|---|
B | Rainfall |
C | Wind speed and direction |
D | Data output |
E | Indicator light |
I | I2C temperature, humidity and air pressure port |
J1 | Metric & Imperialb Jumpers |
J2 | Data interface 2400/9600 baud rate Jumpers |
c000s000g000t082r000p000h48b10022*3C
Output 37 bytes per second, including CR/LF at the end of the data.
Data Analysis:
Note: The board will make a hardware self-check before it works, it will output “...” when it doesn’t detect the related devices. For example, If the temperature & humidity sensor and barometer are not installed or broken, it will output: '''c000s000g000t...r000p000h..b..... '''
Hardware
Software
Please unplug the cable on the TX&RX interface, or it will interfere with the sketch uploading.
char databuffer[35];
double temp;
void getBuffer() //Get weather status data
{
int index;
for (index = 0;index < 35;index ++)
{
if(Serial.available())
{
databuffer[index] = Serial.read();
if (databuffer[0] != 'c')
{
index = -1;
}
}
else
{
index --;
}
}
}
int transCharToInt(char *_buffer,int _start,int _stop) //char to int)
{
int _index;
int result = 0;
int num = _stop - _start + 1;
int _temp[num];
for (_index = _start;_index <= _stop;_index ++)
{
_temp[_index - _start] = _buffer[_index] - '0';
result = 10*result + _temp[_index - _start];
}
return result;
}
int WindDirection() //Wind Direction
{
return transCharToInt(databuffer,1,3);
}
float WindSpeedAverage() //air Speed (1 minute)
{
temp = 0.44704 * transCharToInt(databuffer,5,7);
return temp;
}
float WindSpeedMax() //Max air speed (5 minutes)
{
temp = 0.44704 * transCharToInt(databuffer,9,11);
return temp;
}
float Temperature() //Temperature ("C")
{
temp = (transCharToInt(databuffer,13,15) - 32.00) * 5.00 / 9.00;
return temp;
}
float RainfallOneHour() //Rainfall (1 hour)
{
temp = transCharToInt(databuffer,17,19) * 25.40 * 0.01;
return temp;
}
float RainfallOneDay() //Rainfall (24 hours)
{
temp = transCharToInt(databuffer,21,23) * 25.40 * 0.01;
return temp;
}
int Humidity() //Humidity
{
return transCharToInt(databuffer,25,26);
}
float BarPressure() //Barometric Pressure
{
temp = transCharToInt(databuffer,28,32);
return temp / 10.00;
}
void setup()
{
Serial.begin(9600);
}
void loop()
{
getBuffer(); //Begin!
Serial.print("Wind Direction: ");
Serial.print(WindDirection());
Serial.println(" ");
Serial.print("Average Wind Speed (One Minute): ");
Serial.print(WindSpeedAverage());
Serial.println("m/s ");
Serial.print("Max Wind Speed (Five Minutes): ");
Serial.print(WindSpeedMax());
Serial.println("m/s");
Serial.print("Rain Fall (One Hour): ");
Serial.print(RainfallOneHour());
Serial.println("mm ");
Serial.print("Rain Fall (24 Hour): ");
Serial.print(RainfallOneDay());
Serial.println("mm");
Serial.print("Temperature: ");
Serial.print(Temperature());
Serial.println("C ");
Serial.print("Humidity: ");
Serial.print(Humidity());
Serial.println("% ");
Serial.print("Barometric Pressure: ");
Serial.print(BarPressure());
Serial.println("hPa");
Serial.println("");
Serial.println("");
}
Note: Due to the fact that there is no wind in the test environment, all parameters related to wind speed and wind direction are 0.
Q1. About the module assembly: I only found there are only two installation blocks for the different modules on the Converter Board, but there are three modules: Anemometer, Wind vane and Rain bucket to be installed on the Converter Board. How come?
A: There are two ports under the anemometer, you need to connect the anemometer to the wind direction and then connect to the adapter board, as shown in the figure:
ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีธนาคาร KBANK, SCB, BBL,TMB
กรุณาเก็บหลักฐานการโอนเงินของท่านไว้เพื่อแจ้งการชำระเงินด้วยค่ะ
ท่านสามารถแจ้งการชำระเงินผ่านระบบอัตโนมัติได้โดย Click Link ข้างล่างค่ะ
https://www.arduitronics.com/informpayment
หน้าที่เข้าชม | 15,419,493 ครั้ง |
ผู้ชมทั้งหมด | 5,922,571 ครั้ง |
เปิดร้าน | 21 พ.ค. 2556 |
ร้านค้าอัพเดท | 4 ต.ค. 2568 |