Hi there,
I have tested few examples on my board and suddenly my board wasn't showing up.
Then after pressing the reset button tried different USB ports it showed up as "Unknown".
The green led is on and the orange/yellow one is blinking.
I have plugged it over USB all the time.
Also when i unplug the board it still shows up in the IDE as Unknown /dev/ttyS0
What are the LEDs labeled? My boards are not all the same. If the Tx LED is lit in a steady state, it’s likely you’re experiencing a serial flood.
On my Linux machines, /dev/ttyS0 is not connected to anything—it exists even when nothing is plugged into the USB ports. Arduino devices typically appear as /dev/ttyUSBx, where x is a number like 0 or higher, /dev/tty/USB1. Here is a link that explains it: Working with the serial console - ArchWiki What else is connected to the Arduino. If there is post an annotated schematic showing what the circuit is.
/dev/ttyS0 shows up by default on a Linux system. You should be seeing /dev/ttyUSB0 or /dev/ttyACM0 depending on which board you are using (Genuine Arduino or clone) and more specifically, which chip (16u2 or CH340) it has.
Possibly your USB cable has failed? Have you tried another one?
Do you have anything else connected to pins 0 and 1 (Rx/Tx)?
What is the output of lsusb without the board connected?
What is the output of lsusb with the board connected?
Run dmesg -w without the board connected; the program will not close.
Press <enter> a few times so you can clearly identify the output of the next step.
Next connect the board and observe the output. Post the additional output that you got (please use code tags).
Close the program.
The 328P MCU on the Uno has only one serial port which is exposed on pins 0 and 1 (marked Rx and Tx). However, this port is also used by the UART chip to provide the serial over USB connection. Generally, serial can only be used by two devices at a time, which while uploading a program would be the USB UART and the MCU. Anything else connected to the pins can potentially interfere with the transmission of data.
Moreover, if the pins used for serial Tx/Rx are re-configured to be used as a GPIO input or output (which they can be) this will override the function of the serial port. For this reason, re-configuring pins 0 and 1 for GPIO is generally to be avoided. If a sketch that re-configures these pins has been uploaded (apparently so because you "either set the pin1 as DIR or STEP"), then you might have to restore the board to normal operation using the 6-pin ICSP header using a suitable programmer, for example a USBASP programmer or another Arduino board set up as an ISP programmer. Once you have set up the programmer, you would need to burn the bootloader using the Tools->Burn Bootloader option in the IDE. After you have done that, you should be able to program the board again over USB, but you will need to assign a different pin for DIR or STEP!
No clue what happen but I had it unplugged yesterday and when I came home and plugged it in, it was showing up as /dev/ttyACM0 and I flashed an empty project on it.
You need to be careful when using motors and motor drivers with the Arduino. Making a wrong connection for just a fraction of a second can damage the uno