SlideShare une entreprise Scribd logo
1  sur  14
Alat ini bertujuan untuk melakukan
penghematan energi pada terowongan
dengan menggunakan sound
sensor, alat ini berfungsi ketika kereta
mentransfer suara kepada sensor yang
kemudian dilanjutkan ke lampu LED.
Arduino Uno
Arduino Uno merupakan
mikrokontroler berbasis
ATmega328, mempunyai 14
digital input serta otput pin
(enam diantaranya bisa
digunakan sebagai output
PWM), 6 analog input 16 MHz
osilator kristal, koneksi ke
USB, koneksi ke power
supply, dan tombol reset.
Sensor suara

DFR 0034

- Dimensi : 17(l) x 34(p)
- Catu daya : 5VDC
- Chip LM393
- Menggunakan sensor electret
microphone.
- Terintegrasi dengan op-amp
untuk menguatkan sinyal suara
sampai dengan 100x
- Memiliki output data berupa
tegangan analog, sehingga dapat
dengan mudah terhubung ke ADC
ataupun mikrokontroler yang
memiliki internal ADC.
Motor servo
Servo mini yang mempunyai 3 pin
yaitu power, kontrol dan ground.
Sudah
termasuk
3
buah
mounting.

Micro Serve 9g SG90

Spesifikasi:
- Motor type : 3 pole
- Nylon gear
- Top ball bearing
- Operating Voltage: 4.8V~6.0V
- Operating speed: 0.10sec/60
- Output torque: 1.6kg/cm 4.8V
- Rotational range : 180
- Dimensi : 23.1 x 12.2 x 29.0mm
- Berat: 9g
Power
Supply

Kabel

Buzzer /
speaker

Baterai

LED

Miniatur
kereta api
Diagram Skematik

Arduino Uno & Sensor
Suara
Arduino Uno & Motor
Servo
Servo myservo;

// create servo object to control a servo
// a maximum of eight servo objects can be created

int pos ;
// variable to store the servo position
int led = 13;
int volume;

void setup() {
// Serial.begin(9600); For debugging
pinMode(led, OUTPUT);
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop()
{
volume = analogRead(A4); // Reads the value from the Analog PIN A0
/*
//Debug mode
Serial.println(volume);
delay(10);
*/
if(volume>=500)
{
digitalWrite(led, LOW); //Turn ON Led
//delay(500);
/*for(pos = 90; pos < 180; pos += 1) // goes from 0 degrees to 180 degrees
{
*/
// in steps of 1 degree
myservo.write(90);
// tell servo to go to position in variable 'pos'
delay(15);
// goes from 0 degrees to 180 degrees
// waits 15ms for the servo to reach the position
}
else
{
digitalWrite(led, HIGH);
for(pos = 90; pos < 180; pos+=1)
// goes from 180 degrees to 0 degrees
{
myservo.write(pos);
// tell servo to go to position in variable 'pos'
delay(15);
// waits 15ms for the servo to reach the position
// waits
15ms for the servo to reach the position
}
myservo.write(180);
delay(10000);
}
}
Sensor suara akan mendeteksi suara
kereta api yang masuk ke terowongan
yang dihasilkan oleh buzzer sehingga LED
di dalam terowongan menyala dan motor
servo pun akan menggerakkan palang
pintu
http://arduino.cc
http://arduinobasics.blogspot.com
http://www.dfrobot.com
http://www.emartee.com
http://jogjarobotika.com
http://www.servodatabase.com
Thank you
for
your attention!

Contenu connexe

Tendances

Sensor LDR dengan Menggunakan Aktuator Motor Stepper dan Driver IC ULN2004
Sensor LDR dengan Menggunakan Aktuator Motor Stepper dan Driver IC ULN2004Sensor LDR dengan Menggunakan Aktuator Motor Stepper dan Driver IC ULN2004
Sensor LDR dengan Menggunakan Aktuator Motor Stepper dan Driver IC ULN2004Giffari Muslih
 
DDS01 v.1b clr manual book
DDS01 v.1b   clr manual bookDDS01 v.1b   clr manual book
DDS01 v.1b clr manual bookarwicaksono
 
Modul arduino iii
Modul arduino iiiModul arduino iii
Modul arduino iiisutono stn
 
Membuat sensor suhu lm 35 menggunakan at mega
Membuat sensor suhu lm 35 menggunakan at megaMembuat sensor suhu lm 35 menggunakan at mega
Membuat sensor suhu lm 35 menggunakan at megaPriyo Harjiyono
 
Simple Project Arduino 2
Simple Project Arduino 2  Simple Project Arduino 2
Simple Project Arduino 2 Lusiana Diyan
 
DDS01 v.1 clr manual book
DDS01 v.1   clr manual bookDDS01 v.1   clr manual book
DDS01 v.1 clr manual bookarwicaksono
 
17 proyek arduino
17 proyek arduino17 proyek arduino
17 proyek arduinoJilun
 
Modul arduino i ii
Modul arduino i iiModul arduino i ii
Modul arduino i iisutono stn
 
arduino
arduinoarduino
arduinojhcid
 
2 mikrokontroler atmega 8535
2 mikrokontroler atmega 85352 mikrokontroler atmega 8535
2 mikrokontroler atmega 8535Agung Gumelar
 
Control motor dc forward reverse using android
Control motor dc forward reverse using androidControl motor dc forward reverse using android
Control motor dc forward reverse using androidArmansyah 141611039
 
Tugas praktik mikroprosesor 1
Tugas praktik mikroprosesor 1Tugas praktik mikroprosesor 1
Tugas praktik mikroprosesor 1Rioardha
 
Control DC Motor via Bluetooth
Control DC Motor via BluetoothControl DC Motor via Bluetooth
Control DC Motor via BluetoothCuci Cahayanti
 
Presentasi makalah interface & peripheral
Presentasi makalah interface & peripheralPresentasi makalah interface & peripheral
Presentasi makalah interface & peripheralyohanesjati
 
Multivibrator Bistabil by Zaid Abdurrahman Untidar
Multivibrator Bistabil by Zaid Abdurrahman UntidarMultivibrator Bistabil by Zaid Abdurrahman Untidar
Multivibrator Bistabil by Zaid Abdurrahman Untidarzaidabdrrhmns
 

Tendances (17)

Sensor LDR dengan Menggunakan Aktuator Motor Stepper dan Driver IC ULN2004
Sensor LDR dengan Menggunakan Aktuator Motor Stepper dan Driver IC ULN2004Sensor LDR dengan Menggunakan Aktuator Motor Stepper dan Driver IC ULN2004
Sensor LDR dengan Menggunakan Aktuator Motor Stepper dan Driver IC ULN2004
 
DDS01 v.1b clr manual book
DDS01 v.1b   clr manual bookDDS01 v.1b   clr manual book
DDS01 v.1b clr manual book
 
Modul arduino iii
Modul arduino iiiModul arduino iii
Modul arduino iii
 
Membuat sensor suhu lm 35 menggunakan at mega
Membuat sensor suhu lm 35 menggunakan at megaMembuat sensor suhu lm 35 menggunakan at mega
Membuat sensor suhu lm 35 menggunakan at mega
 
Simple Project Arduino 2
Simple Project Arduino 2  Simple Project Arduino 2
Simple Project Arduino 2
 
DDS01 v.1 clr manual book
DDS01 v.1   clr manual bookDDS01 v.1   clr manual book
DDS01 v.1 clr manual book
 
17 proyek arduino
17 proyek arduino17 proyek arduino
17 proyek arduino
 
Modul arduino i ii
Modul arduino i iiModul arduino i ii
Modul arduino i ii
 
arduino
arduinoarduino
arduino
 
2 mikrokontroler atmega 8535
2 mikrokontroler atmega 85352 mikrokontroler atmega 8535
2 mikrokontroler atmega 8535
 
3. op amp
3. op amp3. op amp
3. op amp
 
Control motor dc forward reverse using android
Control motor dc forward reverse using androidControl motor dc forward reverse using android
Control motor dc forward reverse using android
 
Tugas praktik mikroprosesor 1
Tugas praktik mikroprosesor 1Tugas praktik mikroprosesor 1
Tugas praktik mikroprosesor 1
 
Control DC Motor via Bluetooth
Control DC Motor via BluetoothControl DC Motor via Bluetooth
Control DC Motor via Bluetooth
 
Rotary encoder
Rotary encoderRotary encoder
Rotary encoder
 
Presentasi makalah interface & peripheral
Presentasi makalah interface & peripheralPresentasi makalah interface & peripheral
Presentasi makalah interface & peripheral
 
Multivibrator Bistabil by Zaid Abdurrahman Untidar
Multivibrator Bistabil by Zaid Abdurrahman UntidarMultivibrator Bistabil by Zaid Abdurrahman Untidar
Multivibrator Bistabil by Zaid Abdurrahman Untidar
 

Similaire à Project arduino uno with sound sensor

Arduino coding.ppt
Arduino coding.pptArduino coding.ppt
Arduino coding.pptdidikmaarif
 
Automatic egg incubator
Automatic egg incubatorAutomatic egg incubator
Automatic egg incubatorRaosan Lillahi
 
Arduino dasar untuk orang biasa
Arduino dasar untuk orang biasaArduino dasar untuk orang biasa
Arduino dasar untuk orang biasaGo Asgard
 
Draft decoder kelompok 1
Draft decoder kelompok 1Draft decoder kelompok 1
Draft decoder kelompok 1Asistenpelatih
 
Tutorial membuat project termometer dan jam digital menggunakan codevision av...
Tutorial membuat project termometer dan jam digital menggunakan codevision av...Tutorial membuat project termometer dan jam digital menggunakan codevision av...
Tutorial membuat project termometer dan jam digital menggunakan codevision av...Muhammad Kennedy Ginting
 
Latihan Arduino.pptx
Latihan Arduino.pptxLatihan Arduino.pptx
Latihan Arduino.pptxVidi34
 
VOLTAGE DETECTOR WITH VOICE MODE.pptx
VOLTAGE DETECTOR WITH VOICE MODE.pptxVOLTAGE DETECTOR WITH VOICE MODE.pptx
VOLTAGE DETECTOR WITH VOICE MODE.pptxTaufikHidayat8361
 
Praktikum Mikrokontoler 2
Praktikum Mikrokontoler 2  Praktikum Mikrokontoler 2
Praktikum Mikrokontoler 2 Muhammad Taufik
 
Yuk kita kenali arduino uno
Yuk kita kenali arduino unoYuk kita kenali arduino uno
Yuk kita kenali arduino unoKania Sawitri
 
Project instrumentasi kelompok1
Project instrumentasi kelompok1Project instrumentasi kelompok1
Project instrumentasi kelompok1yana cahyana
 
ADC (ANALOG TO DIGITAL CONVERTER).pptx
ADC (ANALOG TO DIGITAL CONVERTER).pptxADC (ANALOG TO DIGITAL CONVERTER).pptx
ADC (ANALOG TO DIGITAL CONVERTER).pptxAlihkwaDanaRangkuti
 
Adc (analog to digital converter)
Adc (analog to digital converter)Adc (analog to digital converter)
Adc (analog to digital converter)akbar010
 
Parking sensor with arduino
Parking sensor with arduino Parking sensor with arduino
Parking sensor with arduino dwipangesticitra
 

Similaire à Project arduino uno with sound sensor (20)

Arduino coding.ppt
Arduino coding.pptArduino coding.ppt
Arduino coding.ppt
 
Automatic egg incubator
Automatic egg incubatorAutomatic egg incubator
Automatic egg incubator
 
ARDUINO_BASIC_TRAINING.ppt
ARDUINO_BASIC_TRAINING.pptARDUINO_BASIC_TRAINING.ppt
ARDUINO_BASIC_TRAINING.ppt
 
Decoder kelompok 1
Decoder kelompok 1Decoder kelompok 1
Decoder kelompok 1
 
ARDUINO_BASIC_TRAINING.ppt
ARDUINO_BASIC_TRAINING.pptARDUINO_BASIC_TRAINING.ppt
ARDUINO_BASIC_TRAINING.ppt
 
Arduino dasar untuk orang biasa
Arduino dasar untuk orang biasaArduino dasar untuk orang biasa
Arduino dasar untuk orang biasa
 
Bu eka bab 7
Bu eka bab 7Bu eka bab 7
Bu eka bab 7
 
Draft decoder kelompok 1
Draft decoder kelompok 1Draft decoder kelompok 1
Draft decoder kelompok 1
 
Soal Ujian Tim Support
Soal Ujian Tim SupportSoal Ujian Tim Support
Soal Ujian Tim Support
 
Tutorial membuat project termometer dan jam digital menggunakan codevision av...
Tutorial membuat project termometer dan jam digital menggunakan codevision av...Tutorial membuat project termometer dan jam digital menggunakan codevision av...
Tutorial membuat project termometer dan jam digital menggunakan codevision av...
 
Latihan Arduino.pptx
Latihan Arduino.pptxLatihan Arduino.pptx
Latihan Arduino.pptx
 
Robot Sumo
Robot SumoRobot Sumo
Robot Sumo
 
VOLTAGE DETECTOR WITH VOICE MODE.pptx
VOLTAGE DETECTOR WITH VOICE MODE.pptxVOLTAGE DETECTOR WITH VOICE MODE.pptx
VOLTAGE DETECTOR WITH VOICE MODE.pptx
 
Praktikum Mikrokontoler 2
Praktikum Mikrokontoler 2  Praktikum Mikrokontoler 2
Praktikum Mikrokontoler 2
 
Yuk kita kenali arduino uno
Yuk kita kenali arduino unoYuk kita kenali arduino uno
Yuk kita kenali arduino uno
 
Project instrumentasi kelompok1
Project instrumentasi kelompok1Project instrumentasi kelompok1
Project instrumentasi kelompok1
 
ADC (ANALOG TO DIGITAL CONVERTER).pptx
ADC (ANALOG TO DIGITAL CONVERTER).pptxADC (ANALOG TO DIGITAL CONVERTER).pptx
ADC (ANALOG TO DIGITAL CONVERTER).pptx
 
Adc (analog to digital converter)
Adc (analog to digital converter)Adc (analog to digital converter)
Adc (analog to digital converter)
 
Sismik
Sismik Sismik
Sismik
 
Parking sensor with arduino
Parking sensor with arduino Parking sensor with arduino
Parking sensor with arduino
 

Dernier

Modul Ajar Bahasa Inggris - HOME SWEET HOME (Chapter 3) - Fase D.pdf
Modul Ajar Bahasa Inggris - HOME SWEET HOME (Chapter 3) - Fase D.pdfModul Ajar Bahasa Inggris - HOME SWEET HOME (Chapter 3) - Fase D.pdf
Modul Ajar Bahasa Inggris - HOME SWEET HOME (Chapter 3) - Fase D.pdfKartiniIndasari
 
Aksi Nyata PMM Topik Refleksi Diri (1).pdf
Aksi Nyata PMM Topik Refleksi Diri (1).pdfAksi Nyata PMM Topik Refleksi Diri (1).pdf
Aksi Nyata PMM Topik Refleksi Diri (1).pdfEniNuraeni29
 
Contoh PPT Seminar Proposal Teknik Informatika.pptx
Contoh PPT Seminar Proposal Teknik Informatika.pptxContoh PPT Seminar Proposal Teknik Informatika.pptx
Contoh PPT Seminar Proposal Teknik Informatika.pptxIvvatulAini
 
Regresi Linear Kelompok 1 XI-10 revisi (1).pptx
Regresi Linear Kelompok 1 XI-10 revisi (1).pptxRegresi Linear Kelompok 1 XI-10 revisi (1).pptx
Regresi Linear Kelompok 1 XI-10 revisi (1).pptxRizalAminulloh2
 
MODUL PENDIDIKAN PANCASILA KELAS 6 KURIKULUM MERDEKA.pdf
MODUL PENDIDIKAN PANCASILA KELAS 6 KURIKULUM MERDEKA.pdfMODUL PENDIDIKAN PANCASILA KELAS 6 KURIKULUM MERDEKA.pdf
MODUL PENDIDIKAN PANCASILA KELAS 6 KURIKULUM MERDEKA.pdfAndiCoc
 
DAFTAR PPPK GURU KABUPATEN PURWOREJO TAHUN 2024
DAFTAR PPPK GURU KABUPATEN PURWOREJO TAHUN 2024DAFTAR PPPK GURU KABUPATEN PURWOREJO TAHUN 2024
DAFTAR PPPK GURU KABUPATEN PURWOREJO TAHUN 2024RoseMia3
 
Bab 7 - Perilaku Ekonomi dan Kesejahteraan Sosial.pptx
Bab 7 - Perilaku Ekonomi dan Kesejahteraan Sosial.pptxBab 7 - Perilaku Ekonomi dan Kesejahteraan Sosial.pptx
Bab 7 - Perilaku Ekonomi dan Kesejahteraan Sosial.pptxssuser35630b
 
CAPACITY BUILDING Materi Saat di Lokakarya 7
CAPACITY BUILDING Materi Saat di Lokakarya 7CAPACITY BUILDING Materi Saat di Lokakarya 7
CAPACITY BUILDING Materi Saat di Lokakarya 7IwanSumantri7
 
PPT Mean Median Modus data tunggal .pptx
PPT Mean Median Modus data tunggal .pptxPPT Mean Median Modus data tunggal .pptx
PPT Mean Median Modus data tunggal .pptxDEAAYUANGGREANI
 
MODUL PENDIDIKAN PANCASILA KELAS 6 KURIKULUM MERDEKA.pdf
MODUL PENDIDIKAN PANCASILA KELAS 6 KURIKULUM MERDEKA.pdfMODUL PENDIDIKAN PANCASILA KELAS 6 KURIKULUM MERDEKA.pdf
MODUL PENDIDIKAN PANCASILA KELAS 6 KURIKULUM MERDEKA.pdfAndiCoc
 
MODUL AJAR IPAS KELAS 3 KURIKULUM MERDEKA.pdf
MODUL AJAR IPAS KELAS 3 KURIKULUM MERDEKA.pdfMODUL AJAR IPAS KELAS 3 KURIKULUM MERDEKA.pdf
MODUL AJAR IPAS KELAS 3 KURIKULUM MERDEKA.pdfAndiCoc
 
OPTIMALISASI KOMUNITAS BELAJAR DI SEKOLAH.pptx
OPTIMALISASI KOMUNITAS BELAJAR DI SEKOLAH.pptxOPTIMALISASI KOMUNITAS BELAJAR DI SEKOLAH.pptx
OPTIMALISASI KOMUNITAS BELAJAR DI SEKOLAH.pptxDedeRosza
 
PELAKSANAAN + Link2 Materi BimTek _PTK 007 Rev-5 Thn 2023 (PENGADAAN) & Perhi...
PELAKSANAAN + Link2 Materi BimTek _PTK 007 Rev-5 Thn 2023 (PENGADAAN) & Perhi...PELAKSANAAN + Link2 Materi BimTek _PTK 007 Rev-5 Thn 2023 (PENGADAAN) & Perhi...
PELAKSANAAN + Link2 Materi BimTek _PTK 007 Rev-5 Thn 2023 (PENGADAAN) & Perhi...Kanaidi ken
 
Modul Projek Bangunlah Jiwa dan Raganya - Damai Belajar Bersama - Fase C.pptx
Modul Projek Bangunlah Jiwa dan Raganya - Damai Belajar Bersama - Fase C.pptxModul Projek Bangunlah Jiwa dan Raganya - Damai Belajar Bersama - Fase C.pptx
Modul Projek Bangunlah Jiwa dan Raganya - Damai Belajar Bersama - Fase C.pptxRIMA685626
 
7.PPT TENTANG TUGAS Keseimbangan-AD-AS .pptx
7.PPT TENTANG TUGAS Keseimbangan-AD-AS .pptx7.PPT TENTANG TUGAS Keseimbangan-AD-AS .pptx
7.PPT TENTANG TUGAS Keseimbangan-AD-AS .pptxSusanSanti20
 
Pengenalan Figma, Figma Indtroduction, Figma
Pengenalan Figma, Figma Indtroduction, FigmaPengenalan Figma, Figma Indtroduction, Figma
Pengenalan Figma, Figma Indtroduction, FigmaAndreRangga1
 
AKSI NYATA TOPIK 1 MERDEKA BELAJAR. PPTX
AKSI NYATA TOPIK 1 MERDEKA BELAJAR. PPTXAKSI NYATA TOPIK 1 MERDEKA BELAJAR. PPTX
AKSI NYATA TOPIK 1 MERDEKA BELAJAR. PPTXIksanSaputra6
 
BAHAN PAPARAN UU DESA NOMOR 3 TAHUN 2024
BAHAN PAPARAN UU DESA NOMOR 3 TAHUN 2024BAHAN PAPARAN UU DESA NOMOR 3 TAHUN 2024
BAHAN PAPARAN UU DESA NOMOR 3 TAHUN 2024ssuser0bf64e
 
TEKNIK MENJAWAB RUMUSAN SPM 2022 - UNTUK MURID.pptx
TEKNIK MENJAWAB RUMUSAN SPM 2022 - UNTUK MURID.pptxTEKNIK MENJAWAB RUMUSAN SPM 2022 - UNTUK MURID.pptx
TEKNIK MENJAWAB RUMUSAN SPM 2022 - UNTUK MURID.pptxMOHDAZLANBINALIMoe
 

Dernier (20)

Modul Ajar Bahasa Inggris - HOME SWEET HOME (Chapter 3) - Fase D.pdf
Modul Ajar Bahasa Inggris - HOME SWEET HOME (Chapter 3) - Fase D.pdfModul Ajar Bahasa Inggris - HOME SWEET HOME (Chapter 3) - Fase D.pdf
Modul Ajar Bahasa Inggris - HOME SWEET HOME (Chapter 3) - Fase D.pdf
 
Aksi Nyata PMM Topik Refleksi Diri (1).pdf
Aksi Nyata PMM Topik Refleksi Diri (1).pdfAksi Nyata PMM Topik Refleksi Diri (1).pdf
Aksi Nyata PMM Topik Refleksi Diri (1).pdf
 
Contoh PPT Seminar Proposal Teknik Informatika.pptx
Contoh PPT Seminar Proposal Teknik Informatika.pptxContoh PPT Seminar Proposal Teknik Informatika.pptx
Contoh PPT Seminar Proposal Teknik Informatika.pptx
 
Regresi Linear Kelompok 1 XI-10 revisi (1).pptx
Regresi Linear Kelompok 1 XI-10 revisi (1).pptxRegresi Linear Kelompok 1 XI-10 revisi (1).pptx
Regresi Linear Kelompok 1 XI-10 revisi (1).pptx
 
MODUL PENDIDIKAN PANCASILA KELAS 6 KURIKULUM MERDEKA.pdf
MODUL PENDIDIKAN PANCASILA KELAS 6 KURIKULUM MERDEKA.pdfMODUL PENDIDIKAN PANCASILA KELAS 6 KURIKULUM MERDEKA.pdf
MODUL PENDIDIKAN PANCASILA KELAS 6 KURIKULUM MERDEKA.pdf
 
DAFTAR PPPK GURU KABUPATEN PURWOREJO TAHUN 2024
DAFTAR PPPK GURU KABUPATEN PURWOREJO TAHUN 2024DAFTAR PPPK GURU KABUPATEN PURWOREJO TAHUN 2024
DAFTAR PPPK GURU KABUPATEN PURWOREJO TAHUN 2024
 
Bab 7 - Perilaku Ekonomi dan Kesejahteraan Sosial.pptx
Bab 7 - Perilaku Ekonomi dan Kesejahteraan Sosial.pptxBab 7 - Perilaku Ekonomi dan Kesejahteraan Sosial.pptx
Bab 7 - Perilaku Ekonomi dan Kesejahteraan Sosial.pptx
 
CAPACITY BUILDING Materi Saat di Lokakarya 7
CAPACITY BUILDING Materi Saat di Lokakarya 7CAPACITY BUILDING Materi Saat di Lokakarya 7
CAPACITY BUILDING Materi Saat di Lokakarya 7
 
PPT Mean Median Modus data tunggal .pptx
PPT Mean Median Modus data tunggal .pptxPPT Mean Median Modus data tunggal .pptx
PPT Mean Median Modus data tunggal .pptx
 
MODUL PENDIDIKAN PANCASILA KELAS 6 KURIKULUM MERDEKA.pdf
MODUL PENDIDIKAN PANCASILA KELAS 6 KURIKULUM MERDEKA.pdfMODUL PENDIDIKAN PANCASILA KELAS 6 KURIKULUM MERDEKA.pdf
MODUL PENDIDIKAN PANCASILA KELAS 6 KURIKULUM MERDEKA.pdf
 
MODUL AJAR IPAS KELAS 3 KURIKULUM MERDEKA.pdf
MODUL AJAR IPAS KELAS 3 KURIKULUM MERDEKA.pdfMODUL AJAR IPAS KELAS 3 KURIKULUM MERDEKA.pdf
MODUL AJAR IPAS KELAS 3 KURIKULUM MERDEKA.pdf
 
OPTIMALISASI KOMUNITAS BELAJAR DI SEKOLAH.pptx
OPTIMALISASI KOMUNITAS BELAJAR DI SEKOLAH.pptxOPTIMALISASI KOMUNITAS BELAJAR DI SEKOLAH.pptx
OPTIMALISASI KOMUNITAS BELAJAR DI SEKOLAH.pptx
 
PELAKSANAAN + Link2 Materi BimTek _PTK 007 Rev-5 Thn 2023 (PENGADAAN) & Perhi...
PELAKSANAAN + Link2 Materi BimTek _PTK 007 Rev-5 Thn 2023 (PENGADAAN) & Perhi...PELAKSANAAN + Link2 Materi BimTek _PTK 007 Rev-5 Thn 2023 (PENGADAAN) & Perhi...
PELAKSANAAN + Link2 Materi BimTek _PTK 007 Rev-5 Thn 2023 (PENGADAAN) & Perhi...
 
Intellectual Discourse Business in Islamic Perspective - Mej Dr Mohd Adib Abd...
Intellectual Discourse Business in Islamic Perspective - Mej Dr Mohd Adib Abd...Intellectual Discourse Business in Islamic Perspective - Mej Dr Mohd Adib Abd...
Intellectual Discourse Business in Islamic Perspective - Mej Dr Mohd Adib Abd...
 
Modul Projek Bangunlah Jiwa dan Raganya - Damai Belajar Bersama - Fase C.pptx
Modul Projek Bangunlah Jiwa dan Raganya - Damai Belajar Bersama - Fase C.pptxModul Projek Bangunlah Jiwa dan Raganya - Damai Belajar Bersama - Fase C.pptx
Modul Projek Bangunlah Jiwa dan Raganya - Damai Belajar Bersama - Fase C.pptx
 
7.PPT TENTANG TUGAS Keseimbangan-AD-AS .pptx
7.PPT TENTANG TUGAS Keseimbangan-AD-AS .pptx7.PPT TENTANG TUGAS Keseimbangan-AD-AS .pptx
7.PPT TENTANG TUGAS Keseimbangan-AD-AS .pptx
 
Pengenalan Figma, Figma Indtroduction, Figma
Pengenalan Figma, Figma Indtroduction, FigmaPengenalan Figma, Figma Indtroduction, Figma
Pengenalan Figma, Figma Indtroduction, Figma
 
AKSI NYATA TOPIK 1 MERDEKA BELAJAR. PPTX
AKSI NYATA TOPIK 1 MERDEKA BELAJAR. PPTXAKSI NYATA TOPIK 1 MERDEKA BELAJAR. PPTX
AKSI NYATA TOPIK 1 MERDEKA BELAJAR. PPTX
 
BAHAN PAPARAN UU DESA NOMOR 3 TAHUN 2024
BAHAN PAPARAN UU DESA NOMOR 3 TAHUN 2024BAHAN PAPARAN UU DESA NOMOR 3 TAHUN 2024
BAHAN PAPARAN UU DESA NOMOR 3 TAHUN 2024
 
TEKNIK MENJAWAB RUMUSAN SPM 2022 - UNTUK MURID.pptx
TEKNIK MENJAWAB RUMUSAN SPM 2022 - UNTUK MURID.pptxTEKNIK MENJAWAB RUMUSAN SPM 2022 - UNTUK MURID.pptx
TEKNIK MENJAWAB RUMUSAN SPM 2022 - UNTUK MURID.pptx
 

Project arduino uno with sound sensor

  • 1.
  • 2. Alat ini bertujuan untuk melakukan penghematan energi pada terowongan dengan menggunakan sound sensor, alat ini berfungsi ketika kereta mentransfer suara kepada sensor yang kemudian dilanjutkan ke lampu LED.
  • 3.
  • 4. Arduino Uno Arduino Uno merupakan mikrokontroler berbasis ATmega328, mempunyai 14 digital input serta otput pin (enam diantaranya bisa digunakan sebagai output PWM), 6 analog input 16 MHz osilator kristal, koneksi ke USB, koneksi ke power supply, dan tombol reset.
  • 5. Sensor suara DFR 0034 - Dimensi : 17(l) x 34(p) - Catu daya : 5VDC - Chip LM393 - Menggunakan sensor electret microphone. - Terintegrasi dengan op-amp untuk menguatkan sinyal suara sampai dengan 100x - Memiliki output data berupa tegangan analog, sehingga dapat dengan mudah terhubung ke ADC ataupun mikrokontroler yang memiliki internal ADC.
  • 6. Motor servo Servo mini yang mempunyai 3 pin yaitu power, kontrol dan ground. Sudah termasuk 3 buah mounting. Micro Serve 9g SG90 Spesifikasi: - Motor type : 3 pole - Nylon gear - Top ball bearing - Operating Voltage: 4.8V~6.0V - Operating speed: 0.10sec/60 - Output torque: 1.6kg/cm 4.8V - Rotational range : 180 - Dimensi : 23.1 x 12.2 x 29.0mm - Berat: 9g
  • 9. Arduino Uno & Motor Servo
  • 10. Servo myservo; // create servo object to control a servo // a maximum of eight servo objects can be created int pos ; // variable to store the servo position int led = 13; int volume; void setup() { // Serial.begin(9600); For debugging pinMode(led, OUTPUT); myservo.attach(9); // attaches the servo on pin 9 to the servo object } void loop() { volume = analogRead(A4); // Reads the value from the Analog PIN A0 /* //Debug mode Serial.println(volume); delay(10); */
  • 11. if(volume>=500) { digitalWrite(led, LOW); //Turn ON Led //delay(500); /*for(pos = 90; pos < 180; pos += 1) // goes from 0 degrees to 180 degrees { */ // in steps of 1 degree myservo.write(90); // tell servo to go to position in variable 'pos' delay(15); // goes from 0 degrees to 180 degrees // waits 15ms for the servo to reach the position } else { digitalWrite(led, HIGH); for(pos = 90; pos < 180; pos+=1) // goes from 180 degrees to 0 degrees { myservo.write(pos); // tell servo to go to position in variable 'pos' delay(15); // waits 15ms for the servo to reach the position // waits 15ms for the servo to reach the position } myservo.write(180); delay(10000); } }
  • 12. Sensor suara akan mendeteksi suara kereta api yang masuk ke terowongan yang dihasilkan oleh buzzer sehingga LED di dalam terowongan menyala dan motor servo pun akan menggerakkan palang pintu