Questions tagged [linux]

Linux is an open source operating system (OS) that is lightweight and runs on many systems. It also runs on the Arduino Yún. There are different "flavors" or "distros" (distributions and changes made by different groups) of Linux such as Ubuntu, Debian, and Fedora.

Filter by
Sorted by
Tagged with
3 votes
1 answer
126 views

Linux avrdude: stk500_getsync()

When trying to flash my genuine arduino micro with avrdude from cmd on a Manjaro system I get the infamous error avrdude: stk500_getsync() attempt x of 10 ... Im adding this post to the many other ...
user avatar
  • 31
1 vote
0 answers
90 views

Can no longer select a port in Arduino IDE on Linux?

I am trying to upload to my Elegoo Mega 2560. I previously had it set up properly with the board installed and selected and the port automatically detected. Now when I go to Tools and hover my mouse ...
user avatar
2 votes
1 answer
222 views

How to build an arduino project with multiple source files?

I'm building an arduino program on linux, using the following Makefile: ARDUINO_DIR = /usr/share/arduino BOARD_TAG = uno ARDUINO_PORT = /dev/ttyAMA0 ARDUINO_LIBS = Wire include /usr/share/arduino/...
user avatar
0 votes
1 answer
101 views

Arduino Uno R3 not recognized by Arduino IDE on Ubuntu 21.04

Now I've been pulling my hair for two days over this one. I've tried everything. I've turned every stone, looked at every search result, and every Arduino Forums thread. The problem is that Arduino ...
user avatar
1 vote
1 answer
49 views

How to distinguish identical Arduinos from Linux?

I have two identical (but with different software) Arduinos connected to Linux box. Their serals are identical # udevadm info -a -n /dev/ttyUSB1 | grep '{serial}' ATTRS{serial}=="0000:00:1d.0&...
user avatar
  • 167
1 vote
2 answers
248 views

Error compiling ESP32 Wrover Module in Linux Virtual Machine

SO i have been getting this error window when i compile a simple code to run different LED lights on the ESP32-S2-SOLA (Wrovere) module Code: int LED_BUILTIN = 2; void setup() { pinMode (...
user avatar
2 votes
0 answers
73 views

Cant upload, port not found error, ubuntu 20.04 LTS

I have installed Arduino IDE on Ubuntu 20.04 LTS. I have installed it from the tar file (ie not from snap) and I have added myself to the dialout and tty groups. When I look at groups I get: adm tty ...
user avatar
  • 21
0 votes
1 answer
571 views

avrdude: ser_open(): can't open device "/dev/ttyACM0": Permission denied Upload error:

I am using arduino-ide2.0.0-beta.7(CLI Version:0.18.3 alpha) on Manjaro Linux and I get this error when uploading sketch to my Arduino Micro: avrdude: ser_open(): can't open device "/dev/ttyACM0&...
user avatar
0 votes
2 answers
135 views

Why echo "R" > /dev/ttyUSB0 doesn't work, but on the same PC Serial Monitor in Arduino IDE works?

I have a strange problem. I am running Ubuntu and NodeMCU si plugged into USB. I have very simple sketch running on it, when it reads letter "R" on serial, it turns ON relay. When I open ...
user avatar
  • 127
1 vote
1 answer
200 views

Arduino IDE 1.8.13 won't launch properly

Recently I have been trying to install Arduino IDE 1.8.13, and I have ran into according problem. When trying to launch Arduino IDE with ./arduino command it shows according error: ./arduino: line 35: ...
user avatar
1 vote
0 answers
71 views

Problem uploading my sketch onto my arduino. Arduino 1.8.13, Linux Ubuntu 20.4

This is my log, honestly no idea what the problem is here, tried updating java, didnt work. Sketch uses 11216 bytes (4%) of program storage space. Maximum is 262144 bytes. Global variables use 2384 ...
user avatar
-1 votes
1 answer
100 views

Efficient workflow/tools for converting color images to hex arrays

I would like to display 65k color animated gifs on my oled. I'm using the adafruit library for https://learn.adafruit.com/096-mini-color-oled Now I need to convert a significant number of images to ...
user avatar
1 vote
2 answers
201 views

Does Linux have software protection on USB? Or has the magic smoke escaped?

I'm making a GUI in Python that will control an Arduino via serial monitor. I have 6 input pins grounded and I'm taking 5V from the board (powered from USB) whilst serial monitoring and everything's ...
user avatar
  • 51
1 vote
1 answer
176 views

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

I've got Debian 10 as OS and for a Project, I need my arduino to always be connected as /dev/ttyUSB0, not any other ttyUSB-number, and I need it to be connected with the 0777 rights for a script to ...
user avatar
1 vote
1 answer
633 views

Digispark uploading not working in KDE Neon (Linux)

I am using KDE Neon and have downloaded the Arduino IDE via the Snap store. It worked well with the ESP8266 and other Arduions. But when I tried to upload a simple sketch or an example sketch to my ...
user avatar
0 votes
1 answer
110 views

I can't run shell commands on Linux through AVR sketch (Arduino Yun)

I'm a little confused with some Process.h methods. I'm trying to run the command "nc 192.168.1.15 9911" to the Linux processor through a sketch. The appropriate netcat listener is waiting on ...
user avatar
1 vote
1 answer
107 views

Arduino as USB HID is slowed down when PC doesn't read events

I have an Arduino Micro that is acting as a HID device for a Linux PC. I use this call to send the HID values: HID().SendReport(1, _values, sizeof(_values)); This works in principle, but I noticed ...
user avatar
  • 175
0 votes
3 answers
913 views

how do i connect my Arduino Nano to my Linux Laptop

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 ...
user avatar
  • 11
-1 votes
1 answer
68 views

Linux not recoginizing Arduino Mega2560 Clone

I have an Elegoo Mega2560 R3. On my Windows machine, it recognizes fine and loads exactly like a Mega2560. I have a System76 laptop running Pop_os!. When I attach the board, I cannot connect to the ...
user avatar
1 vote
1 answer
145 views

Esp8266: Linux - fatal: No names found and undefined reference to `app_entry_custom()'

as Gentoo user I build everything from sources, but I have problem with building toolchain for esp8266. I came up with this script: #!/bin/sh # note: eselect python2 before, because of gcc # ...
user avatar
  • 111
1 vote
0 answers
478 views

How to access native USB port of Arduino Due on Synology NAS?

I would like to flash my Arduino Due from my Synology DS218+ NAS which runs on an Intel 64bit Linux-derivate platform. Previously, I was able to flash a Mega 2560 from this NAS via avrdude and ...
user avatar
1 vote
1 answer
873 views

Upload already compiled code on Linux CLI without arduino-cli

I have a sketch for an Arduino Nano. I'm compiling it on my build server and get these 3 files: project.bin.elf project.bin.hex project.bin.with_bootloader.hex Now I need to be able to upload/flash ...
user avatar
0 votes
2 answers
171 views

Latest news about alternative Arduino IDEs

I simply hate the default Arduino "IDE". On Windows I use Visual Studio Code with the related plugin. Now I have a Ubuntu machine and I'm looking for the definitive IDE. Questions: I'm not sure ...
user avatar
  • 287
1 vote
1 answer
781 views

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

You initialize the serial communication via USB with Serial.begin(baudrate); where baudrate is a long specifying the number of symbols you want to send over the connection per second. You can put ...
user avatar
  • 315
6 votes
2 answers
402 views

Arduino IDE won't use selected port

I'm trying to program an ATtiny85, using an AVRISP mkII programmer (this one: https://www.amazon.de/dp/B00IYNAXUC/ref=cm_sw_r_sms_c_api_i_VXOWDb3H3N5ND) with the Arduino IDE (version 1.8.10 on Ubuntu ...
user avatar
  • 61
0 votes
1 answer
2k views

find out the pin numbers for the Arduino IDE for a certain board - the esp 32

I followed the tutorial I found here https://techtutorialsx.com/2019/03/29/esp32-arduino-controlling-a-dc-motor/ On the very interesting topic controlling a DC motor with the esp32 and Arduino I have ...
user avatar
0 votes
1 answer
61 views

Using Arduino as contact to the world for linux box if app crashes

I am new to this micro controller thingie world so bare with me :) Let me describe a scenario first. Say I have a linux box for house automation embedded in a wall. For security reasons is the only ...
user avatar
  • 3
1 vote
1 answer
51 views

Program Arduino Mega Adk on linux

for a project my supervisor gave me a Arduino Mega ADK board (https://store.arduino.cc/arduino-mega-adk-rev3) and the usb-cable. I only programmed a Atmega32 8 bit controller on linux ubuntu. I have ...
user avatar
0 votes
1 answer
2k views

Cannot connect through /dev/ttyACM0 (Ubuntu 18.04)

I am using an Arduino UNO which worked fine until today. My system: Ubuntu 18.04 Now, the IDE can no longer connect to it: Cannot do any sketch upload Cannot ask for board info No USB ports shown in ...
user avatar
  • 111
0 votes
1 answer
227 views

How can I run the arduino IDE 1.8.9 on debian testing as regular user?

When I start the arduino IDE as regular user from my debian testing system, I get a crash right after the splash screen: Temp/arduino-1.8.9/arduino ...
user avatar
6 votes
1 answer
2k views

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

When trying to flash my sketch, I see many errors such as: ***failed; ***...
user avatar
  • 435
3 votes
1 answer
3k views

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

When I load the Arduino IDE with Board: Pololu A-Star 32U4 selected, I see: The current selected board needs the core 'arduino:arduino' that is not installed. I installed the board manually via ...
user avatar
  • 435
0 votes
1 answer
2k views

Read Serial data from an arduino with c code

I am trying to receive data through the serial port from my SBC (a TS-7200), i am working with linux and handle serial communication using C/C++.To send data to the SBC i'am using an arduino uno. So ...
user avatar
  • 9
1 vote
1 answer
156 views

C: No communication to a connected serial port?

I'm trying to connect to an arduino Mega At2560 unit connected via usb serial port in my linux based PC. Using C code, I'm trying to send and receive simple text strings, just I'm able to send and ...
user avatar
  • 23
1 vote
1 answer
3k views

'"/dev/ttyACM0": Permission denied' on Ubuntu 18.04

I'd like to say that I'm a noob at both Arduino & Ubuntu (have some command line experience). I've set port permissions, joined the relevant groups (tty,uucp,dialout & plugdev). I know that ...
user avatar
1 vote
1 answer
2k views

How to send characters to Arduino serial using Linux command line without tail -f?

I want to send characters to Arduino serial port which makes the Arduino turn on/off an LED. Here is the code: int led_main=8; void setup() { pinMode(led_main, OUTPUT); Serial.begin(9600); ...
user avatar
0 votes
1 answer
757 views

No data sent over serial port in linux c++

TL;DR - I am attempting serial communication with Arduino with code that I found here and nothing gets sent over (Arduino programmed to respond, and I checked that it does with its serial monitor) Hi ...
user avatar
  • 23
0 votes
1 answer
55 views

LED on Arduino does not blink

I successful installed arduino, added me to uucp and lock and loaded cdc_acm module. I use Arduino Uno R3, so I also installed arduino-avr-core. I have Arduino on /dev/ttyUSB0. I configured with: ...
user avatar
  • 1
0 votes
1 answer
106 views

Arduino Yun can no longer send to Dropbox

A long time ago I had set up an Arduino Yun to send files to Dropbox... I tried now and it ends in "killed" when trying to install the latest Dropbox Python module. pip install (six, urllib3, etc etc)...
user avatar
  • 121
2 votes
1 answer
93 views

Which platform is better to debug Arduino memory problems? Linux or Windows?

I am developing a product. I developed every module in the firmware individually. Now I am integrating them but getting memory issues. I am not able to see how the memory is allocated inside the MCU ...
user avatar
  • 179
7 votes
3 answers
15k views

Arduino IDE Permision Denied For Upload, Ubuntu

I am having issues uploading to my Arduino from the IDE on Ubuntu 18.04. The error message I have received is: Arduino: 1.6.10 (Linux), Board: "Arduino/Genuino Uno" avrdude: ser_open(): can't ...
user avatar
  • 71
1 vote
1 answer
491 views

How to run Arduino code on Linux? [closed]

I want to use an MFRC522 module as explained in this video. But is it possible to get around with Arduino and use a TTL to USB converter to connect RC522 directly to my PC running Ubuntu? Using the ...
user avatar
  • 113
1 vote
1 answer
554 views

Change format preferences for Arduino IDE in Linux

How can I change Arduino IDE preferences for formatting? I found the preferences file: <user>/.arduino15/preferences.txt, but there are no lines that control IDE formatting. In Windows there is ...
user avatar
  • 121
1 vote
1 answer
521 views

Arduino Uno with Kubuntu 16.04: Unable to enumerate device

I try to connect my arduino uno R1 in order to program the atmega8u2 but I am not able to do so. When I run sudo dfu-programmer atmega8u2 erase I get the following results: dfu-programmer: no device ...
user avatar
0 votes
1 answer
4k views

avr/io.h No such file or directory error when compiling using avr-gcc

I am trying to use the atmega328p as standalone microchip and program it. I ama using an Arduino Uno as ISP. I have written a simple program to test it however when I try to compile it using avr-gcc ...
user avatar
0 votes
1 answer
3k views

ESP8266 as wifi Card? [closed]

I am very new to arduino and electronics in general. Can i use the NodeMcu Esp8266 as one of those usb wifi dongles? I want to use it as a monitor mode capable wifi card, for my linux laptop.
user avatar
3 votes
1 answer
3k views

No ttyACM0 nor ttyUSB0

I checked several related posts but couldn't solve my problem. I have Antergos Linux : # uname -a Linux biutitude 4.14.11-1-ARCH #1 SMP PREEMPT Wed Jan 3 07:02:42 UTC 2018 x86_64 GNU/Linux The ...
user avatar
  • 31
-1 votes
2 answers
5k views

Serial Monitor not properly interpreting data from my NodeMCU V3

I've just received several LoLin NodeMCUs from a 'cheap Chinese ebay vendor'. They're working well except for the fact that I'm getting garbage in the Arduino IDE Serial monitor. I am able to: Load ...
user avatar
0 votes
3 answers
3k views

easy_install pip on Arduino Yun fails

I want to install pip on the Yún which is running Linino OS but every time I execute the standard steps for opkg i.e. # opkg update # opkg install distribute # okpg install python-openssl # ...
user avatar
1 vote
1 answer
3k views

I change ESP8266 baudrate and now it doesn't work

I was trying some AT commands using the monitor of the Arduino Web Editor with an Arduino Uno and a ESP8266 module. It was working at 115200 bauds but then I changed it with AT+CIOBAUD=19200 and now ...
user avatar