Arduino compatibility OS

I am currently using Ubuntu OS, and I want to perform projects on arduino. But I am not able to connect my arduino uno to my laptop. And the error is 'Serial port is not connected'
without any port permission denied error. I have uninstall and reinstall it but the error is same.

So, I want to ask which OS Windows or Linux is more suitable to Arduino device?

Hi @choas1210.

You can use whichever operating system you prefer.

Please provide more details about the problem:

What exactly are you doing when you get this error?

Where do you see the error?

Is there any additional text to the error? If yes, please post all of it.

When I am installing the ide of arduino 1.8.19 from its site and then install it. After that i have append the username in dialout group. After that when I am connecting my device and upload it, I am getting the same error, Serial port is not connected.
I have attached the ss.


And my port option is also not there in my ide

Make sure the USB cable is completely plugged into both the Arduino board and the PC.

If that doesn't help, you may have a damaged/defective or charge-only USB cable. Try a different cable.

Either of the above can result in the power connections being made (and thus LEDs lit on the board), but no data connections (and thus no port for the board).

I found that there is no ttyACM driver to run the port of arduino, and I am unable to install it as I am using Ubuntu 22.04LTS OS.
Please help me to install ttyACM driver.

Please provide a detailed description of what makes you think there is no driver.

It shouldn't be necessary to install any driver on Ubuntu. I'll try to provide assistance once I have more information about your situation.

When I am trying to install arduino ide in ubuntu, I am installing the install.sh file and it automatically install it and drivers but In my condition arduino ide is installed by the driver is not installed and that driver name is ttyACM.
And I have tried many time to install but I am going to fail only.

I have tried but not result came.

Again I'll ask you to provide a detailed description of what makes you think the driver is not installed.

Did you ever check the USB cable as I suggested before?

Yes, I checked it but there is no damage because when i tried to run it on Windows it works.
The solution of why the port is not selected thinks to me that there is something missing, and when I google and youtube it there shows that all ubuntu user of arduino has /dev/ttyACM0 after that they are running the ide and have the port.
But when I am trying to find this file on my system then it gives 'No such File or Directory Exist',
So, from that I am thinking that for port option there should the ttyACM and I don't have so, I am trying to install it but not getting success.

Yes, that only, but I don't have ttyACM file and I am unable to solve it and tried many youtube videos.

So if lsusb does not show the device, it's time to run dmesg and check if there are any signs of problems.

That will be a hell of a listing. Maybe better to use dmesg -w.

1 Like

Showing results of lsusb and dmesg:-

Before connecting Arduino:-
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 30c9:0035 Luxvisions Innotech Limited HP TrueVision HD Camera
Bus 001 Device 003: ID 0bda:b00c Realtek Semiconductor Corp. Bluetooth Radio
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

After connecting Arduino:-
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 30c9:0035 Luxvisions Innotech Limited HP TrueVision HD Camera
Bus 001 Device 004: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 001 Device 003: ID 0bda:b00c Realtek Semiconductor Corp. Bluetooth Radio
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

sudo dmesg -w result:-
Device= 2.54
[ 3014.471731] usb 1-2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 3014.471735] usb 1-2: Product: USB2.0-Ser!
[ 3014.512844] usbcore: registered new interface driver usbserial_generic
[ 3014.512866] usbserial: USB Serial support registered for generic
[ 3014.515577] usbcore: registered new interface driver ch341
[ 3014.515598] usbserial: USB Serial support registered for ch341-uart
[ 3014.515622] ch341 1-2:1.0: ch341-uart converter detected
[ 3014.516075] ch341-uart ttyUSB0: break control not supported, using simulated break
[ 3014.516174] usb 1-2: ch341-uart converter now attached to ttyUSB0
[ 3014.554310] input: PC Speaker as /devices/platform/pcspkr/input/input43
[ 3015.095448] input: BRLTTY 6.4 Linux Screen Driver Keyboard as /devices/virtual/input/input44
[ 3015.097259] usb 1-2: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
[ 3015.097806] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[ 3015.097858] ch341 1-2:1.0: device disconnected

I understood the problem is that there is no driver to convert usb to serial converter, but still I am not able to install it from anywhere, i.e ttyUSB driver, So please help.

This has nothing to do with a driver. You can see the problem here:

BRLTTY is a program that interfaces the Linux console with a refreshable braille display to provide accessibility for those with vision impairments. Unfortunately this program does not play nicely with other USB to serial devices like the CH340 chip on your Arduino board (though I believe the BRLTTY developers have actually fixed that in newer versions of BRLTTY).

It seems there are several possible solutions to this, some of which are fairly complex. The most simple seems to be to simply uninstall BRLTTY, as described in this Adafruit tutorial:

https://learn.adafruit.com/ladyadas-learn-arduino-lesson-number-0/install-software-linux#:~:text=uninstall%20brltty%20if%20it%20is%20installed

Obviously this solution will be unacceptable if you use a braille display. Some other solutions are described here which should resolve the conflict between BRLTTY and your Arduino board without the loss of support for braille displays:

Error Solved by uninstalling brltty.
Thank you all for you support to start my journey.

You are welcome. I'm glad it is working now.

Regards,
Per

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.