We’re rewarding the question askers & reputations are being recalculated! Read more.

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
25
votes
6answers
13k views

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

Is it possible to run Linux on Arduino? If yes, what steps and limitations need to be considered? If not, what are the limitations that prevent this?
19
votes
3answers
19k views

Arduino program only works when run as root

Uploading simple sketches seems to work when I run the Arduino program as root (sudo). I would like to run it as a regular user. Has anyone faced the same problem before and fixed it? Here is what I ...
17
votes
7answers
8k views

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

If I have multiple Arduinos connected over USB to a Linux computer, and they show up as /tty/ACM0 /tty/ACM1 /tty/ACM2 How can I identify which Arduino is which without connecting to them via ...
14
votes
2answers
3k views

Yún boot from SD card

I have an Arduino Yún, and it only has 16mb flash onboard for the Linux. I was wondering of it is possible to put a bootloader on the flash that uses the sd card as a rootfs? i want to be able to do ...
5
votes
1answer
1k views

Can I compile c/c++ code on the linux part of the Arduino Yun?

Can I compile c/c++ code on the linux part of the Arduino Yun? How complete is the linux part of the Arduino Yun? Can I scp some c/c++ code onto the Atheros AR9331 chip compile it? Or must I first ...
5
votes
1answer
24k views

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

I just bought an Arduino Due and I'm having trouble reading from a simple serial IO program. I have a SparkFun RedBoard which is like an Uno. With that, I just ran a "stty" command to configure the ...
5
votes
2answers
980 views

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

On Linux, if you have more than one USB TTY device, the USB port name (/dev/ttyUSBx) changes every time one is plugged in, and there's no easy way to know the new name without going and looking ...
5
votes
2answers
161 views

How to differentiate between 2 Micros on Linux

I have 2 Arduino Micro based devices that I want to use on my Ubuntu Linux machine. I need them to have unique serial ports. Unfortunately, both have the same serial number which makes ...
5
votes
1answer
150 views

In Linux, how do I get this Arduino library to work

In Linux Fedora 20 Arduino I want to use the Timer library from here, from which I have downloaded the folder Timer-master.zip, but, when I try to import it, I get the Arduino message that it cannot ...
5
votes
2answers
50 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 ...
4
votes
5answers
8k 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 ...
3
votes
3answers
1k views

Use an Arduino as a user interface for the computer

I wanted to use either Arduino Mega or Uno as a form of an interface between me and the computer. I want to apply it to the following scenario; if I press a button on a circuit board I want it to ...
3
votes
1answer
2k views

Arduino IDE on Fedora

I'm using Fedora_21_MATE.img on a Raspberry Pi. Installing the Arduino IDE 1.0.6 using these commands, taken from Arduino On Pi. Those instructions are for Raspbian, I assume, so changing for Fedora, ...
3
votes
5answers
2k views

Can I control analog IO pins using Yun Linux

2 days back I bought Arduino Yun. I'm able to flash Led on 13 pin. And I'm able to flash Led on Bread board connected to A0. I'm able to run linux commands. Now I want control A0 pin using Linux/...
2
votes
1answer
437 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; ***...
2
votes
4answers
4k views

Arduino disconnecting at upload

This problem doesn't seen to be very common around the Arduino community. Basically, what's happening is that as soon as I click the upload button, the Arduino IDE tells me that my Arduino board is ...
2
votes
2answers
872 views

How get assembler/preprocessed code for library

I am using https://github.com/sudar/Arduino-Makefile project with https://github.com/ladislas/Bare-Arduino-Project to compile my Arduino projects from Linux command line. I put as much as possible ...
2
votes
2answers
1k views

Maintaining Arduino on Ubuntu 14.04

I used to use Arduino on Windows but I changed to Linux last week and I was wondering how to have a maintained version of the Arduino terminal: Indeed, I'm not sure my version is quite recent: The ...
2
votes
1answer
765 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 ...
2
votes
1answer
1k views

Arduino Serial Communication

I'm trying to communicate with the Arduino through the serial port to fade the LED. There's the code running on my Arduino: #include <aJSON.h> aJsonStream serial_stream(&Serial); const ...
2
votes
0answers
778 views

Cant open serial monitor on linux

I have a pro micro and I'm running the IDE on linux. The IDE easily recognises that my board is on /dev/ttyACM0 so i can flash programs on to it. I am testing the following code void setup() { ...
2
votes
1answer
2k views

communicating with arduino over serial via terminal

I'm attempting to write data over a serial line to the arduino, however I don't want to use the arduino IDE but rather use the command line. In order to do this I have the following commands: $...
2
votes
0answers
837 views

Connecting Arduino Yun to wifi with 802.1X authentication

Is it possible to connect the Yun to wifi using 802.1X authentication? 802.1X is WPA2-Enterprise that uses a username and password (per user) instead of one password (for every user). I don't see a ...
1
vote
3answers
6k views

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

You have your spangly new Arduino board, you've installed the software, and you plug it in. Nothing happens. Diagnosing problems may be a little tricky for the beginner, so what hoops should you go ...
1
vote
2answers
2k views

Installing Arduino IDE on Linux

I downloaded arduino-1.8.4-linux32.tar.xz and ran install.sh as outlined (the very sketchy instructions) in https://www.arduino.cc/en/Guide/Linux This seemed to work OK, so I removed 354M of what I ...
1
vote
1answer
2k 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 ...
1
vote
2answers
1k views

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

I just purchased a RedBoard, knowing that it would work on Linux, and knowing that it could allow me to easily interface with some electronics project. I am aware of the ino command line tool but I ...
1
vote
2answers
2k views

How to get Baite Pro Mini working?

I have recklessly bought the Baite Pro Mini and I find it difficult to upload any program. I use Ubuntu Linux, but out of frustration I am ready to install Windows, if it is necessary. I've read the ...
1
vote
2answers
834 views

Baud rate Arduino/Linux

I'm trying to communicate some numbers between a Linux program and my Ardunino Uno. To this end I wrote a C++ program which somehow contains: #include <stdio.h> int a,b; a = 1; b = 2000; File*...
1
vote
1answer
23 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 ...
1
vote
1answer
78 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 ...
1
vote
1answer
821 views

Can the Mouse library scroll horizontally?

I'm using the Mouse library with an ATmega32U4 connected to Linux via USB. I would like to issue horizontal scroll commands, but the Mouse.move() function only seems to accept X movement, Y movement ...
1
vote
1answer
126 views

Arduino IDE on Linux - directory not found

I have Ubuntu 14.04 installed on a chromebook through crouton. I'm trying to install the Arduino IDE. I figured out that I needed the 64-bit version of the IDE and downloaded it. Then, I started ...
1
vote
1answer
82 views

Does restarting Yún configuration mess up Arduino or its SD card?

I noticed something odd recently - a Yún, that was working previously, wouldn't connect. After logging in to the web setup, setting the access point and password (which hadn't changed), and save &...
1
vote
1answer
89 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 ...
1
vote
1answer
343 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 ...
1
vote
1answer
298 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 ...
1
vote
1answer
784 views

ESP2866 and java ServerSocket

So I have an application that runs on the Arduino that passes info over serial. I'm using a ESP2866 to make it wireless. Arduino->Serial->Esp2866->SocketConn->JavaSocket->Console I ...
1
vote
1answer
59 views

Adruino Yun's Linux environment not working

I was recently given an Arduino Yun board from my university. I am able to upload sketch to the board, and it seems to function properly. However, I am unable to see the Linux booting up. When I want ...
1
vote
1answer
396 views

How do I use Microduino (mCookie) on Linux?

I'm interested in getting the mCookie working in Linux — specifically, in Fedora 23. The Arduino IDE (version 1.6.4) is already available. I'm very familiar with Linux, fine with C, and completely new ...
1
vote
1answer
566 views

Compilation error using arduino-mk on arch Linux (undefined reference to __dso_handle)

I'm compiling a simple sketch that reads values from an analog input and activates a buzzer on a digital input. working on an Arduino uno. the sketch compiles and runs fine on windows and arch linux ...
1
vote
2answers
417 views

How is AVR Assembly in Eclipse or at Linux command line done?

I'm trying to learn AVR development in C and Assembly for the Arduino Uno (Atmel 328p microprocessor) in Linux. I've found many good guides on how to install and setup the AVR plugin for Eclipse, ...
1
vote
2answers
2k views

Arduino UNO R3 USB not working

I have a problem with my Arduino Uno board, its not mounting in my linux machine but its power is On and L light is glowing. It was working before. After I tested buttons with 12V external supply. I ...
1
vote
1answer
1k 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 ...
1
vote
0answers
34 views

problem with communication between Linux and microcontroller [closed]

Hello Arduino community, I am new to the Arduino community and would like to ask for help (I work on a Arduino TIAN). Indeed, since 2 3 weeks I try through simple programs to understand the operation ...
1
vote
0answers
1k 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 ...
1
vote
0answers
52 views

Using the Tian handshake line

I've set up a Yun before to use the handshake line on pin 7 (thanks to this great forum post) and now I have a new project that I want to do something similar with the Tian. Based on the schematic, it'...
1
vote
0answers
192 views

Gui Scale on Linux HD display

I use Fedora 24/25 and now Ubuntu 17.04 Gnome on my Lenovo Yoga 900, which has an extremely high pixel density display. For these situations on Mac and Windows, I find a gui.scaling option in the ...
1
vote
0answers
485 views

Arduino Due works perfectly on Windows but doesn't on Linux (SAM-BA operation failed)

I've been working with the Arduino Due for a project, we have been setting up these Arduinos with an ARM Board that hosts a Linux System with Busybox that connects to the Arduino. Recently I got ...
1
vote
0answers
771 views

Cannot access “tools>Serial port” on Kali Linux

I just got my Arduino UNO delivered and I wanted to see if it's working properly or not. I tried following this page to create a simple program and the program compiled successfully. But when I ...