Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tambatra committed Jan 23, 2022
0 parents commit 0087c52
Show file tree
Hide file tree
Showing 6 changed files with 8,205 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Arduino_code.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
const int analogPort[3] = {A0, A1, A2, A3};
// number of measures
const int n_max = 5;

void setup(){
Serial.begin(9600);
delay(2000);
}

void loop(){
int n = 0;
int airQ[4]{};

while (n < n_max){
for (int i = 0; i < 4; i++){
airQ[i] = airQ[i] + analogRead(analogPort[i]);
}
delay(2000);
n++;
}
for (int i = 0; i < 4; i++)
{
airQ[i] = airQ[i] / n_max;
if (i != 3)
{
Serial.print(airQ[i]);
Serial.print(',');
}
else
{
Serial.println(airQ[i]);
}
}
}
Binary file added RF_Model.pkl
Binary file not shown.
Loading

0 comments on commit 0087c52

Please sign in to comment.