Skip to content

userdw/RaspberryPi_3_Starter_Kit

Repository files navigation

[ENGLISH] Raspberry Pi 3 Starter Kit

This repository has been created as the companion for Raspberry Pi 3 Starter Kit. Raspberry Pi 3 Starter Kit itself is a suitable start point for both hobbyist and academist alike to start exploring the possibilities offered by this inexpensive mini PC platform. For more information about the product please visit links below:

Initial Configuration

  • The steps below was tested on RASPBIAN BULLSEYE WITH DESKTOP and computer/laptop running Windows OS.
  • Get the latest Raspbian here then follow the steps mentioned here to install Raspbian into the SD card (recommended size is 8 GB or more).
  • Accessing Raspberry Pi 3 remotely through SSH is disabled by default. To enable it insert the SD card to the computer/laptop. Make a file named ssh and place it into the boot partition of the SD card without any extension. After adding the ssh file, insert the SD card into Raspberry Pi 3 then boot it up. It will take some time for first time boot.
  • If you have access to router, you can now plug Raspberry Pi 3's Ethernet port to the router to get an IP address. Check Raspberry Pi 3's IP with IP scanner software, then connect to it using terminal software such as PuTTY.
  • If you don't have access to router, connect Raspberry Pi 3 with keyboard, mouse, and display to get direct access to it. After the Raspberry Pi 3 has been booted up, press Ctrl + Alt + t simultaneously to open terminal window.
  • To change keyboard layout to US, type and run sudo nano /etc/default/keyboard then change XKBLAYOUT="gb" to XKBLAYOUT="us". To save the changes you made, press Ctrl + x then y followed up by Enter. Reboot your Raspberry Pi 3 with sudo reboot command. Skip this step if you're using keyboard with UK layout on Raspberry Pi 3.
  • Raspberry Pi 3 comes with two network interfaces (WiFi and Ethernet), which both of them configured to get IP from router (DHCP). Since there will be some cases where we don't have access to the router, we can configure the Ethernet with static IP. That way we can still access Raspberry Pi 3 from our computer/laptop through Ethernet even if we don't have access to the router. To do this you can type and run sudo nano /home/pi/.bashrc then add sudo ifconfig eth0 192.168.10.250 netmask 255.255.255.0 at the end of the file. This effect will take place when we reboot the Raspberry Pi 3. You can reboot your Raspberry Pi 3 with sudo reboot command. If you're still using a router to remotely access Raspberry Pi 3, you might want to turn it off then reconnect its Ethernet port to your laptop/computer. You can shutdown your Raspberry Pi 3 with sudo halt command.

  • Configure your computer's/laptop's Ethernet port IP address to be in the same subnet mask range as the Raspberry Pi 3, for example 192.168.10.10.
  • Plug Raspberry Pi 3's Ethernet port to your computer's/laptop's then turn it on.
  • Access Raspberry Pi 3 using PuTTY with 192.168.10.250 as IP address and 22 as Port.
  • Sometime there are cases when we need to access Raspberry Pi 3's Desktop remotely. In that case we can make use of VNC (Virtual Network Computing) server inside Raspberry Pi 3. Follow the steps mentioned here to enable the VNC server and connecting to it. You can change Raspberry Pi 3's desktop resolution on VNC viewer by following the steps mentioned here.

The title of the projects which included in this repository are:

Those projects listed above are aimed as introductory to Raspberry Pi 3 programming. We will use Python 3 as the programming language and WiringPi-Python as the Python package to interface with Raspberry Pi 3's I/O pins. WiringPi-Python itself is a Python wrapper for WiringPi library which is written in C. Installation for WiringPi-Python can be done by running the commands below on terminal:

sudo apt-get update
sudo pip install wiringpi

Image below can be used as reference for accessing Raspberry Pi IO Expansion Shield pins with WiringPi library on Raspberry Pi 3.

Advanced Project Lists:

You can clone this repository on your Raspberry Pi running the command below on terminal:

git clone https://github.com/userdw/RaspberryPi_3_Starter_Kit

[BAHASA INDONESIA] Raspberry Pi 3 Starter Kit

Repository ini dibuat sebagai pelengkap dari Raspberry Pi 3 Starter Kit. Raspberry Pi 3 Starter Kit sesuai untuk digunakan sebagai titik awal bagi para penghobi maupun akademisi untuk mulai mengeksplorasi hal-hal yang dapat diwujudkan dengan Raspberry Pi 3. Informasi untuk Raspberry Pi 3 Starter Kit dapat ditemukan pada link-link di bawah:

Konfigurasi Awal

  • Langkah-langkah di bawah telah diuji menggunakan RASPBIAN BULLSEYE WITH DESKTOP dan komputer/laptop dengan sistem operasi Windows.
  • Unduh sistem operasi Raspbian pada link ini, kemudian ikuti langkah-langkah yang terdapat pada link berikut untuk melakukan instalasi Raspbian pada SD card (kapasitas yang disarankan adalah 8 GB atau lebih).
  • Secara default pengaksesan Raspberry Pi 3 secara remote tidak diijinkan. Untuk mengaktifkan akses remote pada Raspberry Pi 3, masukkan SD card ke komputer/laptop. Buat sebuah file dengan nama ssh tanpa ekstensi apapun dan letakkan di partisi boot SD card. Setelah menambahkan file ssh, masukkan SD card ke Raspberry Pi 3 lalu nyalakan.
  • Apabila Anda memiliki akses router, hubungkan port Ethernet Raspberry Pi 3 ke router agar Raspberry Pi 3 mendapatkan alamat IP. Periksa alamat IP Raspberry Pi 3 dengan software IP scanner, lalu akses Raspberry Pi 3 menggunakan software terminal seperti PuTTY.
  • Apabila Anda tidak memiliki akses router, hubungkan Raspberry Pi 3 dengan keyboard, mouse, and layar monitor untuk melakukan akses secara langsung. Setelah Anda memasuki lingkungan desktop Raspberry Pi 3, tekan Ctrl + Alt + t untuk membuka terminal.
  • Untuk mengubah layout keyboard ke US, ketikkan dan jalankan perintah sudo nano /etc/default/keyboard kemudian ganti baris XKBLAYOUT="gb" menjadi XKBLAYOUT="us". Untuk menyimpan perubahan yang telah dilakukan, tekan Ctrl + x kemudian y diikuti dengan Enter. Reboot Raspberry Pi 3 dengan perintah sudo reboot. Lewati langkah ini apabila keyboard yang digunakan memiliki layout UK.
  • Raspberry Pi 3 memiliki dua antarmuka jaringan (WiFi dan Ethernet), dimana keduanya memiliki konfigurasi DHCP secara default. Karena akan ada kasus dimana kita tidak memiliki akses router, kita dapat mengkonfigurasi port Ethernet Raspberry Pi 3 dengan IP statis. Dengan demikian kita masih dapat mengakses Raspberry Pi 3 dengan komputer/laptop kita melalui port Ethernet meskipun kita tidak memiliki akses router. Konfigurasi tersebut dapat dilakukan dengan perintah sudo nano /home/pi/.bashrc yang kemudian diikuti dengan menambahkan sudo ifconfig eth0 192.168.10.250 netmask 255.255.255.0 pada akhir file. Perintah tersebut akan dieksekusi pada saat Raspberry Pi 3 dinyalakan, maka dari itu kita harus melakukan reboot pada Raspberry Pi 3. Reboot Raspberry Pi 3 dapat dilakukan dengan perintah sudo reboot. Apabila Anda masih mengakses Raspberry Pi 3 melalui router, matikan Raspberry Pi 3 terlebih dahulu untuk memindahkan koneksi port Ethernet Raspberry Pi 3 dari router ke komputer/laptop Anda. Anda dapat melakukan shutdown Raspberry Pi 3 dengan perintah sudo halt.

  • Konfigurasikan antarmuka port Ethernet komputer/laptop Anda agar memiliki alamat IP yang berada dalam rentang subnet mask Raspberry Pi 3, sebagai contoh 192.168.10.10.
  • Hubungkan port Ethernet Raspberry Pi 3 ke komputer/laptop Anda kemudian nyalakan.
  • Akses Raspberry Pi 3 melalui PuTTY dengan alamat IP 192.168.10.250 dan port 22.
  • Akan ada saat dimana kita perlu untuk mengakses lingkungan desktop Raspberry Pi 3 secara remote. Untuk hal tersebut kita dapat memanfaatkan server VNC (Virtual Network Computing) yang terdapat di dalam Raspberry Pi 3. Ikuti langkah-langkah yang disebutkan pada link berikut untuk mengaktifkan serta mengakses server VNC. Anda dapat mengatur resolusi desktop Raspberry Pi 3 pada VNC viewer dengan mengikuti langkah-langkah yang terdapat pada link berikut.

Judul-judul proyek yang disertakan pada repository ini adalah:

Proyek-proyek yang terdapat pada poin-poin di atas ditujukan sebagai pengantar pemrograman pada Raspberry Pi 3. Adapun bahasa pemrograman yang akan digunakan adalah Python 3. Agar program Python 3 yang kita buat dapat mengakses pin I/O Raspberry Pi 3, kita membutuhkan WiringPi-Python. WiringPi-Python sendiri merupakan Python wrapper untuk library WiringPi yang dikembangkan menggunakan bahasa C. Instalasi WiringPi-Python dapat dilakukan dengan mengetikkan dan menjalankan perintah-perintah di bawah pada terminal:

sudo apt-get update
sudo pip install wiringpi

Gambar di bawah dapat dijadikan sebagai referensi untuk pengaksesan pin Raspberry Pi IO Expansion Shield dengan library WiringPi pada Raspberry Pi 3.

Daftar Proyek Lanjutan:

Anda dapat mengunduh repository ini pada Raspberry Pi dengan menjalankan perintah di bawah pada terminal:

git clone https://github.com/userdw/RaspberryPi_3_Starter_Kit

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages