Hi to everyone and thank you in advance even for spending the time to read my problem.
It is not an uncommon problem and i have searched everywhere for an answer but in my particular case i could find nothing.
The change on my board is that it has the serial reset cut (and completely destroyed in a point i can't solder it again.)
So it is more technical questions because i couldn't find "direct answers" to this, while searching.
Question 1: Is avrdude error related to the fact that the serial reset is cut?
Question 2: Considering the above true, is there a workaround so i can upload my new code? I ve seen solutions such as press the reset button and release it at the correct time but trust me on this, i tried every time frame proposed multiple times so this is not working either.
PS: The board is Uno and i tried it on 3 different PCs.
(Optional) Question 3: I used a Due because i thought that the uno is long gone but there i get a library problem. I tried it once more on 3 different PCs and erased every library i could find and started from scratch, but still i get the error: Multiple libraries were found for "dht.h". The code is the same that compiles just fine when Uno is connected. A simple blank sketch though can be uploaded just fine. I also tried more than 6 libraries (deleting the previous) that i found and still the error persists. Last info the sensors are DHT11.
PS2: I have checked COM ports, drivers etc. Even if a COM port that arduino IDE reads is used anywhere else.
Code:
#include <dht.h>
dht DHT;
#define DHT11_PIN 7
void setup(){
Serial.begin(9600);
}
void loop()
{
int chk = DHT.read11(DHT11_PIN);
Serial.print("Temperature = ");
Serial.println(DHT.temperature);
Serial.print("Humidity = ");
Serial.println(DHT.humidity);
delay(1000);
}
Error Info:
Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Board: "Arduino/Genuino Uno"
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x00
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x00
avrdude done. Thank you.
An error occurred while uploading the sketch