Motherboard usually used for robotics
Questions tagged [arduino]
35 questions
73
votes
9 answers
How to bind USB device under a static name?
I have an Arduino which sometimes gets bound to /dev/ttyUSB0 and other times to /dev/ttyUSB1, making my script fail.
I do not want to enumerate all the possibilities of where my device could be, but I'd rather have it be bound somewhere static, e.g.…
k0pernikus
- 14,853
- 21
- 58
- 79
9
votes
1 answer
How can I send power on/off signals to a VGA monitor?
I've used some old spare parts to make a sort-of kiosk for my kitchen. It's running OpenBSD and has a simple text based UI (no X Server).
I plan to add an Arduino with a motion sensor that communicates over serial port to my app so that if there is…
ellipse-of-uncertainty
- 225
- 1
- 8
7
votes
4 answers
How to log Serial data with time stamp?
I have an Arduino sending serial data to the computer. I'm able to view the data using a Serial console. But, I want to be able to log it with time stamp.
I want a ready made script or program that logs serial data with time-stamp automatically…
Ufoguy
- 1,210
- 3
- 13
- 21
5
votes
4 answers
How would/do I access/program a remote Arduino through SSH via an intermediate computer?
I have Arduino IDE installed on my laptop and I'd like to program a remote Arduino (Uno) that is connected to a remote machine in the same network, say, for instance, a Raspberry Pi (to which the Arduino Uno would be plugged with the USB cable)…
user86969
4
votes
2 answers
udev rules don't distinguish
I have a Neato XV-* lidar unit, connected with a Sparkfun FTDI chip, and an Arduino Uno. They show up as /dev/ttyUSB0 and /dev/ttyUSB1, unpredictably unassigned.
So, I wrote…
tsbertalan
- 183
- 1
- 9
4
votes
2 answers
How can I make a udev rule using a “sibling” device's serial number (for USB devices with no unique serials)?
I have testing equipment that is made-up of the following:
a USB Hub connected to the master PC, the hub is embedded in the test jig and is used so that we have only 1 USB cable running from the jig to the PC.
an Arduino UNO, connected by USB to…
Memes
- 191
- 8
4
votes
1 answer
Emulate joystick input via numeric input
I have an arduino which gives me numbers from a potentiometer (300-600), device /dev/ttyACM0 baudrate 9600.
I want to use these numbers as a 1-axis joystick.
My system is archlinux and X-Displaymanager.
linuscl
- 542
- 1
- 6
- 22
4
votes
1 answer
How to bind arduino as a fix block-device --- /dev/ttyACM0?
I want to bind my Arduino Mega as /dev/ttyACM0. Sometimes, it turns out to be /dev/ttyACM0 and sometimes as /dev/ttyACM1.
I have taken help from this question and this tutorial
Someone please help me to achieve that as there are only 2 entries in…
Am_I_Helpful
- 701
- 2
- 9
- 24
4
votes
1 answer
Creating/Removing a symbolic link when a USB device connects/disconnects
I'm working with an Arduino board and Matlab under Linux. Matlab, unfortunately, doesn't recognize the Arduino board when is connected unless I create a symbolic link to the Arduino board in /dev by:
sudo ln -s /dev/ttyACM0 /dev/ttyUSBx
Where x is…
Charlie
- 93
- 1
- 6
4
votes
3 answers
Headlessly Compiling and Uploading Arduino Programs on an armhf Platform
I'm currently running my Hardkernel ODROID U2 with the ODUINO One (Arduino Uno R3 & additions) in a headless setup and connect to the ODROID U2 via SSH over LAN.
It is running Debian 7.1 armhf and got all major libraries that are needed to compile…
Big-Blue
- 141
- 5
3
votes
0 answers
Cannot find /bin/avr-g++
I am trying to compile a program with the Arduino IDE but can't because suddenly it returns these errors
Arduino: 1.6.5 (Linux), Board: "Arduino/Genuino Uno"
Cannot run program "{runtime.tools.avr-gcc.path}/bin/avr-g++" (in directory "."): error=2,…
Tom
- 211
- 2
- 3
3
votes
0 answers
Can I connect to Multiple Bluetooth devices using a Bluetooth dongle?
I am using a usb bluetooth adapter on my PI 2 , which communicates to an arduino using HC-06 Bluetooth module. This script runs to connect to that module:
#! /usr/bin/python
import serial
from time import sleep
bluetoothSerial =…
harveyslash
- 301
- 4
- 13
3
votes
2 answers
leaking memory with shell script and tty
I'm running a shell script on a raspberry pi to communicate with a arduino.
Every hour my ram gets used up by about 50 megabytes more.
The script itself just connects to ttyACM0 (the arduino's usb terminal) and then sends a char to it.
The script…
Gotschi
- 133
- 1
- 7
2
votes
3 answers
Arduino: avrdude: ser_open(): can't open device "/dev/ttyACM1": Input/output error
I use arduino ide on arch linux with arduino uno connected via USB.
I am sure that I choosed right port and board in ide menu.
when I run ls -l /dev/ttyACM* I get:
crw-rw---- 1 root uucp 166, 0 14. dub 12.44 /dev/ttyACM0
crw-rw-rw- 1 root uucp 166,…
Jan Černý
- 1,185
- 2
- 24
- 46
2
votes
0 answers
device or resource busy: /dev/ttyUSB0 when not root
I've got an arduino that I use echo "b" > /dev/ttyUSB0 to send data to it. When this command is run via the root user it works correctly.
However a normal user gets an error of:
echo 'b' > /dev/ttyUSB0
zsh: device or resource busy:…
Chris Stryczynski
- 5,178
- 5
- 40
- 80