Hot answers tagged

36

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 ...


5

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 ...


5

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 ...


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 ...


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 ...


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/


3

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 ...


3

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 ...


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

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

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....


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

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

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

Arduinos have auto-reset circuit to reset the board if new connection is initiated on USB. It is good for convenient upload or to reset for debugging at Serial Monitor open. But it causes troubles if you want to communicate with MCU from computer over USB from command line tools, scripts, python, C++, C#, Java. Always on new connection the board resets. One ...


2

Your program works flawlessly on my Ubuntu 18.04. I would guess that you have a problem with your setup (flaky USB port, permission problems...) rather than the program itself. Still, I would recommend you add some error checking: right after the fopen() call, if (!usb_port) { perror(arduinoPort); return 1; } I would expect you see something like /...


2

The ancient version installed by apt lives in /usr/share/arduino/hardware/arduino/cores/arduino. If you download and unpack a recent version, it will stay wherever you left it. For example, I have an Arduino core in /home/edgar/Downloads/arduino-1.8.10/hardware/arduino/avr/cores/arduino. The installation script doesn't really install those files. It does ...


2

The fact that you're referencing ttyUSB0 tells me you have cheap Chinese clones and not genuine Ardunios. These are usually based around the CH340 USB interface chip which is notoriously unreliable. Your UNO is dead. My supposition is that plugging it in cripples the CH340 driver. Any other boards that you subsequently plug in can not be recognised because ...


2

This is the problem: mosquitto 10436 mosquitto 4u IPv4 46043 0t0 TCP 127.0.0.1:1883 (LISTEN) Your MQTT server is listening only on port 127.0.0.1. That will accept local incoming connections only but nothing from another IP address. The IP 127.0.0.1 is the LOCAL ONLY IP address. You need to reconfigure your MQTT server to listen on ...


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

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

I did what Chris Stratton's comment suggested, To investigate this, edit the output of ls -l /dev/ttyUSB* and ls -l /dev/ttyACM* (done while the board is connected) into your question. Also if you recently changed any group memberships make sure you have logged out (or more simply, rebooted) since. If neither of those is turning up anything, then it ...


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