Data
Acquisition System
For Computer Science Electrical Automation ENG
(Milano Leonardo) Data Acquisition Project 2020-21
The project, purely
optional, allows the student for increasing its final assessment up to 3 points. The project will
consist of three steps (every point will be evaluated up to 1 point) and can
be completed by the registration of the mark. The project will be developed individually. The project can be developed on a microcontroller
platform of this type: https://developer.mbed.org/platforms/ST-Nucleo-F334R8/
or equivalent such as Arduino, Raspberry etc, etc ... Furthermore, in order to realize the data
acquisition system, a temperature sensor of this type (DHT11)
will be required: https://amzn.to/3hGFUs8 and a card that allows WI-FI connection of this type
(ESP8266): https://amzn.to/2JepGrC You will also need a pair of resistors and
capacitors and a breadboard to organize the circuit to use the entire
dynamics of the converter within the chosen board that works in the 0-3 V
range. The main idea is to create a small thermometric
station that connects to the WI-FI to the home network or that created by a
hotspot there a cell phone and create a web page from where with LabVIEW you
download the data and you can view and save them in a text file. The deadline
for the presentation of the project is the April 30st 2021. |
|
|
1st step of the project: Through a microcontroller connected via USB,
communicate with the PC via the serial port (simulated via USB). The student
must create a LabVIEW program that allows the acquisition of data from the
temperature sensor present on the board. The data must be shown on a waveform chart with the
possibility of modifying the reading time, with a resolution from 1 s to 60 s with steps of 10 s (1 s, 10 s, 20 s,etc.etc.).
In addition to the possibility of displaying
the data, it must be possible to save the data in text files, which as a name
must have the date on which the data hour in which will be saved (dd_mm_yyyy_hh_mm_ss.txt). There will be a switch button with a label on it saying SAVE, that when will be pushed
the program will create a new file and will start to save data. When the button will pushed another time the program will stop to save data. Every time the user will push the button to save
it will be created a new file. In the file will be two columns one for time (hh:mm:ss) the data will be saved and the other for temperature.
|
|
2nd step of the project: Connect the
microcontroller board to the WIFI board, for example ESP8266. Once the micro
is connected to the card it must be possible to create a web page in which
the temperature of the sensor must be displayed. Then you have to
develop a LabVIEW program that allows data visualization through the LabVIEW
http blocks, downloading data from the webpage you have created and you are connected on the subnet.
(https://zone.ni.com/reference/en-XX/help/371361R-01/lvcomm/http_client/). |
|
3rd step of the project: Save the temperature, date and time data
of the measurement in a database in PostGres
(https://www.postgresql.org/) through the database connectivity toolkit LabVIEW
(https://bit.ly/2Vh918o) and allow the user to view database data on a
LabVIEW program while the program is running. |
|
|