Hey there. Might not be a problem with the arduino software itself, but I never had this problem before.
I've used 1.8 forever, but I bought a new computer and moved to the 2.2.1 version. I also moved from Win10 Home to Win10 Pro.
Everything's ok, but there is this petty annoyance that's bothering me.
If my sketch includes Serial.begin(baud), it creates the task serial-monitor.exe that occupies the COM port and that I have to manually kill every time I need to upload code to the board.
Old computer still runs, I uploded the same code from it and I don't have this problem.
Using Win 10 Pro version 10.0.19044, Arduino IDE 2.2.1.
Arduino is a third party Uno R3 based. Windows has no problems recognizing it.
Board and port are correctly set on the IDE. Again, everything works, I just need to kill a task
Already tried changing USB ports, disconnecting other devices, nothing helps.
I don't think my code's relevant, but I tested this simple one from the begginer material I learned from and it has the same problem. It just reads the value of a 10k potentiometer, maps it to a 0-5 V value and prints the result on the serial monitor.
const int pinoPotenciometro = A0;
int leitura = 0;
float tensao = 0.0;
void setup() {
Serial.begin(9600);
pinMode(pinoPotenciometro, INPUT);
}
void loop() {
leitura = analogRead(pinoPotenciometro);
tensao = leitura * 5.0 / 1024.0;
Serial.println(tensao);
delay(100);
}
Please don't tell me to just stick to the old computer...
Thanks in advance.
PS: PLEASE let us name sketches using spaces again...