Hi everyone,
I'm trying to do a weather station. I haven't problems connecting and getting most of the sensors; temperature, humidity, atmospheric pressure, etc. But this project is focused on getting data when a earthquake happens so, we want to include an accelerograph who is checking the data all the time, and when detect some event, it upload the data to a server, the process to upload the data is not a problem.
At this time the problem is make it work all the sensors together, and I think it's because the limitation of the hardware I'm using, so I want an advice to continue.
I'm currently using a Arduino MEGA who is the server, it upload the data of all the sensors except from the accelerograph. The accelerograph is connected to an Arduino UNO, when it detects an specific event, saves in the SD card to upload later.
Why not directly to the server?
because:
-In some cases it can be a lot of data to save.
-If there is not internet connection, it should keep saving the data to upload when the internet is back.
The idea is not to upload all the data generated for the accelerograph, it'll be only when detects an event
So I was thinking it could be solved using two SD cards. One, writing the info when the event is happening. If passed X period of time, it should be start to upload that info, so it would send the data to the arduino MEGA and upload to the server, when it's happening the Arduino should continue reading de data and if it detect a new event, save it in the SD card two, who is ready to receive the data.
Doing some test, I realized it's a little complicated to the arduino send the data to the MEGA and keep reading the values of the accelerometer, when it have to write new data in the SD (and also is sending to the server), some times it lost some data from the sensor.
My question is, will be better doing something like this with a more power hardware like DUE, YUN or mixing with a raspberry pi, or I'm planning this with a wrong way?
Any help/advice will be appreciated