You are not logged in.

#1 2025-01-04 19:02:25

ziomarco
Member
From: italy
Registered: 2018-09-09
Posts: 31

arduino ide

Happy new year! smile
i'm  installing arduino-ide-2.3.4-1 on my laptop.
After installation I started arduino-ide and plugged in a nodemcu via usb cable.
Serial monitor complains that 'Could not connect to /dev/ttyUSB0 serial port'
so after compiling a sketch it's impossible to load the executable.
Arduino site suggests to add an udev rule like:  SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", GROUP="plugdev", MODE="0666
I tried it, also creating the plugdev group (I know it's NOT standard on arch!)
I tried to add my user to root group and plugdev group with no success.
On the contrary on my desktop arduino 1:1.8.19-2 from AUR is been running like a charm for a long time...

Last edited by ziomarco (2025-01-05 00:37:55)

Offline

#2 2025-01-05 16:27:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,601

Re: arduino ide


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2025-01-05 21:40:34

ziomarco
Member
From: italy
Registered: 2018-09-09
Posts: 31

Re: arduino ide

thank for your suggestion ewaller!
That method did the trick!
I was trying with the quick and dirty solution:

chmod a+rw /dev/ttyUSB0 

but yours is definitely a more elegant solution:

/etc/udev/rules.d/01-ttyusb.rules
-----------------------------------------------------
SUBSYSTEMS=="usb-serial", TAG+="uaccess" 

Last edited by ziomarco (2025-01-05 21:45:13)

Offline

Board footer

Powered by FluxBB