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

Hot answers tagged

24

From the documentation: Open Terminal and type: ls -l /dev/ttyACM* you will get something like: crw-rw---- 1 root dialout 188, 0 5 apr 23.01 ttyACM0 The "0" at the end of ACM might be a different number, or multiple entries might be returned. The data we need is "dialout" (is the group owner of the file). Now we just need to add our ...


4

When you open the serial monitor (or even just go to the serial port menu) the serial port is opened. When the serial port is opened the DTR line is asserted. This is the method that the Arduino uses to reset so that you can access the bootloader and upload a new sketch. Every time you open the serial port - through whatever means you choose - you reset ...


4

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 install arduino arduino-core However, this way you get a very old version (currently 1.0.5). Obviously, it is not updated too often if at all. If you already ...


3

All you need to do is add yourself to the dialout group as described in the answer by Ignacio Vazquez-Abrams. This is done in the terminal by typing: sudo usermod -a -G dialout $USER You do not need to use chmod. This gives read/write access to all users and not just members of the group. Before attempting to connect, however, you must logout and log back ...


3

Edit or add library.properties to that folder so that you specify a valid category. Example of library.properties: name=WebServer version=1.0 author=Cristian Maglie <c.maglie@example.com>, Pippo Pluto <pippo@example.com> maintainer=Cristian Maglie <c.maglie@example.com> sentence=A library that makes coding a Webserver a breeze. paragraph=...


3

In the directory for the new core create a new platform.txt and give the entry for compiler.path the location of the bin/ directory containing the Atmel toolchain. compiler.path=/path/to/bin/


2

I have a Micro and Ubuntu 14.04. I have successfully uploaded sketches to the Micro using IDE 1.0.6. Thus that combination should work. I suggest you get the sketch compiling OK. Then hold down the Reset button on the Micro, start an upload with your other hand, and release Reset when it says "Uploading". Try typing lsusb | grep Arduino I found with a ...


2

Easiest way I've found to do this purely from the terminal: stty -f /dev/cu.usbmodemfa121 1200;stty stop /dev/cu.usbmodemfa121;./bossac -i -d --port=tty.usbmodemfa121 -U false -e -w -v -b Blink.cpp.bin -R Swap out the serial device for whatever /dev you are using; in Linux you may have to sudo to get direct access to the device. This is assuming you are in ...


2

from the IDE's menu you can activate the verbose upload (and compile) mode, that will print all the command executed; Probabibly what you miss is the necessity to open the serial at 1200baud, that will trigger the reboot and consequent bootloader's start ont DUE chip, and bossac need to find the bootloader. see autoReset edit: i've now a pc with a physical ...


2

There should be a command like 'id' or something similar that will show the groups you are a member of. Run that to check that the new groups have taken effect – you may need to log out and then log back in. The other thing to check is the group owner of the device itself (in /dev). that will also need to match the group you assigned to yourself. Also make ...


2

There is nothing special about it, it just works. I strongly suggest to remove everything that is Arduino related from the repositories and have a minimal Java environment installed. It is no problem to have a gcc build environment together with Arduino though. Even a gcc-avr build environment from the repositories is no problem. But don't install any ...


2

Therefore I tried the newest version of the Arduino software from the arduino homepage. The package version I am using is 1:1.0.5+dfsg2-2, the other I tried was 2:1.0.5+dfsg2-4. That is not the newest version. I think the more recent versions of the IDE are more robust - after all they have fixed reported bugs. Try 1.6.5 or 1.6.7. The version 1.0.5 ...


2

In my case, i would tell you compile/upload your sketch Arduino on Ubuntu 17.10 like my owned. I have Wemos D1 MINI Board based ESP8266 chip. Define ttyUSB0 port like my Owned. Before upload your sketch, you need Arduino Package for Ubuntu in Arduino Official Pages or if you have Arduino Package on your Aptitude Source list / PPA Repository of Arduino ...


2

As sated above you need to "Edit or add library.properties to that folder so that you specify a valid category." This link has some good info on the structure of the file: https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification From that link: library.properties file format The library.properties file is a key=value properties list....


1

According to this page on Arduino for Linux there ought to be some devices at /dev/ttyACM* That is not the case. On a "traditional" Arduino board, like the Uno, you have two chips: the main MCU which you program, and a USB interface chip, which is pre-programmed with code to present a CDC/ACM interface to the computer (which it then creates a /dev/ttyACMx ...


1

From: https://www.bountysource.com/issues/29336127-one-wire-library-still-in-v2-3-0-causes-useless-warning The Arduino library manager still defaults to v2.3.0, which causes the IDE to raise the following warning on compile : WARNING: Category '' in library OneWire is not valid. Setting to 'Uncategorized' Solution (In 1.6.12): Sketch -> Include ...


1

You should solder the resistor (in case you do not have the skills I reccomend doing into a proffessional, a professional close to me managed to solder it with a cost about 5 euros) and then hardware reset the atmega8u2 the documentation mentions. For quick reference just look over in this image: In the dmesg you will see similar the same or message: [ ...


1

You have to add use your user to the dialout group, as explained in the installation instructions for Linux. sudo usermod -a -G dialout $USER Then log out and back in again.


1

Do a ls -l /dev/tty* in a console screen and then search for the tty* port that your arduino is connected to (mine is ttyACM0), you will see which group (my group is dialout for Ubuntu 17.10) you need to add yourself to in order to be able to access your arduino via the Serial Monitor.


1

type "tail -f /var/log/kern.log" into a terminal window. This will show you the messages that the kernel produces. Hit enter a few times so you can easily see when something new is added. Now remove (hmm. easier if you do that before typing the command above). and insert the arduino. Now your kernel should produce a few messages stating it found a new ...


1

You may find that there is a process on Ubuntu that is grabbing the newly created CDC/ACM port as soon as it enters programming mode. With the Leonardo and Micro you have a CDC/ACM port while it's running, and when the board resets to enter programming mode that CDC/ACM port is destroyed and an entirely new one (hopefully under the same name) is created. ...


1

I have been meaning to try the Arduino IDE on Ubuntu. (I'm on Ubuntu 14.10 LTS and using an original Arduino UNO). From the top, I installed using: sudo apt-get update && sudo apt-get install arduino arduino-core (from: http://playground.arduino.cc/Linux/Ubuntu) It's the older version 1.0.5 and loaded up the basic sketch. It worked straight off ...


1

The default serial port it shows up in for me is ttyACM0 You can set this as your default port, so when you open the IDE with sudo arduino ~ $ vim ~/.arduino/preferences.txt change the value for serial.port serial.port=ttyACM0


1

In that ancient version of the IDE? You don't. You download and install the latest version of the IDE from the Arduino website, then use the Boards Manager to install the packages that include the Ardiuno 101.


1

Ok, I solved it. First I stopped using the IDE serial monitor as Majenko suggested, and focused on getting the Arduino readings within the python code. Besides trying to use the python code and the IDE monitor at the same time (which apparently you can do in Ubuntu but not in OSX), the original problem was that my python code was not clearing the serial ...


1

Information on a “Serial Port Setup” page at fedorahosted.org should be adequate to sort the problem manually. Here are a few snippets from that page, along with notes about application to the current problem. • Use command ls -l /dev/ttyUSB* to find out the serial port's group. For example, on my Ubuntu system that shows crw-rw---- 1 root dialout 188, 0 ...


1

I had same problem and I think I have solved it. In boards.txt file, I had: ############################################################## diecimila.name=Arduino Duemilanove or Diecimila diecimila.upload.tool=avrdude diecimila.upload.protocol=arduino diecimila.bootloader.tool=avrdude diecimila.bootloader.low_fuses=0xFF diecimila.bootloader.unlock_bits=...


1

After following the advice left by Majenko, I went to https://www.arduino.cc/en/Guide/Linux and followed the instuctions at the bottom of the page: If you get an error Error opening serial port ... you need to set serial port permission. Open Terminal and type: ls -l /dev/ttyACM* you will get something like: crw-rw---- 1 root dialout 188, 0 5 apr 23.01 ...


1

On Ubuntu 18.04, the only way I found the Arduino IDE installation to work straight out of the box, was using the documentation steps described here: https://www.arduino.cc/en/Guide/Linux/ No changing groups nor permissions required.


1

ok. It seems that the Ubuntu arduino package does not contain this library. The file Time.zip has to be downloaded from the authors website: http://www.pjrc.com/teensy/td_libs_Time.html and added in the Arduino GUI menue bar: Sketch -> Import Library -> Add Library


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