Light Meter.docx

  • Uploaded by: Ayu Candra Dewi
  • 0
  • 0
  • April 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Light Meter.docx as PDF for free.

More details

  • Words: 126
  • Pages: 4
PROGRAM LIGHT METER UAS MIKROKONTROLER DAN DASAR SCADA

OLEH NAMA

: NI PUTU AYU CANDRA DEWI

NIM

: 1615333001

KELAS

: 5D PLN

PROGRAM STUDI TEKNIK LISTRIK JURUSAN TEKNIK ELEKTRO POLITEKNIK NEGERI BALI 2018

PROGRAM LIGHT METER PADA IDE ARDUINO

//Light Meter #include LiquidCrystal lcd(9, 8, 4, 5, 6, 7); const int LED = 13; void setup() { lcd.begin (16, 2); pinMode(LED, OUTPUT); opening(); } void loop() { int analogValue = analogRead(A1); lcd.clear(); lcd.setCursor(0, 0); lcd.print("Intensity ="); lcd.setCursor(12, 0); lcd.print(analogValue); lcd.setCursor(0, 1); lcd.print("Status LED :"); if (analogValue <= 500) { digitalWrite(LED, LOW); lcd.setCursor(13, 1);

lcd.print("OFF"); } else { digitalWrite(LED, HIGH); lcd.setCursor(13, 1); lcd.print("ON"); } delay(1000); } void opening(){ lcd.setCursor(0,0); lcd.print(" Light Meter"); lcd.setCursor(0, 1); lcd.print(" Ayu Candra Dewi"); delay(3000); lcd.clear(); }

SCHEMATIC RANGKAIAN LIGHT METER

Related Documents

Light
November 2019 52
Light
October 2019 54
Light
May 2020 42
Light
October 2019 60
Light
November 2019 51
Light
May 2020 2

More Documents from "jjaappeesshh"

Mikrokontroler.docx
April 2020 1
Light Meter.docx
April 2020 2
Bab I.docx
April 2020 4
Doc1.docx
April 2020 7