This CH340 chip is used by the Arduino to communicate with the computer through the USB.
Follow this web page...
https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all
This CH340 chip is used by the Arduino to communicate with the computer through the USB.
Follow this web page...
https://learn.sparkfun.com/tutorials/how-to-install-ch340-drivers/all
I tried but it did not work and i am getting the same output
I am beginning to think your Uno clone is faulty.
Can you upload the blink sketch from the examples menu to make the built-in led flash?
Does the IDE allow you to select your board?
yes
it was working previously
I tried uploading the sketch but the led was not blinking
Sounds like maybe the serial monitor output you are seeing is something from an old uploaded sketch, and now the Uno is no longer accepting new sketches.
Do you see any warnings or errors when you try to upload the blink sketch?
nope no warnings or errors
I think this sketch might be interfering
////////////////////////////////
// Joystick controlled mouse///
/// by Shubham Santosh////////
/////////////////////////////
void setup() {
Serial.begin(9600);
pinMode(9, INPUT); // SW pin
digitalWrite(9, HIGH);
}
int prev_state = 0; // previous state of switch
void loop() {
int z = 0, xpos = 0, ypos = 0;
int x = analogRead(A0);
int y = analogRead(A1);
int sensitivity = 10; // you can adjust the sensitivity based on your comfort
if (x >= 550) // when moved up
xpos = map(x, 550, 1023, 0, sensitivity);
if (x <= 450) // when moved down
xpos = map(x, 450, 0, 0, -sensitivity);
if (y >= 550) // when moved right
ypos = map(y, 550, 1023, 0, sensitivity);
if (y <= 450) // when moved left
ypos = map(y, 450, 0, 0, -sensitivity);
int curr_state = digitalRead(9);
if (curr_state == 1 && prev_state == 0) // when SW is pressed
z = 1;
else
z = 0;
if (xpos != 0 or ypos != 0 or z == 1) // prints only when the joystick is moved
{
Serial.print(xpos); // print the data and separating by ":"
Serial.print(":");
Serial.print(ypos);
Serial.print(":");
Serial.println(z);
}
prev_state = curr_state;
delay(10); // for normal operation
}
Yes, that sketch could produce the output you are seeing on serial monitor.
But that code should be entirety over-written each time you upload new code. If the upload was failing, the old code could be still there, but there would be an error message.
It's very strange!
Show the information you see in the output monitor when you compile (not the Serial Monitor).


That looks like a successful upload. Nothing unusual about that. (by the way, copy the text from the Output window, do not use a screen shot).
Output
Sketch uses 5814 bytes (18%) of program storage space. Maximum is 32256 bytes.
Global variables use 550 bytes (26%) of dynamic memory, leaving 1498 bytes for local variables. Maximum is 2048 bytes.
any idea about the problem?
Any update on how to fix it
Do the same with the following sketch: upload sketch, post the contents of the output window, then open the Serial Monitor window ("spyglass" in upper right of IDE). For this case, we will want a screen shot of the Serial Monitor to verify it is open.
void setup() {
Serial.begin(9600);
}
void loop() {
digitalWrite(13, !digitalRead(13)); // blink LED_BUILTIN on Arduino
Serial.println("hello"); // print to Serial Monitor in IDE
delay(1000);
}
Do not "bump" your topic. Thousands of questions are being answered every day. You are one of them. Wait. Sometimes a "bump" will be tolerated. Two bumps probably gets you ignored (there is an "ignore" setting for problem cases). Be part of the solution. Investigate your issue, use assistance and provide as much information as you can. Eventually your issue will be resolved.
Sorry for that, i am a newbie, i wont do that again