Interface and application programming


Introduction

This week our assignments are the following:
•individual assignment: write an application that interfaces a user with an input &/or output device that you made
• group assignment: compare as many tool options as possible

About data science

Data processing, Manipulation of data by a computer. It includes the conversion of raw data to machine-readable form, flow of data through the CPU and memory to output devices, and formatting or transformation of output. Any use of computers to perform defined operations on data can be included under data processing. In the commercial world, data processing refers to the processing of data required to run organizations and businesses.

Data processing has 6 stages
• Data collection - collecting data is the first step in data processing. Data is pulled from available sources, including data lakes and data warehouses. It is important that the data sources available are trustworthy and well-built so the data collected is of the highest possible quality.
• Data preparation once the data is collected, it then enters the data preparation stage. Data preparation, often referred to as “pre-processing” is the stage at which raw data is cleaned up and organized for the following stage of data processing. During preparation, raw data is diligently checked for any errors. The purpose of this step is to eliminate bad data and begin to create high-quality data for the best business intelligence.
• Data input - the clean data is then entered into its destination (perhaps a CRM like Salesforce or a data warehouse like Redshift), and translated into a language that it can understand. Data input is the first stage in which raw data begins to take the form of usable information.
• Processing - during this stage, the data inputted to the computer in the previous stage is actually processed for interpretation. Processing is done using machine learning algorithms, though the process itself may vary slightly depending on the source of data being processed (data lakes, social networks, connected devices etc.) and its intended use (examining advertising patterns, medical diagnosis from connected devices, determining customer needs, etc.).
• Data output/interpretation - the output/interpretation stage is the stage at which data is finally usable to non-data scientists. It is translated, readable, and often in the form of graphs, videos, images, plain text, etc.). Members of the company or institution can now begin to self-serve the data for their own data analytics projects.
• Data storage - the final stage of data processing is storage. After all of the data is processed, it is then stored for future use. While some information may be put to use immediately, much of it will serve a purpose later on. Plus, properly stored data is a necessity for compliance with data protection legislation like GDPR. When data is properly stored, it can be quickly and easily accessed by members of the organization when needed.

Application

I visit the processing.org web site downlaod and installed it. I read and watched different tutorials for understanding how to do my assignement. I got a lot of information at www.processing.org website. Finnaly I started doing my weekly assignment, I took hall sensor board from week 11 , FTDI cabel. I decided to make an applicaion, that measure amgnetic field.

I started writing the code

loat t;
void setup() {
stroke(random(255),random(255),random(255));
background(20);
size(500,500);
}
void draw() {
strokeWeight(5);
translate(0, height/2);
point(x(t), y(t));
if (x(t) > width){
t=0;
stroke(random(255),random(255),random(255));}
t++;
}
float x(float t){
return t;}
float y(float t){
if (key == 'm'){
return sin(t/10)*100;}
else{
return sin(t/10)*10;}}

Of course during writing the code I

Open the application push on "m" and it become bigger and if push on another letter it become smaller.



All files and application are here


magnet file
processing
application

List of usefull links

plethora-project
processing