-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsolarradiation.ino
42 lines (34 loc) · 887 Bytes
/
solarradiation.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
This Arduino sketch controls a personal weather station and use an ethernet shield to upload data to wunderground.com.
Details about the weather station can be found at http://www.avanux.de/space/Arduino/Wetterstation.
*/
//////////////
// Variables
//////////////
//////////////
// Set up
//////////////
void setupSolarRadiation() {
}
//////////////
// Loop
//////////////
void loopSolarRadiation() {
int solarRadiationRead = analogReadSmoothed(solarRadiationPin);
solarRadiation = map(solarRadiationRead);
#ifdef INFO_WS
Serial.print(F("Solar radiation="));
Serial.println(solarRadiation);
#endif
}
int map(int value) {
// Correlation to other stations reporting solar radiation
//
// IHESSENA6 IHESSENS5
// analogRead W/m2
// 150 Ohm
// 28.07.14 880
// 07.02.14 422 358
//
return value;
}