Arduino Smart Lamp project
ARDUINO_HOME=~/Downloads/arduino-1.6.7
ARDUINO_WORKSPACE=~/Arduino
FRITZING_HOME=~/Downloads/fritzing-0.9.2b
JAVA_HOME=/usr/local/java/jdk1.7.0_75
REPO=~/SmartLamp
export PATH=$PATH:/home/piotrek/Downloads/android-sdk-linux/platform-tools:$ARDUINO_HOME:$FRITZING_HOME
export PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
enableUSB()
{
USER=`whoami`
sudo usermod -a -G dialout $USER
sudo chmod a+rw /dev/ttyACM0 || sudo chmod a+rw /dev/ttyACM1
}
alias enableusb='enableUSB'
alias arduino='$ARDUINO_HOME/arduino'
alias fritzing='$FRITZING_HOME/Fritzing'
$ arduino
$ fritzing
~/Arduino
+-libraries
+-sketches
avrdude: ser_open(): can't open device "/dev/ttyACM0":
Device or resource busy ioctl("TIOCMGET"): Inappropriate ioctl for device
Solution:
$ enableusb
Lamp ID | Arduino ID | Branch | Version |
---|---|---|---|
Luna | UNO | Lamp-Luna | 1.0.0 |