Skip to main content
13 votes
Accepted

avrdude: Error: butterfly programmer uses avr_write_page() but does not provide a cmd() method

After much frustration in trying things, I came across this forum post which advised: sudo systemctl stop ModemManager.service If this works, disable the service from starting next boot: sudo ...
Tom Hale's user avatar
  • 431
6 votes
Accepted

How do I read from /dev/ttyACM0 in Linux without a terminal emulator?

I have had very similar problems with my yun(shields) and I found the stty command to be very crucial for a good working. I use following command and it works with mega and due on the yun stty -F ${...
jantje's user avatar
  • 1,382
6 votes

In Linux, how to identify multiple Arduinos connected over USB?

On Ubuntu 16.04 (and maybe previous versions or other distribs too), you can do: > ls /dev/serial/by-id which displays (on my box where an Arduino UNO is connected): usb-Arduino__www.arduino....
jfpoilpret's user avatar
  • 9,132
5 votes

Arduino IDE Permision Denied For Upload, Ubuntu

Arduino has added a script to the install to fix this problem. I found it after much annoyance trying to get it to work with all these suggestions. In the arduino-1.8.8-linuxarm.tar.xz file that you ...
Ticktok's user avatar
  • 51
4 votes

Installing Arduino IDE on Linux

The problem here is that there are multiple flavours of linux each with their own installation and package management systems - Aptitude, Yum, EMerge, etc. It is not easy for Arduino to keep up with ...
Majenko's user avatar
  • 105k
4 votes

In Linux, how to identify multiple Arduinos connected over USB?

This is quite easy! You have to customize the ftdi chips firmware and add an udev rule: First, get ftdi_eeprom via apt-get or from the sources. Identify your device via lsusb and get the id: lsusb ...
4 votes
Accepted

Maintaining Arduino on Ubuntu 14.04

If you want to get maintained (automatically updated) version of Arduino IDE then you install if from a package repository with its dependencies e.g. using apt-get: sudo apt-get update sudo apt-get ...
talamaki's user avatar
  • 156
4 votes

My Arduino isn't showing up on my computer. What should I do?

Linux Getting Arduino and Arduino-like boards working properly under Linux can be a troublesome task if you are not familiar with how Linux works. So I am going to introduce you to some of the basic ...
4 votes
Accepted

I change ESP8266 baudrate and now it doesn't work

Have you tried setting the web editor's baud rate to both the old and the new values? I ask because the CIOBAUD command has been obsolete for a while now so, depending on the age of your device, it ...
JRobert's user avatar
  • 15.3k
4 votes

Arduino IDE Permision Denied For Upload, Ubuntu

As mentioned on the official guide for Linux, you need to run sudo usermod -a -G dialout <username> with the <username> replaced with the username of your system. After running this, log ...
m.umar's user avatar
  • 145
4 votes

Linux avrdude: stk500_getsync()

There are two common ways of resetting an Arduino into the bootloader: For UART based boards (Uno, Mega2560 etc) just opening the port resets the board For USB based boards (Micro, etc with the 32u4 ...
Majenko's user avatar
  • 105k
3 votes

How do I turn off the blinking cursor/caret in the Arduino IDE?

Note: does not work with version 1.6.11. Works with 1.0.6 Open the Arduino IDE Go to File Then go to Preferences At the bottom of the page is the file location you can enter to set additional ...
samson's user avatar
  • 31
3 votes

Baud rate Arduino/Linux

Setting baud rates in a C program isn't a trivial task. You need to use the low-level open() instead of fopen() and act on the returned file descriptor with ioctl() or tcsetattr() / tcgetattr(). The ...
Majenko's user avatar
  • 105k
3 votes
Accepted

easy_install pip on Arduino Yun fails

Found this Arduino Forum Thread helpful. # wget \ https://pypi.python.org/packages/source/p/pip/pip-6.0.8.tar.gz#md5=2332e6f97e75ded3bddde0ced01dbda3\ --no-check-certificate # easy_install pip-6.0....
Shan-Desai's user avatar
3 votes
Accepted

ESP8266 as wifi Card?

No, you can't. All you have is a UART interface through a USB to UART adaptor. It can only ever be a UART. The best you could get would be to write a program to run on the NodeMCU that did the ...
Majenko's user avatar
  • 105k
3 votes
Accepted

Selected board depends on 'arduino' core (not installed)

I needed to install the boards package for: Arduino AVR Boards Under Tools -> Board -> Board Manager
Tom Hale's user avatar
  • 431
3 votes
Accepted

Baudrate is set to 9600 automatically even if specifying a different value

The whole concept of Baud Rate with USB communication is completely meaningless. There is no such thing as "baud rate" over USB. What there is, and what you are confusing with "baud rate" is a ...
Majenko's user avatar
  • 105k
3 votes
Accepted

Upload already compiled code on Linux CLI without arduino-cli

Use avrdude. The command format is simple, assuming you have installed it from the Linux repositories: avrdude -carduino -patmega328p -P/dev/ttyUSB0 -b115200 -Uflash:w:/path/to/project.bin.hex:i ...
Majenko's user avatar
  • 105k
3 votes

How to get arduino to always be connected as /dev/ttyUSB0 and with chmod 0777?

Have you considered not trying to force ttyUSB0 but instead creating a symlink to whatever tty is assigned? Your software then just uses the symlink. A problem with forcing a particular tty is what if ...
user133831's user avatar
3 votes

How to distinguish identical Arduinos from Linux?

You can't change the USB information programmatically. The fact that you're referencing /dev/ttyUSB* means you have hardware USB interface chips (CH340, PL2302, FT232, etc) which you can't change from ...
Majenko's user avatar
  • 105k
2 votes

Arduino disconnecting at upload

A pretty detailed troubleshooting guide is available at arduino.cc. Besides the checks already mentioned in the question and the answers, it is recommended to check that serial.download_rate is set to ...
Dmitry Grigoryev's user avatar
2 votes

What does it take to compile Linux on Arduino, if at all possible?

There is a board called the pcDuino that can run multiple variants of Linux such as Debian, Ubuntu, Open WRT, LEDE, Raspian PIXEL (just to mention a few). This board is not a native Arduino, rather ...
sa_leinad's user avatar
  • 3,188
2 votes

Compile `.hex` files on Linux

How are you creating your .hex files? Where are they coming from? Are you cross compiling the .hex files on some other machine and then transferring them to the Linux box? What is your Arduino ...
Greenonline's user avatar
  • 2,959
2 votes

Compile `.hex` files on Linux

You can download the Arduino IDE for Linux from the Arduino site. As mentioned in Where are the hex files compiled by Arduino?, in the Arduino program: go to Arduino -> Preferences and then select ...
ARK's user avatar
  • 514
2 votes

Can I specify custom port names in the Arduino IDE on Linux?

Think the other way. If your device has a port name, that is not supported by the IDE, you can create an additional (static) symlink /dev/USBx that you can identify and select in the arduino IDE. ...
moestly's user avatar
  • 347
2 votes
Accepted

Can I specify custom port names in the Arduino IDE on Linux?

Consider using a device name of form ttyUSBnn, where nn is fairly large. For example, in /dev you could say sudo ln -s ttyUSB1 ttyUSB77 Then, ttyUSB77 shows up in the IDE's ports list and can be ...
James Waldby - jwpat7's user avatar
2 votes
Accepted

How do I turn off the blinking cursor/caret in the Arduino IDE?

As suggested by Gerben, you can go into Preferences and check the box "Use external editor": Now you can edit with your favourite editing program. With this option active the IDE will show your ...
Nick Gammon's user avatar
  • 38.2k
2 votes
Accepted

Installing Arduino IDE on Linux

I ran the following to Install the latest Arduino IDE on my Raspberry Pi3. This should work all Pi models. This release enables you to run the Arduino Software (IDE) on many of the mini PC boards ...
Milliways's user avatar
  • 1,645
2 votes
Accepted

Arduino IDE on Linux - directory not found

You need to extract the archive file first. $ cd ~/Downloads $ tar -Jxvf arduino-1.8.0-linux64.tar.xz
Majenko's user avatar
  • 105k
2 votes

My Arduino isn't showing up on my computer. What should I do?

Windows Ok, the first thing you need to do is identify the kind of board you have. I don't mean is it an Uno, a Mega, or one of Intel's brief forays into the Arduino world - I mean what kind of USB ...

Only top scored, non community-wiki answers of a minimum length are eligible