update:
I uninstalled the portable package of Arduino IDE, completely, and installed the IDE using sudo apt install arduino
. yes, I verified that my Nano was plugged in, the status on the bottom right says Arduino Nano w/ ATmega328 on COM1
, but sadly the IDE won't explain to me why the Tools > Serial Port
section is still unavailable.
Also, the online version doesn't recognize the board even though it's plugged in and configured in the settings to look for a "Nano". I also used a reliable USB Hub I use for my drawing tablet, because that was one of the remedies to troubleshoot the lack of connection, and because the Hub seems to do a lot of good things around here.
end of update
I received an Arduino Nano as a gift a couple months ago and had to place it on a shelf as a mere dust collector, because it was not as easy as I thought it would be to get it working. I plugged the Nano into my computer with a cable, and attempted to load an example "blink" program and it gives errors saying "no device connected" in the errors.
It does light up and flash, so I know it is receiving power, so how do I specify where the Nano is? I am familiar with the /dev category and how to use code in Linux, but I don't know how to communicate with the Arduino, as in, know which block device the Nano is in /dev
now that Thomas has brought to my attention the "port" setting in the drop down menus, I just realized that the port is greyed out. that could be a good detail in troubleshooting this issue.
-
arduino.cc/en/Guide/Linux#toc6Juraj– Juraj ♦2020年04月25日 04:17:08 +00:00Commented Apr 25, 2020 at 4:17
-
Hey I just thought of an interesting Idea: what if I can use something like moserial to see a raw output from the Arduino? maybe then, I can see if it is at least talking to the laptopJaz– Jaz2020年04月27日 01:05:17 +00:00Commented Apr 27, 2020 at 1:05
-
I'm having the same issue on my installation with Ubuntu 22.04. My Arduino Mega 2560 was working normally, but the Arduino Nano was not recognized. I managed to solve it with this answer here about "CH34x USB to serial converter chip": askubuntu.com/a/1048980/1631587Renan Aryel– Renan Aryel2022年09月13日 20:47:49 +00:00Commented Sep 13, 2022 at 20:47
3 Answers 3
I have to sadly conclude that this issue posted was for nothing. the board I was using most likely has an underlying defect (of all odds, the 45 boards my teacher was using, he gives me 1 defect board? believable.) rendering the board inoperable. I plugged the board into an entirely different laptop, downloaded and installed a full IDE for it, ran it normally, ran it in Administrator, downloaded and installed the plugin, ran the Online IDE to test that... same exact issues: greyed out serial port settings, and no device detected upon plugging in.
again, I apologize for this being a waste of time. I wished this was not the case and that I could make some pretty cool stuff during this quarantine mess.
I salute to all you programmers out there.... and wish you all good luck in your own endeavors in Arduino.
-
Is any of this helpful? github.com/ElectricRCAircraftGuy/eRCaGuy_dotfiles/blob/master/…. If the Arduino runs fine on another computer, I promise you it is capable of running fine on Linux too.Gabriel Staples– Gabriel Staples2020年04月27日 09:37:09 +00:00Commented Apr 27, 2020 at 9:37
In the Arduino IDE, the mcu will show up in Tools > Port
.
Your Arduino Nano will probably be visible at /dev/ttyUSB0
or /dev/ttyUSB1
following whatever is already plugged on USB. Make sure to select it.
Select Nano
in Tools > Board
.
Last step is Verify/Compile
your code (^R), then Upload
(^U).
This link sounds to be a good read to start.
-
+1 that is a legitimate answer... and that also brings up the kicker. I forgot about the exact errors and issues I was having, because this was months ago, but it's all flooding back to me. the board is next to me now. the green light is steady, and the port drop-down is greyed out/ not clickable. what do I do?Jaz– Jaz2020年04月25日 02:22:58 +00:00Commented Apr 25, 2020 at 2:22
If you have managed your Linux security well, a normal user may not have access to the port where Arduino is plugged into. If so, try from terminal with "sudo arduino". (At least works for me)
-
in my conclusion, i stated I ran it both normally, and in super user mode (sudo arduino), but gave no results.Jaz– Jaz2020年05月04日 15:41:04 +00:00Commented May 4, 2020 at 15:41
-
I hate to be that person who kicks down every answer and return it with another issue. i am not doing this for attention. I legitimately don't know what is wrong.Jaz– Jaz2020年05月04日 15:42:23 +00:00Commented May 4, 2020 at 15:42
-
actually the more i think of it, i think the cable was not made for data transfer. it was a cable i found in a pile of wires so it may just be a charge cable for something else. I will try to find one guarenteed for data transfer and see if it gives better resultsJaz– Jaz2020年05月04日 15:44:08 +00:00Commented May 4, 2020 at 15:44