INFO: Dieses Forum nutzt Cookies...
Cookies sind für den Betrieb des Forums unverzichtbar. Mit der Nutzung des Forums erklärst Du dich damit einverstanden, dass wir Cookies verwenden.

Es wird in jedem Fall ein Cookie gesetzt um diesen Hinweis nicht mehr zu erhalten. Desweiteren setzen wir Google Adsense und Google Analytics ein.

Antwort schreiben 
 
Themabewertung:
  • 1 Bewertungen - 2 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Wetterstation
13.12.2015, 16:42 (Dieser Beitrag wurde zuletzt bearbeitet: 13.12.2015 16:42 von sascha35.)
Beitrag #1
Wetterstation
Hi ich habe einen Regenmesser von der WH1080, der wird mit einem Reedkontakt gemessen, er hat zwei wippen drinnen und je wippe kann 0.2794 mm erfassen.

So das Programm läuft aber immer nur 0.00 zeigt er an und mist nicht.

Habe den Digital Pin 2 genommen und gegen GND.

Bitte um Hilfe


Code:
// Set up the inputs and the interrupts

#define RAIN_GAUGE_PIN 2
#define RAIN_GAUGE_INT 0



void setup()
{

Serial.begin(9600);


}


void setupWeatherInts()

{

pinMode (RAIN_GAUGE_PIN ,INPUT );
digitalWrite ( RAIN_GAUGE_PIN , HIGH );
attachInterrupt ( RAIN_GAUGE_INT,rainGageClick,FALLING);
interrupts();

}




#define RAIN_FACTOR 0.2794


volatile unsigned long rain_count=0;
volatile unsigned long rain_last=0;


double getUnitRain()

{
unsigned long reading = rain_count;

rain_count=0;
double unit_rain=reading*RAIN_FACTOR;
return unit_rain;

}



void rainGageClick()
{

  long thisTime=micros()-rain_last;
rain_last=micros();
if(thisTime>500)
{
rain_count++;
}
}
// ---------------------
// Main loop


void loop()
{

  Serial.println(getUnitRain());
  Serial.println(" ");
  delay(10000);
  
}

mfg
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
13.12.2015, 17:25 (Dieser Beitrag wurde zuletzt bearbeitet: 13.12.2015 17:27 von sascha35.)
Beitrag #2
RE: Wetterstation
Ja ich benutze eine Pullup widerstand.

Jetzt geht es habe ein void setupWeatherInts() zu viel drin.

Fertiger Code:

Code:
#define RAIN_GAUGE_PIN 2
#define RAIN_GAUGE_INT 0



void setup()
{

Serial.begin(9600);









pinMode (RAIN_GAUGE_PIN ,INPUT );
digitalWrite ( RAIN_GAUGE_PIN , HIGH );
attachInterrupt ( RAIN_GAUGE_INT,rainGageClick,FALLING);
interrupts();

}




#define RAIN_FACTOR 0.2794


volatile unsigned long rain_count=0;
volatile unsigned long rain_last=0;


double getUnitRain()

{
unsigned long reading = rain_count;

rain_count=0;
double unit_rain=reading*RAIN_FACTOR;
return unit_rain;

}



void rainGageClick()
{

  long thisTime=micros()-rain_last;
rain_last=micros();
if(thisTime>500)
{
rain_count++;
}
}
// ---------------------
// Main loop


void loop()
{

  Serial.println(getUnitRain());
  Serial.println(" ");
  delay(10000);
  
}
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
14.12.2015, 10:18
Beitrag #3
RE: Wetterstation
Guten morgen ich versuche mein DCF77 empfänger zu testen. Aber arduino meckert.

Arduino: 1.6.6 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Warnung: platform.txt aus dem Kern 'Arduino SAMD (32-bits ARM Cortex-M0+) Boards' enthält veraltete recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}" und wurde automatisch zu recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}" konvertiert. Erwägen Sie eine Aktualisierung dieses Kerns.
C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp: In static member function 'static void DCF77::int0handler()':

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:102:14: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LogLn("rCT");

^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:109:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LogLn("rPW");

^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp: In static member function 'static void DCF77::appendSignal(unsigned char)':

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:146:14: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LogLn("EoB");

^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp: In static member function 'static void DCF77::finalizeBuffer()':

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:157:13: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LogLn("BF");

^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:166:14: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LogLn("EoM");

^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp: In static member function 'static bool DCF77::receivedTimeUpdate()':

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:183:25: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LogLn("Invalid parity");

^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:191:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LogLn("Time outside of bounds");

^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:198:34: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LogLn("close to internal clock");

^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:210:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LogLn("time lag consistent");

^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:213:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

LogLn("time lag inconsistent");

^

In file included from C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:10:0:

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:18:18: error: variable 'monthStr1' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr1[] PROGMEM = "January";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:19:18: error: variable 'monthStr2' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr2[] PROGMEM = "February";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:20:18: error: variable 'monthStr3' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr3[] PROGMEM = "March";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:21:18: error: variable 'monthStr4' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr4[] PROGMEM = "April";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:22:18: error: variable 'monthStr5' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr5[] PROGMEM = "May";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:23:18: error: variable 'monthStr6' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr6[] PROGMEM = "June";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:24:18: error: variable 'monthStr7' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr7[] PROGMEM = "July";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:25:18: error: variable 'monthStr8' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr8[] PROGMEM = "August";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:26:18: error: variable 'monthStr9' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr9[] PROGMEM = "September";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:27:19: error: variable 'monthStr10' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr10[] PROGMEM = "October";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:28:19: error: variable 'monthStr11' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr11[] PROGMEM = "November";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:29:19: error: variable 'monthStr12' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr12[] PROGMEM = "December";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:31:22: error: variable 'monthNames_P' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

PGM_P monthNames_P[] PROGMEM =

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:37:26: error: variable 'monthShortNames_P' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthShortNames_P[] PROGMEM = "ErrJanFebMarAprMayJunJulAugSepOctNovDec";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:39:16: error: variable 'dayStr0' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayStr0[] PROGMEM = "Err";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:40:16: error: variable 'dayStr1' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayStr1[] PROGMEM = "Sunday";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:41:16: error: variable 'dayStr2' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayStr2[] PROGMEM = "Monday";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:42:16: error: variable 'dayStr3' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayStr3[] PROGMEM = "Tuesday";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:43:16: error: variable 'dayStr4' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayStr4[] PROGMEM = "Wednesday";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:44:16: error: variable 'dayStr5' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayStr5[] PROGMEM = "Thursday";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:45:16: error: variable 'dayStr6' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayStr6[] PROGMEM = "Friday";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:46:16: error: variable 'dayStr7' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayStr7[] PROGMEM = "Saturday";

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:48:20: error: variable 'dayNames_P' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

PGM_P dayNames_P[] PROGMEM = { dayStr0,dayStr1,dayStr2,dayStr3,dayStr4,dayStr5,dayStr6,dayStr7};

^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:49:24: error: variable 'dayShortNames_P' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayShortNames_P[] PROGMEM = "ErrSunMonTueWedThrFriSat";

^

exit status 1
Fehler beim Kompilieren.

Dieser Report hätte mehr Informationen mit
"Ausführliche Ausgabe während der Kompilierung"
aktiviert in Datei > Einstellungen.
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
14.12.2015, 10:42 (Dieser Beitrag wurde zuletzt bearbeitet: 14.12.2015 10:43 von Hilgi.)
Beitrag #4
RE: Wetterstation
steck das doch mal bitte in tags!!!!
wenn du auf new reply gehst über der schreibebox rechts ist ein ->#<- und am ende wieder schliessen

Nicht denken,...
...nachdenken... Rolleyes
http://capsicum-felicitas.de.tl
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
15.12.2015, 08:58
Beitrag #5
RE: Wetterstation
Moin mal eine frage an dieExperten unter uns, welches modul ist sinn voll um Daten ( Dht11, Wind,Windrichtung, Regenmesser usw ) von einem Arduino der drausen ist, Daten zum Empfänger in der Wohnung sendet. Es sind gute 20m in Neubau. ?


Habe an ein Xbee Pro gedacht.

Mfg
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
15.12.2015, 09:19 (Dieser Beitrag wurde zuletzt bearbeitet: 15.12.2015 09:23 von hotsystems.)
Beitrag #6
RE: Wetterstation
(15.12.2015 08:58)sascha35 schrieb:  Moin mal eine frage an dieExperten unter uns, welches modul ist sinn voll um Daten ( Dht11, Wind,Windrichtung, Regenmesser usw ) von einem Arduino der drausen ist, Daten zum Empfänger in der Wohnung sendet. Es sind gute 20m in Neubau. ?
Habe an ein Xbee Pro gedacht.
Mfg
Hallo,

bitte setze deinen Code oben in "Code-Tags" (Schaltfläche #), dann ist es besser zu lesen. Mache es bitte auch nachträglich.
Es liest sich so, als ob die Library (DCF77) zu alt ist. Solltest mal nach einer aktuellen schauen.

Der Xbee Pro ist ok, aber für diese Aufgabe fast schon zu "groß". Um einfach Daten per Funk zu übertragen, reichen Module wie diese hier

http://www.ebay.de/itm/301564896173

völlig aus. Damit erreichst du gut 100 m Luftlinie.

I2C = weniger ist mehr: weniger Kabel, mehr Probleme. Cool
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
15.12.2015, 11:11
Beitrag #7
RE: Wetterstation
[quote='sascha35' pid='25357' dateline='1450084706']
Guten morgen ich versuche mein DCF77 empfänger zu testen. Aber arduino meckert.

Arduino: 1.6.6 (Windows 10), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"



Code:
Warnung: platform.txt aus dem Kern 'Arduino SAMD (32-bits ARM Cortex-M0+) Boards' enthält veraltete recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{build.path}/{archive_file}" "{object_file}" und wurde automatisch zu recipe.ar.pattern="{compiler.path}{compiler.ar.cmd}" {compiler.ar.flags} {compiler.ar.extra_flags} "{archive_file_path}" "{object_file}" konvertiert. Erwägen Sie eine Aktualisierung dieses Kerns.
C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp: In static member function 'static void DCF77::int0handler()':

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:102:14: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   LogLn("rCT");

              ^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:109:17: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

      LogLn("rPW");

                 ^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp: In static member function 'static void DCF77::appendSignal(unsigned char)':

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:146:14: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   LogLn("EoB");

              ^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp: In static member function 'static void DCF77::finalizeBuffer()':

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:157:13: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   LogLn("BF");

             ^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:166:14: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   LogLn("EoM");

              ^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp: In static member function 'static bool DCF77::receivedTimeUpdate()':

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:183:25: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   LogLn("Invalid parity");

                         ^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:191:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   LogLn("Time outside of bounds");

                                 ^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:198:34: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   LogLn("close to internal clock");

                                  ^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:210:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   LogLn("time lag consistent");  

                              ^

C:\Program Files (x86)\Arduino\libraries\DCF77\DCF77.cpp:213:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

   LogLn("time lag inconsistent");

                                ^

In file included from C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:10:0:

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:18:18: error: variable 'monthStr1' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr1[] PROGMEM = "January";

                  ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:19:18: error: variable 'monthStr2' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr2[] PROGMEM = "February";

                  ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:20:18: error: variable 'monthStr3' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr3[] PROGMEM = "March";

                  ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:21:18: error: variable 'monthStr4' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr4[] PROGMEM = "April";

                  ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:22:18: error: variable 'monthStr5' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr5[] PROGMEM = "May";

                  ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:23:18: error: variable 'monthStr6' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr6[] PROGMEM = "June";

                  ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:24:18: error: variable 'monthStr7' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr7[] PROGMEM = "July";

                  ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:25:18: error: variable 'monthStr8' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr8[] PROGMEM = "August";

                  ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:26:18: error: variable 'monthStr9' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr9[] PROGMEM = "September";

                  ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:27:19: error: variable 'monthStr10' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr10[] PROGMEM = "October";

                   ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:28:19: error: variable 'monthStr11' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr11[] PROGMEM = "November";

                   ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:29:19: error: variable 'monthStr12' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthStr12[] PROGMEM = "December";

                   ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:31:22: error: variable 'monthNames_P' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

PGM_P monthNames_P[] PROGMEM =

                      ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:37:26: error: variable 'monthShortNames_P' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char monthShortNames_P[] PROGMEM = "ErrJanFebMarAprMayJunJulAugSepOctNovDec";

                          ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:39:16: error: variable 'dayStr0' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayStr0[] PROGMEM = "Err";

                ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:40:16: error: variable 'dayStr1' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayStr1[] PROGMEM = "Sunday";

                ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:41:16: error: variable 'dayStr2' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayStr2[] PROGMEM = "Monday";

                ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:42:16: error: variable 'dayStr3' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayStr3[] PROGMEM = "Tuesday";

                ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:43:16: error: variable 'dayStr4' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayStr4[] PROGMEM = "Wednesday";

                ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:44:16: error: variable 'dayStr5' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayStr5[] PROGMEM = "Thursday";

                ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:45:16: error: variable 'dayStr6' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayStr6[] PROGMEM = "Friday";

                ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:46:16: error: variable 'dayStr7' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayStr7[] PROGMEM = "Saturday";

                ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:48:20: error: variable 'dayNames_P' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

PGM_P dayNames_P[] PROGMEM = { dayStr0,dayStr1,dayStr2,dayStr3,dayStr4,dayStr5,dayStr6,dayStr7};

                    ^

C:\Program Files (x86)\Arduino\libraries\Time\DateStrings.cpp:49:24: error: variable 'dayShortNames_P' must be const in order to be put into read-only section by means of '__attribute__((progmem))'

char dayShortNames_P[] PROGMEM = "ErrSunMonTueWedThrFriSat";

                        ^

exit status 1
Fehler beim Kompilieren.

  Dieser Report hätte mehr Informationen mit
  "Ausführliche Ausgabe während der Kompilierung"
  aktiviert in Datei > Einstellungen.
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
15.12.2015, 11:19
Beitrag #8
RE: Wetterstation
Wie bereits von anderer stelle erwähnt....
Schonmal ne frühere ide aus probiert?
Weiter unten streikten er wegen fehlerhafter Umwandlung von string zu char

Gruss

Nicht denken,...
...nachdenken... Rolleyes
http://capsicum-felicitas.de.tl
Alle Beiträge dieses Benutzers finden
Diese Nachricht in einer Antwort zitieren
Antwort schreiben 


Möglicherweise verwandte Themen...
Thema: Verfasser Antworten: Ansichten: Letzter Beitrag
Rainbow Wetterstation mit LC-Display I2C --> Feuchte, Temp, Wind, Druck, Tau, Tendenz Wampo 25 36.296 24.10.2016 19:05
Letzter Beitrag: Wampo
Video Mobile wissenschaftliche Wetterstation fp.blues2013 17 6.862 27.07.2014 10:28
Letzter Beitrag: SkobyMobil
  Arduino GPRS Wetterstation derdemo 4 8.104 25.07.2014 00:49
Letzter Beitrag: fp.blues2013

Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste