This is my first time in this field, so I am not sure. Please help.
I sketch the code which is temperature control PID.
I attache whole code, please check my code.
- In the middle of section, starting
float temp_PID::ouput(int &power, int &dir)
there has while loop. I want change while loop to for loop.
I changed
for (int i =0;, i <=9', i++){
sum_temp += input ->readCelsius();
}
but, it didn't work...It says, 'expected primary-expression before ',' token.
Did I miss?
- I want to convert the serial data to .csv file. So I copied someone's code.
It starst with, import processing. serial.*; line.
Here is the problem. It says 'import' does not name a type' did you mean 'qsort'?
and also, under three line, it starts Serial mySerial; section, problem too.
What did I miss?!
Please please check my code seriously. My Prof. said you must finish the code and module in this week.
I have no idea. And I learn arduino and C+ in just one and half months...
TSTC_final_switchingVer_7.ino (12.7 KB)