Difference between revisions of "Arduino: Instalasi di Ubuntu"

From OnnoWiki
Jump to navigation Jump to search
(New page: ==Instalasi== Untuk menggunakan biasa apt-get install librxtx-java arduino-core arduino Kalau kita ingin compile sudo apt-get install gcc-avr avrdude gcc avr-libc libantlr-java libec...)
 
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
==Instalasi==
 
==Instalasi==
  
Untuk menggunakan biasa
 
  
  apt-get install librxtx-java arduino-core arduino
+
  apt-get install arduino
 +
 
 +
 
 +
===Jika ingin compile Arduino===
 +
 
 +
Siapkan repo java
 +
 
 +
sudo add-apt-repository ppa:webupd8team/java -y
 +
sudo apt-get update
 +
sudo apt-get install oracle-java8-installer
  
 
Kalau kita ingin compile
 
Kalau kita ingin compile
  
  sudo apt-get install gcc-avr avrdude gcc avr-libc libantlr-java libecj-java \
+
  sudo apt-get install gcc-avr avrdude gcc avr-libc \
  libjna-java liboro-java openjdk-6-jdk
+
libantlr-java libecj-java \
 +
  libjna-java liboro-java ant
 +
sudo apt-get install oracle-java8-set-default
 +
 
 +
Sebaiknya pakai openjdk, tapi openjdk-8 belum release
  
 +
# apt-get install openjdk-8-jdk
  
 
==Set Ijin ke Serial Port==
 
==Set Ijin ke Serial Port==
Line 16: Line 29:
  
 
  sudo usermod -a -G tty yourUserName
 
  sudo usermod -a -G tty yourUserName
  sudo usermod -a -G dialout yourUserName  
+
  sudo usermod -a -G dialout yourUserName
 +
 
 +
Contoh
 +
 
 +
sudo usermod -a -G tty root
 +
sudo usermod -a -G dialout root
 +
sudo usermod -a -G tty onno
 +
sudo usermod -a -G dialout onno
 +
 
 +
==Instalasi IDE==
 +
 
 +
Langkah ini dilakukan bagi mereka yang ingin menggunakan IDE versi terakhir.
 +
 
 +
Download source IDE dari
 +
 
 +
https://github.com/arduino/Arduino/releases
 +
https://github.com/arduino/Arduino/archive/1.6.6.tar.gz
 +
https://github.com/arduino/Arduino/archive/1.6.6.tar.gz
 +
https://github.com/arduino/Arduino/archive/1.6.4.zip
 +
 
 +
Persiapan
 +
 
 +
apt-get install ant
 +
 
 +
Lakukan
 +
 
 +
cd ~/Downloads
 +
cp Arduino-1.6.6.tar.gz /usr/local/src
  
 +
sudo su
 +
cd /usr/local/src
 +
tar zxvf Arduino-1.6.6.tar.gz
 +
cd /usr/local/src/Arduino-1.6.6/build
 +
ant clean
 +
ant
 +
ant dist
 +
cd linux
 +
ls *tgz
  
 
==Referensi==
 
==Referensi==
Line 23: Line 72:
 
* http://arduino.cc/playground/Linux/Ubuntu
 
* http://arduino.cc/playground/Linux/Ubuntu
 
* http://www.arduino.cc/playground/Linux/Debian
 
* http://www.arduino.cc/playground/Linux/Debian
 +
* https://www.arduino.cc/en/Main/Software
 +
* https://code.google.com/p/arduino/downloads/list
 +
* https://github.com/arduino/Arduino/archive/1.6.4.zip
  
 
==Pranala Menarik==
 
==Pranala Menarik==
 +
 +
* [[Arduino: Power Supply]]

Latest revision as of 13:19, 16 January 2017

Instalasi

apt-get install arduino


Jika ingin compile Arduino

Siapkan repo java

sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
sudo apt-get install oracle-java8-installer

Kalau kita ingin compile

sudo apt-get install gcc-avr avrdude gcc avr-libc \
libantlr-java libecj-java \
libjna-java liboro-java ant
sudo apt-get install oracle-java8-set-default

Sebaiknya pakai openjdk, tapi openjdk-8 belum release

# apt-get install openjdk-8-jdk

Set Ijin ke Serial Port

Beri ijin akses ke serial port

sudo usermod -a -G tty yourUserName
sudo usermod -a -G dialout yourUserName

Contoh

sudo usermod -a -G tty root
sudo usermod -a -G dialout root
sudo usermod -a -G tty onno
sudo usermod -a -G dialout onno

Instalasi IDE

Langkah ini dilakukan bagi mereka yang ingin menggunakan IDE versi terakhir.

Download source IDE dari

https://github.com/arduino/Arduino/releases
https://github.com/arduino/Arduino/archive/1.6.6.tar.gz
https://github.com/arduino/Arduino/archive/1.6.6.tar.gz
https://github.com/arduino/Arduino/archive/1.6.4.zip

Persiapan

apt-get install ant

Lakukan

cd ~/Downloads
cp Arduino-1.6.6.tar.gz /usr/local/src
sudo su
cd /usr/local/src
tar zxvf Arduino-1.6.6.tar.gz 
cd /usr/local/src/Arduino-1.6.6/build
ant clean
ant
ant dist
cd linux
ls *tgz

Referensi

Pranala Menarik