Hi, I wanted to test a sensor and see if it collected any spikes from its data. I wanted to collect as much data as possible so i went with a super simple program to read sensor value every 50 milliseconds. Then i removed the delay()-line so i could gather even more data. I am also using serial.print in the code so i print every loop iteration. When i tried the program my computer crashed and i got a bluescreen. Now when i plug it in i cant find the port in the arduino IDE anymore. Even when i try to just compile any program in the IDE without the arduino nano connected i get this error:
Using board 'nano' from platform in folder: C:\Users\Max\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3
Using core 'arduino' from platform in folder: C:\Users\Max\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.8.3
Compilation error: Error: 13 INTERNAL: Received RST_STREAM with code 2 triggered by internal client error: read ECONNRESET
This is the code i have running on the arduino nano and i dont know how to change it or even use the arduino at all:
const int moistPin = A0;
float moist;
void setup() {
pinMode(moistPin,INPUT);
Serial.begin(9600);
}
void loop() {
moist = analogRead(moistPin);
Serial.println(moist);
}
Note:
I can see the device in the devicemanager on my computer as "USB Serial Converter" and the LED's on the nano is working as supposed