A data Acquisition System based on Arduino and R for Statistical Computing (R) sounds like an interesting project, and it is. But to be honest, this project was started out of poverty. At the beginning of the development of my enhanced autonomous biological system I got the question: how do you know the status of the water quality without opening the system? It seemed a good question: a closed system is only closed until it is opened for the first time. After reading some publications on water quality the decision was made that pH would be the way to go especially when you are on a budget. In the beginning I started with stand alone pH monitoring systems manually writing down the values every day. Eventually there was a need for automation of the data logging and monitoring process. That's when I started the development of my own data acquisition system based on Arduino and R. There are three methods used for communication with R, serial, wired ethernet and wifi communication.
The first setups only uses serial communication. This has one big advantage, the usb cable that connects the Arduino board to the computer is used for communication and power supply. But there is also a limitation and that is cable distance. Arduino uses USB 2.0 and that limits the cable length to 5 meters. You can solve this with active cables and extenders. But in my case this would result in building a complete new network from scratch. As all development processes this would become a long expensive project. And why should you develop a complete network while there already is a stable network that is already proven technology, the local ethernet.
Adding an ethernet module to an Arduino Uno is a straight forward process. The ethernet shield is stacked on top and you can connect the Arduino Uno to the local network. Now you can connect multiple sensor modules from multiple locations without drilling usb cables through walls and solving the usual development problems. The sensor module is placed were you need it, plug the network cable into a router and you're ready to go. But in some situations you want a sensor module were the is no router or no wired network.
The Arduino Uno Wifi can be used as a sensor module were there is no wired network, such as a greenhouse next to the main building. The retrieval of data is done with the same method as with the wired module. Another advantage of the Arduino Uno Wifi is that there is more room for storage to host a small webserver with a webpage that displays the sensor values. You can also connect a sd card module to host a larger website and to store a .csv file for data logging. This board comes with an internal real time clock and can even be configured as a stand alone data acquisition system. The open-source codes for both modules can be found on my github.