Dhoni Ari Nugroho
Published

JORAN (Alat Pemancing Ikan)

Alat ini memudahkan ketika seoarng pemancing ikan di laut yang membawa 5/ lebih alat pancing, sehingga mudah dideteksi joran yang disambar

IntermediateShowcase (no instructions)3 hours292
JORAN (Alat Pemancing Ikan)

Things used in this project

Hardware components

Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
Vibration Sensor
×1
LED (generic)
LED (generic)
×1
Buzzer
Buzzer
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Baterai
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Skema

Skema yt5gz4noaf

Code

JORAN / Alat Pancing Ikan

C/C++
int vib_pin = 7;
int suara = 12;
int led = 13;
void setup() {
  pinMode(vib_pin, INPUT);
  pinMode(suara, OUTPUT);
  pinMode(led, OUTPUT);
}

void loop() {
  int val;
  val = digitalRead(vib_pin);
  if (val == 1)
  {
    digitalWrite(suara, HIGH);
    delay(500);
    digitalWrite(suara, LOW);
    delay(100);
    digitalWrite(led, HIGH);
    delay(500);
    digitalWrite(led, LOW);
    delay(100);
  }
  else
    digitalWrite(suara, LOW);
    digitalWrite(led, LOW);
}

Credits

Dhoni Ari Nugroho

Dhoni Ari Nugroho

0 projects • 1 follower
DHONI ARI NUGROHO NIM 15650010

Comments

Add projectSign up / Login