Search what you want

Saturday, March 14, 2015

Compile arduino with terminal in ubuntu

1. instal kelengkapan arduino di ubuntu -$ sudo apt-get install minicom -$ sudo minicom -b 9600 -D /dev/ttyACM0 or -$ sudo apt-get install screen -$ sudo apt-get install avrdude binutils-avr gcc-avr avr-libc gdb-avr (sumber: https://github.com/tttor/trui-bot-prj/tree/master/robot) 2. instal sublime -$ sudo add-apt-repository ppa:webupd8team/sublime-text-2 -$ sudo apt-get update -$ sudo apt-get install sublime-text (sumber: http://askubuntu.com/…/17…/how-do-i-install-sublime-text-2-3) 3. buat makefile - download ws.ziphttps://drive.google.com/file/d/0BxZu_C1Mj4ZRLUE1aXRDeDA4RFU/view?usp=sharing (file yang ada di grup ini) - extract folder tersebut - letakan di home - buka terminal  - $ cd ws (masuk ke folder ws) - $ make master_arduino (membuat folder library dll) - $ make (make hex file) - $ make master_upload (upload hex file to arduino kit)
 For easy access to serial device, add your username to dialout group
go to dev ::
-$cd /dev -$ ll | grep USB
printout : crw-rw---- 1 root dialout 188, 0 Mar 6 20:27 ttyUSB0
dialout = groupName
syntax : -$ sudo usermod -a -G groupName userName
-$ sudo usermod -a -G dialout ardhimaarik ardhimaarik : my username The user will need to logout and log back in to see their new group added.
note: file "makefile" harus di edit, di bagian script port usb yang di gunakan.
~semoga berguna ~

No comments:

Post a Comment