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 ...
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....
5
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 ${...
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 ...
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
...
Community wiki
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 ...
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 ...
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 ...
Community wiki
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 ...
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 ...
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 ...
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 ...
3
votes
Recovering from lost USB connection (Leonardo to Raspberry Pi)
The USB devices are created dynamically. You might find this question and answer from the SE Raspberry Pi helpful: How to force rescan of USB serial devices?.
You can use the dmesg(8) command on the ...
3
votes
Accepted
How to differentiate between 2 Micros on Linux
The USB VID, PID and Serial Number are all programmed into the chip when you upload your sketch. The VID and PID are tied to the board, and the serial number is always the same regardless of which ...
3
votes
Accepted
Arduino Uno R3 USB is not working
You could try to flash the firmware of the USB controller.
General steps for Arduino R3 are:
Put the Arduino in DFU mode (the R3 does not require soldering for that)
Flash the firmware using:
dfu-...
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 ...
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....
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 ...
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
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 ...
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
...
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 ...
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 ...
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 ...
2
votes
Accepted
ttyACM0 no such file or directory On Ubunutu 14.04
Ok, it sounds like there is an issue with the ATMega(8/16)U2 chip or its surroundings. It might just need its firmware refreshing (which can be done with another Arduino as a programmer) or it might ...
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 ...
2
votes
Accepted
Does restarting Yún configuration mess up Arduino or its SD card?
It sounds like your SD card has likely failed. Try connecting it to a computer with an SD card reader. If it works at all, back it up immediately if you have files you wish to keep. Then try reading ...
2
votes
Accepted
connection between Arduino Uno with nRF24L01 and notebook with wireless card
Absolutely no. Can you connect your bluetooth headset to the wireless router? No because even if they share the same band they "speak" different protocols. So why could you do that with the nRF24L01?
...
2
votes
Accepted
Compilation error using arduino-mk on arch Linux (undefined reference to __dso_handle)
I can't say I fully understand what is going on, but it seems that if you add:
void * __dso_handle;
You may be able to eliminate one of the problems. You might try the same trick with __cxa_atexit ...
2
votes
Accepted
How to wait Arduino ready with ANY method?
Again, you're not waiting for the bootloader to complete before sending your text:
port.open(argv[1], std::fstream::in | std::fstream::out);
// Board resets and enters bootloader
port << argv[...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
linux × 114serial × 26
arduino-uno × 21
arduino-ide × 20
usb × 14
arduino-yun × 13
ubuntu × 10
uploading × 8
esp8266 × 5
c × 5
arduino-mega × 4
arduino-due × 4
avrdude × 4
ide × 4
fedora × 4
arduino-nano × 3
c++ × 3
atmega328 × 3
communication × 3
arduino-micro × 3
python × 3
compile × 3
programmer × 3
baud-rate × 3
programming × 2