How to Install CH340 on Ubuntu 22.04

Most linux have built in driver for ch340, except for Ubuntu 22.04.

There’s a couple of things to do if you want to upload code to arduino clone from Ubuntu 22.04.

Install Driver

Go to https://github.com/juliagoda/CH341SER, and follow the instruction. Basically all you need to do is to clone the repo and run make and make load. You might want to sudo them if you get permission denied.

/dev/ttyUSB0

In order to make /dev/ttyUSB0 accesible, you have to sudo apt autoremove brltty.

Set proper permission

Depending on your root permissions, you might want to run sudo usermod -aG dialout $username and sudo chmod a+rw /dev/ttyUSB0.

Verify permission ls -la /dev/ttyUSB0.

Arduino IDE

I use arduino IDE to upload code to my arduino compatible ESP32.

Set proper serial port.

Then everything will work right away.

Comments