kopson / SmartLamp

Arduino Smart Lamp
1 stars 0 forks source link

SmartLamp

Arduino Smart Lamp project

Environment setup for Ubuntu 12.04

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 IDE

$ arduino

$ fritzing

~/Arduino
    +-libraries
    +-sketches

Sublime-Stino alternative IDE

Troubleshooting

avrdude: ser_open(): can't open device "/dev/ttyACM0": 
Device or resource busy ioctl("TIOCMGET"): Inappropriate ioctl for device

Solution:

$ enableusb

Stable code releases

Lamp ID Arduino ID Branch Version
Luna UNO Lamp-Luna 1.0.0

Links

  1. Arduino home page
  2. Arduino tutorials
  3. Fritzing home page
  4. Arduino tutorial - nettigo
  5. Arduino tutorial - forbot
  6. Arduino projects