Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

MSP-EXP430FR6989: MSP-EXP430FR6989 Data Logging FRAM

$
0
0

Part Number:MSP-EXP430FR6989

Hi there,

im pretty much starting from the scratch when it comes to MCU's and programming. At the moment Im playing around with my MSP-EXP430FR6989 and a simple DHT22 reading temp. and humidity. 
Actually I was wondering how to store the incoming serial data with an additional timestamp e.g. on the board (FRAM?)?

I currently read the data on port 11 with the following loop: 

void loop() { 

   delay(delayMS);
   sensors_event_t event;  
   dht.temperature().getEvent(&event); /* Read temperature value */
   if (isnan(event.temperature)) { /* If temperature value is not a number */
      Serial.println("Error reading temperature!");
   }
   else {
      Serial.print("Temperature : ");
      Serial.print(event.temperature);
      Serial.println(" *C");
   }    
   dht.humidity().getEvent(&event); /* Read humidity value */
   if (isnan(event.relative_humidity)) { /* If humidity value is not a number */
      Serial.println("Error reading humidity!");
   }
   else {
      Serial.print("Humidity : ");
      Serial.print(event.relative_humidity);
      Serial.println("%");
   }
}

ps: I dont need a high sample frequency and also dont need to store data for a long time. 

Regards
Hendrik 


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>