Featured

0 Sensor Gerak Anti Pencuri Berbasis Arduino

Project Untuk Kelompok 7





Komponen yang dibutuhkan :
  • Arduino (Versi apapun) >> 1 Buah.
  • Sensor PIR (passive infrared) HC-SR501 >> 1 Buah.
  • Buzzer >> 1 Buah.
  • Led >> 1 Buah.
  • Resistor 1K >> 1 Buah.
  • Kabel >> Seperlunya.

Wiring :

Source Code :
     /*  
      * Generated Code by Kang Kamal  
      * kangkamal.blogspot.com  
      */  
     int pinLed = 13;  
     int buzzer = 8;  
     int pinPIR = 7;  
     int terdeteksi;  
     void setup() {  
      // put your setup code here, to run once:  
      Serial.begin(9600);  
      pinMode(pinLed, OUTPUT);  
      pinMode(buzzer, OUTPUT);  
      pinMode(pinPIR, INPUT);  
      digitalWrite(pinLed, LOW); //Matikan Led  
      digitalWrite(buzzer, LOW); //Matikan Buzzer  
     }  
     void loop() {  
      // put your main code here, to run repeatedly:  
      terdeteksi = digitalRead(pinPIR);  
      if (terdeteksi == HIGH){ //Jika terdeteksi objek bergerak  
       digitalWrite(pinLed, HIGH); //Nyalakan Led  
       digitalWrite(buzzer, HIGH); //Nyalakan Buzzer  
       delay(2000);  
       digitalWrite(pinLed, LOW); //Matikan Led  
       digitalWrite(buzzer, LOW); //Matikan Buzzer  
      }  
      else{  
       digitalWrite(pinLed, LOW); //Matikan Led  
       digitalWrite(buzzer, LOW); //Matikan Buzzer  
      }  
     }  
    
    Read more

    0 Sensor Pendeteksi Kekeruhan Air Berbasis Arduino

    Project Untuk Kelompok 6




    Komponen yang dibutuhkan :
    • Arduino (Versi apapun) >> 1 Buah.
    • LDR >> 1 Buah.
    • LED ukuran 5mm warna putih terang >> 3 Buah.
    • Resistor 1K >> 2 Buah.
    • Kabel >> Seperlunya.

    Wiring :

    Source Code :
       /*  
        * Generated Code by Kang Kamal  
        * kangkamal.blogspot.com  
        */  
       int led1 = 10;  
       int led2 = 11;  
       int led3 = 12;  
       int pinLDR = A0;  
       int data = 0;  
       void setup() {  
        // put your setup code here, to run once:  
        Serial.begin(9600);  
        pinMode(led1, OUTPUT);  
        pinMode(led2, OUTPUT);  
        pinMode(led3, OUTPUT);  
        digitalWrite(led1, LOW); //Matikan LED  
        digitalWrite(led2, LOW); //Matikan LED  
        digitalWrite(led3, LOW); //Matikan LED  
        delay(1000);  
       }  
       void loop() {  
        // put your main code here, to run repeatedly:  
        digitalWrite(led1, HIGH); //Nyalakan LED  
        digitalWrite(led2, HIGH); //Nyalakan LED  
        digitalWrite(led3, HIGH); //Nyalakan LED  
        data = analogRead(pinLDR);  
        Serial.print("Nilai : ");  
        Serial.println(data);  
        if (data < 150){  
         Serial.println("Air Bening");  
        }  
        if (data > 150 && data < 300){  
         Serial.println("Keruh");  
        }  
        if (data > 300){  
         Serial.println("Sangat Keruh");  
        }  
       }  
      
      Read more

      0 Tong Sampah Otomatis Berbasis Arduino

      Project Untuk Kelompok 5




      Komponen yang dibutuhkan :
      • Arduino (Versi apapun) >> 1 Buah.
      • Sensor Jarak (Ultrasonic) >> 1 Buah.
      • Servo >> 1 Buah.
      • Buzzer >> 1 Buah.
      • Kabel >> Seperlunya.

      Wiring :

      Source Code :

           /*  
            * Generated Code by Kang Kamal  
            * kangkamal.blogspot.com  
            */  
           #include <NewPing.h>  
           #include <Servo.h>  
           #define TRIGGER_PIN 12 // Arduino pin tied to trigger pin on the ultrasonic sensor.  
           #define ECHO_PIN   11 // Arduino pin tied to echo pin on the ultrasonic sensor.  
           #define MAX_DISTANCE 200 // Maximum distance we want to ping for (in centimeters). Maximum sensor distance is rated at 400-500cm.  
           NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE); // NewPing setup of pins and maximum distance.  
           Servo myservo;  
           int buzzer = 6;  
           int jarak = 0;  
           void setup() {  
            // put your setup code here, to run once:  
            Serial.begin(9600);  
            pinMode(buzzer, OUTPUT);  
            digitalWrite(buzzer, LOW); //Set default buzzer >> OFF  
            myservo.attach(10); //Pin Servo  
            myservo.write(0); //Derajat servo di set ke 0  
           }  
           void loop() {  
            // put your main code here, to run repeatedly:  
            delay(20); //Diberikan jeda untuk membaca data dari sensor ultrasonic  
            jarak = sonar.ping_cm();  
            Serial.print("Jarak : ");  
            Serial.println(jarak);  
            if(jarak < 20){  
             digitalWrite(buzzer, HIGH); //Buzzer dinyalakan tanda ada objek mendekat  
             myservo.write(90); //Derajat servo di set ke 90  
             delay(2000);  
             myservo.write(0); //Derajat servo di set ke 0  
             digitalWrite(buzzer, LOW); //Buzzer dimatikan  
            }  
           }  
          
          Read more

          0 Safety Sensor Berbasis Arduino

          Project Untuk Kelompok 4




          Komponen yang dibutuhkan :
          • Arduino (Versi apapun) >> 1 Buah.
          • RFID Reader/Writer RC-522 >> 1 Buah.
          • Servo >> 1 Buah.
          • Buzzer >> 1 Buah.
          • Kabel >> Secukupnya.

          Wiring :

          Source Code :
          Untuk source code nanti langsung praktek di tempat

          Read more

          0 Pengatur Suhu Ruangan Otomatis Berbasis Arduino

          Project Untuk Kelompok 3



          Komponen yang dibutuhkan :
          • Arduino (Versi apapun) >> 1 Buah.
          • Fan (Kipas) seperti pada gambar diatas >> 1 Buah.
          • DHT-11 Sensor Temperature & Humadity >> 1 Buah.
          • Kabel >> Seperlunya.

          Wiring :

          Source Code :
             /*  
              * Generated Code by Kang Kamal  
              * kangkamal.blogspot.com  
              */  
             #include "DHT.h"  
             #define DHTPIN 2    // what pin we're connected to  
             #define DHTTYPE DHT11  // DHT 11  
             int fanPin = 13;  
             float suhu = 0;  
             DHT dht(DHTPIN, DHTTYPE);  
             void setup() {  
              // put your setup code here, to run once:  
              Serial.begin(9600);  
              Serial.println("DHT11 test!");  
              pinMode(fanPin, OUTPUT);  
              digitalWrite(fanPin, LOW); //Set default kipas mati saat program startup  
             }  
             void loop() {  
              // put your main code here, to run repeatedly:  
              suhu = dht.readTemperature();  
              Serial.print("Suhu Ruangan : ");  
              Serial.println(suhu);  
              if (suhu > 30){  
               digitalWrite(fanPin, HIGH); //Kipas nyala saat suhu diatas 30  
              }  
              else{  
               digitalWrite(fanPin, LOW); //Kipas mati saat suhu dibawah 30  
              }  
             }  
            
            Read more
             
            © All 4 You... | Design by Blog template in collaboration with Concert Tickets, and Menopause symptoms
            Powered by Blogger