You are on page 1of 30

SLOT 2:

PENGATURCARAAN
ARDUINO
(ROBOT PENJAGA AIR
TANAMAN)
PERKONGSIAN KANDUNGAN

01 02 03
MBLOCK 5 MBLOCK 5 ARDUINO UNO
CARA INSTALL MBLOCK 5 FITUR-FITUR DALAM APA ITU
DALAM KOMPUTER MBLOCK 5 MIKROPENGAWAL?

04 05
ARDUINO UNO ROBOT PENJAGA AIR TANAMAN
BAHAGIAN-BAHAGIAN PROSES PEMASANGAN
DALAM ARDUINO UNO LITAR DAN ATURCARA
01

mBlock 5
Cara install mBlock 5 ke dalam
komputer.
What we are working on

1. Buka Google
Chrome
2. Taip mblock dan
tekan search
Retail Residential Hospitality
Mercury is the closest planet Venus has a beautiful name Despite being red, Mars is
to the Sun and the smallest and is the second planet from actually a cold place. It’s full
one the Sun of iron oxide dust
What we are working on

3. Klik pautan pertama

Retail Residential Hospitality


Mercury is the closest planet Venus has a beautiful name Despite being red, Mars is
to the Sun and the smallest and is the second planet from actually a cold place. It’s full
one the Sun of iron oxide dust
What we are working on

4. Klik download pada menu.


5. Klik download for windows.

Retail Residential Hospitality


Mercury is the closest planet Venus has a beautiful name Despite being red, Mars is
to the Sun and the smallest and is the second planet from actually a cold place. It’s full
one the Sun of iron oxide dust
6. Install mblock 5 hingga selesai.
What we are working on

Retail Residential Hospitality


Mercury is the closest planet Venus has a beautiful name Despite being red, Mars is
to the Sun and the smallest and is the second planet from actually a cold place. It’s full
one the Sun of iron oxide dust
6. Install mblock 5 hingga selesai.
What we are working on

Retail Residential Hospitality


Mercury is the closest planet Venus has a beautiful name Despite being red, Mars is
to the Sun and the smallest and is the second planet from actually a cold place. It’s full
one the Sun of iron oxide dust
6. Install mblock 5 hingga selesai.
What we are working on

Retail Residential Hospitality


Mercury is the closest planet Venus has a beautiful name Despite being red, Mars is
to the Sun and the smallest and is the second planet from actually a cold place. It’s full
one the Sun of iron oxide dust
02

mBlock 5
Fitur-fitur dalam mBlock
Stage area:
Anda boleh mempersembahkan reka
bentuk anda , menyambungkan peranti ,
dan menetapkan sprite dan latar belakang
anda di sini
Blocks area:
Anda boleh menemui blok yang anda
perlukan mengikut kategori dan warna
di sini
Scripts area: Anda
boleh menyusun program anda
dengan menyeret blok ke kawasan ini
03

Arduino UNO
Apa itu mikropengawal?
APA ITU
MIKROPENGAWAL?
• Merupakan mikrokomputer dalam satu
litar bersepadu (Integrated Circuit)
• Ia mengandungi komponen-komponen
yang diperlukan oleh satu sistem
komputer dalam hanya satu cip
tunggal.
04

Arduino UNO
Bahagian-bahagian dalam
Arduino UNO
Jack Kuasa:
-Digunakan untuk sambungan
kuasa
ke papan serasi Arduino UNO.

-Voltan masukan yang


dicadangkan : 7 12V
Bekalan Kuasa (Power Supply):
-5V, 3.3V dan GND boleh
digunakan untuk memberi kuasa
kepada litar luaran.

-VIN adalah pin untuk voltan


masukan.
Voltan masukan yang
dicadangkan : 7 12V
Pin Input Analog (Analog
Input):
-Terdapat 6 pin input analog
yang terdiri daripada A0,
A1, A2, A3, A4, dan A5
Port USB (USB Port):
-Berkomunikasi dengan komputer.

-Memuat naik program


( upload ) kedalam papan serasi
Arduino UNO.

-Membekalkan kuasa kepada papan


serasi Arduino UNO, dengan voltan
masukan adalah 5V sahaja.
Butang Reset (Reset Button):
-Menetapkan semula papan
serasi Arduino UNO apabila
ditekan.
Pin Input/Output Digital (Digital I/O):
-Terdapat 13 pin I/O digital (0-13).

-Pin 0 dan 1 juga adalah RX dan TX


yang boleh digunakan untuk
komunikasi siri.

-Pin 3, 5, 6, 9, 10 dan 11 juga adalah


pin PWM yang diwakili symbol ~.
05

Robot Penjaga
Air Tanaman
Proses memasang litar dan
aturcara.
https://docs.google.com/document/d/1B2FTdRmdhCHRJ
ddWO-F9fWK574z8nhlU5KAgndGzClg/edit?usp=sharing
Sambungan Servo Motor

Warna Motor Servo ke Arduino

Coklat (Perang) GND

Merah 5V/ VCC

Kuning/ Jingga SIGNAL (S) / PIN


Sambungan Pembaz Piezo

Pin Arduino Kaki Pembaz Piezo

GND -

SIGNAL (PIN PWM) +/S


Sambungan LED

Pin Arduino Kaki LED

GND - (katod)

SIGNAL / PIN + (anod)


Sambungan Sensor Ultrasonik

Pin Arduino Kaki Ultrasonik

GND GND

Signal(S) / PIN Echo

Signal(S) / PIN Trig

Power/ V Vcc
Contoh kod untuk arduino
Contoh sambungan menggunakan breadboard

About the project


Venus has a beautiful name and is the second planet
from the Sun. It’s terribly hot, even hotter than Mercury,
and its atmosphere is extremely poisonous. It’s the
second-brightest natural object in the night sky after the
Moon

You might also like