instalasi raspberry pi

16
1. Instalasi raspberry pi (NOOB) a. Pengenalan Raspberry Pi b. Instalasi raspbian c. Konfigurasi Raspberry Pi (raspi-config) Saat pertama kali instalasi, akan diminta konfigurasi awal expand-rootfs berfungsi untuk memaksimalkan kapasitas SD Card yang digunakan save konfigurasi

Upload: rezka-bunaiya-prayudha

Post on 26-Dec-2015

46 views

Category:

Documents


1 download

DESCRIPTION

Instalasi dasar Raspberry Pi

TRANSCRIPT

1. Instalasi raspberry pi (NOOB)a. Pengenalan Raspberry Pib. Instalasi raspbianc. Konfigurasi Raspberry Pi (raspi-config)

Saat pertama kali instalasi, akan diminta konfigurasi awal

expand-rootfs berfungsi untuk memaksimalkan kapasitas SD Card yang digunakansave konfigurasi

Ukuran layar

d. Networking- Wired (Ethernet )- Wireless Adapter

Command line tools

$ sudo nano /etc/network/interfaces

auto lo

iface lo inet loopback

iface eth0 inet dhcp

allow-hotplug wlan0

auto wlan0

iface wlan0 inet dhcp

wpa-ssid "ssid"

wpa-psk "password"

auto lo

iface lo inet loopback

iface eth0 inet dhcp

auto wlan0

allow-hotplug wlan0

iface wlan0 inet dhcp

wpa-scan-ssid 1

wpa-ap-scan 1

wpa-key-mgmt WPA-PSK

wpa-proto RSN WPA

wpa-pairwise CCMP TKIP

wpa-group CCMP TKIP

wpa-ssid "My Secret SSID"

wpa-psk "My SSID PSK"

iface default inet dhcp

$ sudo ifconfig

e. Instalasi VNC Server & Client

$ sudo apt-get update$ sudo apt-get install tightvncserver

“Y”

$ vncserver :1

Password untuk akses VNC Server (8 character)

$ vncserver :1

VNC telah berjalan

VNC CLIENTInstall vncclient (vncviewer) salah satunya dari http://realvnc.com

Isikan IP address beserta :1 (channel vnc)Warning unencrypted session vnc

Masukkan password akses vnc

Desktop virtual akan muncul dan tetap terkoneksi selama koneksi jaringan tidak terputus

Selain dari PC, vncviewer juga ada pada android

Autostart vnc server

$ cd /home/pi$ cd .config$ mkdir autostart$ cd autostart

$ nano tightvnc.desktop[Desktop Entry]Type=ApplicationName=TightVNCExec=vncserver :1StartupNotify=false

Tekan ctrl-X kemudian Y untuk menyimpan dan keluar dari text editor nano

Untuk konfigurasi resolusi vnc-server

vncserver :1 -geometry 1440x900

2. Raspberry Pi – Linux Basica. Basic Commad Lineb. Networking

3. Raspberry Pi – C/C++4. Raspberry Pi – Python5. Raspberry Pi – GPIO

Tipe-tipe koneksi GPIO- True GPIO (General Purpose Input Outpu)- I2C Interface

- SPI interface- Komunikasi serial dengan pin Tx dan pin Rx

$ sudo apt-get update

$ sudo apt-get install git

$ git clone http://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code.git

$ cd Adafruit-Raspberry-Pi-Python-Code

$ ls

Install python

$ sudo apt-get update

$ sudo apt-get install python-dev

$ sudo apt-get install python-rpi.gpio

$ sudo nano /etc/modules

i2c-bcm2708 

i2c-dev

$ sudo apt-get install python-smbus$ sudo apt-get install i2c-tools

$ blacklist spi-bcm2708$ blacklist i2c-bcm2708

$ sudo nano /etc/modprobe.d/raspi-blacklist.conf

$ sudo i2cdetect -y 1

6. RaspBerry Pi - USB Modema. Gammu Installb. Sending SMSc. Receiving SMSd. Gammu-SMSD

7. Raspberry Pi – GPRSa. Install sakis3gb. TCP Serverc. TCP Client

8. Raspberry Pi Web Servera. PHPb.

9. Raspberry Pi Database Server (MySQL)a. MySQL Basicb. SHOW DATABASEc. CREATE DATABASEd. CREATE TABLEe. ALTER TABLEf. EMPTY TABLEg. INSERT h. SELECTi. DROP TABLEj. DROP DATABASE

10. Raspberry Pi GPS Tracker (SMS & GPRS)a. Protocolb. code

11. Trackker Server a. PHPb. MySQLc. Google Map

12. PiFM – Raspberry Pi FM Transmitter

$ wget http://omattos.com/pifm.tar.gz$ tax xvf pifm.tar.gz$ cd pifm$ sudo python>>> import PiFm>>> PiFm.play_sound("sound.wav")

Stereo

sudo ./pifm left_right.wav 103.3 22050 stereo

# Example command lines# play an MP3ffmpeg -i input.mp3 -f s16le -ar 22.05k -ac 1 - | sudo ./pifm -

# Broadcast from a usb microphone (see arecord manual page for config)arecord -d0 -c2 -f S16_LE -r 22050 -twav -D copy | sudo ./pifm –

change broadcast frequencysudo ./pifm sound.wav 100.0

13. RTTY

14. Automatic Packet Reporting

15.

Template GPIO

1. Rangkaian/datasheet2. Instalasi library3. Coding/aplikasi4. Trobleshoot