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
28
votes
6answers
17k 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
8answers
9k 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 ...
19
votes
3answers
21k 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 ...
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

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; ***...
5
votes
1answer
30k 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
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
2answers
1k 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
197 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
154 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
187 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
11k 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

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 ...
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
4answers
5k 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
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 ...
2
votes
2answers
1k 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
1answer
84 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 ...
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
644 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 ...
2
votes
1answer
3k 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, ...
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
2k 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 ...
2
votes
0answers
891 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
0answers
60 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'...
2
votes
0answers
539 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 ...
2
votes
0answers
843 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 ...
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
862 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
8k 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
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
3k 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
3k 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
1answer
319 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 ...
1
vote
1answer
246 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 ...
1
vote
2answers
984 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
31 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
1k 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); ...
1
vote
2answers
1k 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
143 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
2k views

connection between Arduino Uno with nRF24L01 and notebook with wireless card

My project intend to command an Arduino UNO by my notebook without cable. I thought to use a RF Nordic nRF24L01 cabled on an Arduino UNO, and to use the wireless card of my notebook to send command to ...
1
vote
1answer
85 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
2answers
2k views

Arduino Uno R3 USB is not working

I have a problem with my Arduino Uno board. It's not mounting in my Linux machine, but its power is on and the LED light is glowing. It was working before. After I tested buttons with an 12 V ...
1
vote
1answer
126 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 ...
1
vote
1answer
235 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
485 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
415 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
837 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
72 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 ...