LAMPIRAN I (LISTING PROGRAM)

Similar documents
ARDUINO LEONARDO WITH HEADERS Code: A000057

ARDUINO LEONARDO ETH Code: A000022

Arduino Uno. Arduino Uno R3 Front. Arduino Uno R2 Front

ARDUINO UNO REV3 SMD Code: A The board everybody gets started with, based on the ATmega328 (SMD).

keyestudio Keyestudio MEGA 2560 R3 Board

ARDUINO UNO REV3 Code: A000066

ARDUINO MEGA 2560 REV3 Code: A000067

Introduction To Arduino

ARDUINO MICRO WITHOUT HEADERS Code: A000093

ARDUINO MEGA ADK REV3 Code: A000069

Arduino ADK Rev.3 Board A000069

IDUINO for maker s life. User Manual. For IDUINO Mega2560 Board(ST1026)

IDUINO for maker s life. User Manual. For IDUINO development Board.

Lab 01 Arduino 程式設計實驗. Essential Arduino Programming and Digital Signal Process

MP3V5050, 0 to 50 kpa, Differential, and Gauge Pressure Sensor

Alessandra de Vitis. Arduino

ARDUINO MINI 05 Code: A000087

MP3V5050V, -50 to 0 kpa, Gauge Pressure Sensor

ORDERING INFORMATION # of Ports Pressure Type Device Name

Goal: We want to build an autonomous vehicle (robot)

ARDUINO M0 PRO Code: A000111

Freescale Semiconductor Data Sheet: Technical Data

ARDUINO YÚN Code: A000008

Gambar A.1 Board Arduino

GE-INTERNATIONAL JOURNAL OF ENGINEERING RESEARCH VOLUME -3, ISSUE -5 (May 2015) IF ISSN: ( )

MPXHZ6130A, 15 to 130 kpa, Absolute, Integrated Pressure Sensor

Introduction to Arduino. Wilson Wingston Sharon

Lab-3: LCDs Serial Communication Analog Inputs Temperature Measurement System

Arduino UNO R3. Features of the Arduino UNO:

MPXH6300A, 20 to 300 kpa, Absolute, Integrated, Pressure Sensor

ARDUINO YÚN MINI Code: A000108

How to Use an Arduino

CN310 Microprocessor Systems Design

Arduino Smart Robot Car Kit User Guide

ARDUINO INDUSTRIAL 1 01 Code: A000126

AVR Intermediate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

Cookie User Manual. For NuMicro Edition 1.0. Rev. 1.0 Release: forum.coocox.org.

Smart Wireless water level Monitoring & Pump controlling System

XNUCLEO-F030R8, Improved STM32 NUCLEO Board

Arduino Ethernet. Arduino Ethernet Rev. 2 board front view with optional PoE module. (

EK307 Lab: Microcontrollers

Power Supply, Arduino MEGA 2560, and Stepper Motors Connections

Programmable Device Interface PDI-1 A Versatile Hardware Controller with USB interface

ARDUINO BOARD LINE UP

8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

arduino mega D4F69C4DABCA73DE7282FD2C4B5B8 Arduino Mega / 6

Sanguino TSB. Introduction: Features:

Lesson 5 Arduino Prototype Development Platforms. Chapter-8 L05: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

Academic Year Annexure I. 1. Project Title: Color sensor based multiple line follower robot with obstacle detection

Smart Restaurant Menu Ordering System

Integrated Silicon Pressure Sensor On-Chip Signal Conditioned, Temperature Compensated and Calibrated

Getting to know the Arduino IDE

8:1 Serial Port Expander

Intel Galileo gen 2 Board

SIDruino Author: Ciprian Sufitchi, N2YO

STEPD StepDuino Quickstart Guide

MT2 Introduction Embedded Systems. MT2.1 Mechatronic systems

COL862 - Low Power Computing

<Table of content> <Parts and description> <Circuit board Guide> <Pins> <Basics of Coding> <Intro to Arduino> <Intro> <Downloading Arduino IDO>

Integrated Silicon Pressure Sensor On-Chip Signal Conditioned, Temperature Compensated and Calibrated

ootbrobotics.com Electronics and Robotics LLC

AT42QT101X Capacitive Touch Breakout Hookup Guide

IME-100 ECE. Lab 3. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE,

Farklı Arduino Boardlar

Arduino Dock 2. The Hardware

Breeze Board. Type A. User Manual.

Model OptionsOverviewandDescription. Enhancements for Ultra-high Resistance Measurements

MAXPROLOGIC FPGA DEVELOPMENT SYSTEM Data Sheet

Intelligent Digital Fuel Gauge Along With Engine Locking System Using Arduino

TA0297 WEMOS D1 R2 WIFI ARDUINO DEVELOPMENT BOARD ESP8266

Introduction to Arduino

3.The circuit board is composed of 4 sets which are 16x2 LCD Shield, 3 pieces of Switch, 2

Lab 4 LCDs and Accelerometers

MINITRONICS v1.0 DATASHEET

WAVETEK BLE-WT51822AA/AB. Revision History. Bluetooth low energy Module WT51822AA (256k) /AB (128k) (Bluetooth Low Energy BT4.0) PRODUCT SPECIFICATION

How to Build your own Computer...

ARDUINO PRIMO. Code: A000135

ARDUINO MEGA INTRODUCTION

Display Real Time Clock (RTC) On LCD. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

The Arduino Briefing. The Arduino Briefing

GUIDE TO SP STARTER SHIELD (V3.0)

IME-100 Interdisciplinary Design and Manufacturing

International Journal of Engineering Research ISSN: & Management Technology November-2016 Volume 3, Issue-6

Freescale Semiconductor. Integrated Silicon Pressure Sensor On-Chip Signal Conditioned, Temperature Compensated and Calibrated MPX5010

OPERATION MANUAL - DS-MOD-

Electronics Single Board Computers

Freeduino USB 1.0. Arduino Compatible Development Board Starter Guide. 1. Overview

DEV16T. LCD Daughter board

ATmega32U4 IoT Weather Station

µpad: Microprocessor for Academic Development

Freescale Semiconductor. Integrated Silicon Pressure Sensor On-Chip Signal Conditioned, Temperature Compensated and Calibrated MP3V5050.

Bolt 18F2550 System Hardware Manual

Electronic Brick Starter Kit

Embedded Systems and Kinetic Art. CS5968: Erik Brunvand School of Computing. FA3800: Paul Stout Department of Art and Art History.

Logistics. Embedded Systems. Kinetic Art. This Class. Embedded Systems and Kinetic Art. Kinetic Art

The Arduino Mega 2560 is a microcontroller board based on the ATmega2560 (datasheet). It has 54 digital input/output pins (of which 14 can be used as

BIG8051. Development system. User manual

EZ-Bv4 Datasheet v0.7

MegaPi Born to Motion Control

Lab 3 XBees and LCDs and Accelerometers, Oh My! Part 1: Wireless Communication Using XBee Modules and the Arduino

Transcription:

LAMPIRAN I (LISTING PROGRAM)

#include <LiquidCrystal.h> LiquidCrystal lcd(8, 9, 4, 5, 6, 7); const int numreadings = 10; int readings[numreadings]; // the readings from the analog input int readindex = 0; // the index of the current reading int total = 0; // the running total int average = 0; // the average int inputpin = A1; int sensorvalue = 0; // variable to store the value coming from the sensor const int buzzer = 13,ledPin2 = 1,ledPin3 = 2,ledPin4 = 3,ledPin5 = 11,ledPin6 = 12; void setup() { pinmode(buzzer, OUTPUT); pinmode(ledpin2, OUTPUT); pinmode(ledpin3, OUTPUT); pinmode(ledpin4, OUTPUT); pinmode(ledpin5, OUTPUT); pinmode(ledpin6, OUTPUT); digitalwrite(ledpin6, HIGH); digitalwrite(ledpin5, HIGH); digitalwrite(ledpin4, HIGH); digitalwrite(ledpin3, HIGH); digitalwrite(ledpin2, HIGH); for (int thisreading = 0; thisreading < numreadings; thisreading++) { readings[thisreading] = 0;} lcd.begin(16, 2); lcd.setcursor(0, 0); lcd.print(" Metrologi"); lcd.setcursor(0, 1); lcd.print("angkatan 2014"); delay(1000); lcd.setcursor(0, 0); lcd.print(" Armin"); lcd.setcursor(0, 1); lcd.print(" 142411079 "); delay(2000); lcd.clear(); digitalwrite(ledpin6, LOW); digitalwrite(ledpin5, LOW); digitalwrite(ledpin4, LOW); digitalwrite(ledpin3, LOW); digitalwrite(ledpin2, LOW); digitalwrite(buzzer, LOW); delay(2000);

} void loop() { total = total - readings[readindex]; readings[readindex] = analogread(inputpin); total = total + readings[readindex]; readindex = readindex + 1; if (readindex >= numreadings) { readindex = 0;} average = total / numreadings; int sensorvalue1 = average; float voltage1 = (sensorvalue1 * (5000 / 1023)); float tekanan=(((voltage1/9)*0.145)-2.3)*7; if (tekanan<=0) tekanan=0; lcd.clear(); lcd.setcursor(0, 0); lcd.print("nilai:"); lcd.print(voltage1); lcd.print(" mv"); lcd.setcursor(0, 1); lcd.print("pres:"); lcd.print(tekanan); lcd.print(" Psi"); if(tekanan<28) { digitalwrite(ledpin6, LOW); digitalwrite(ledpin5, LOW); digitalwrite(ledpin4, LOW); digitalwrite(ledpin3, LOW); digitalwrite(ledpin2, LOW); digitalwrite(buzzer, LOW); } else if(tekanan>=28 && tekanan<=29) { digitalwrite(ledpin6, HIGH); digitalwrite(ledpin5, LOW); digitalwrite(ledpin4, LOW); digitalwrite(ledpin3, LOW); digitalwrite(ledpin2, LOW); } else if(tekanan>=30 && tekanan<=31) { digitalwrite(ledpin6, HIGH); digitalwrite(ledpin5, HIGH); digitalwrite(ledpin4, LOW); digitalwrite(ledpin3, LOW); digitalwrite(ledpin2, LOW); } else if(tekanan=32) {

digitalwrite(ledpin6, HIGH); digitalwrite(ledpin5, HIGH); digitalwrite(ledpin4, HIGH); digitalwrite(ledpin3, LOW); digitalwrite(ledpin2, LOW); } else if(tekanan=33) { digitalwrite(ledpin6, HIGH); digitalwrite(ledpin5, HIGH); digitalwrite(ledpin4, HIGH); digitalwrite(ledpin3, HIGH); digitalwrite(ledpin2, LOW); } else if(tekanan>=34) { digitalwrite(ledpin6, HIGH); digitalwrite(ledpin5, HIGH); digitalwrite(ledpin4, HIGH); digitalwrite(ledpin3, HIGH); digitalwrite(ledpin2, HIGH); } if (tekanan>=28) if (tekanan<=28) delay(250); } digitalwrite(buzzer, HIGH); digitalwrite(buzzer, LOW);

LAMPIRAN II (DATA SHEET ARDUINO)

The Arduino Uno is a microcontroller board based on the ATmega328 ( datasheet). It has 14 digital input/output pins (of which 6 can be used as PWM outputs), 6 analog inputs, a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a reset button. It contains everything needed to support the microcontroller; simply connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to get started. The Uno differs from all preceding boards in that it does not use the FTDI USB-to-serial driver chip. Instead, it features the Atmega8U2 programmed as a USB-to-serial converter. "Uno" means one in Italian and is named to mark the upcoming release of Arduino 1.0. The Uno and version 1.0 will be the reference versions of Arduno, moving forward. The Uno is the latest in a series of USB Arduino boards, and the reference model for the Arduino platform; for a comparison with previous versions, see the index of Arduino boards. Microcontroller Operating Voltage Input Voltage (recommended) Input Voltage (limits) Digital I/O Pins Analog Input Pins DC Current per I/O Pin DC Current for 3.3V Pin Flash Memory

SRAM EEPROM Clock Speed

ATmega328 5V 7-12V 6-20V 14 (of which 6 provide PWM output) 6 40 ma 50 ma 32 KB of which 0.5 KB used by bootloader 2 KB 1 KB 16 MHz

The Arduino Uno can be powered via the USB connection or with an external power supply. The power source is selected automatically. External (non-usb) power can come either from an AC-to-DC adapter (wall- wart) or battery. The adapter can be connected by plugging a 2.1mm center-positive plug into the board's power jack. Leads from a battery can be inserted in the Gnd and Vin pin headers of the POWER connector. The board can operate on an external supply of 6 to 20 volts. If supplied with less than 7V, however, the 5V pin may supply less than five volts and the board may be unstable. If using more than 12V, the voltage regulator may overheat and damage the board. The recommended range is 7 to 12 volts. The power pins are as follows: VIN. The input voltage to the Arduino board when it's using an external power source (as opposed to 5 volts from the USB connection or other regulated power source). You can supply voltage through this pin, or, if supplying voltage via the power jack, access it through this pin. 5V. The regulated power supply used to power the microcontroller and other components on the board. This can come either from VIN via an on-board regulator, or be supplied by USB or another regulated 5V supply. 3V3. A 3.3 volt supply generated by the on-board regulator. Maximum current draw is 50 ma. GND. Ground pins.

LAMPIRAN III (DATA SHEET SENSOR MPX 5700 AP)

Integrated Silicon Pressure Sensor On- Chip Signal Conditioned, Temperature Compensated and Calibrated The MPX5700 series piezoresistive transducer is a state-of-the-art monolithic silicon pressure sensor designed for a wide range of applications, but particularly those employing a microcontroller or microprocessor with A/D inputs. This patented, single element transducer combines advanced micromachining techniques, thin-film metallization, and bipolar processing to provide an accurate, high level analog output signal that is proportional to the applied pressure. Features 41 2.5% Maximum Error over 0 to 85 C 42 Ideally Suited for Microprocessor or Microcontroller-Based Systems 43 Available in Absolute, Differential and Gauge Configurations 44 Patented Silicon Shear Stress Strain Gauge 45 Durable Epoxy Unibody Element ORDERING INFORMATION Device Type Basic Elemen t Ported Elements Opti ons Differential Absolute Differential Dual Ports Gauge Gauge, Axial Absolute C ase T ype Order Number MPX Series Device Marking 8 67 MPX5700D MPX5700D 8 67 MPX5700A MPX5700A 86 7C 86 7B 86 7E 86 7B MPX5700D MPX5700D P P MPX5700 GP MPX5700 GS MPX5700G P MPX5700D MPX5700A MPX5700A P P Absolute, Axial Absolute, Axial PC Mount 86 7E 86 7F MPX5700A S MPX5700A SX MPX5700A MPX5700A VS Sens ing Elem ent Thin Film Temperatu re Compens ation an d Gain Stage #1 Gain Stage #2 a nd Gro und Referen ce Shift Circuitry out V

LAMPIRAN IV (DATA SHEET BUZZER)

General Description: A buzzer or beeper is an audio signaling device, which may be mechanical, electromechanical, or piezoelectric. Typical uses of buzzers and beepers include alarm devices, timers and confirmation of user input such as a mouse click or keystroke. Buzzer is an integrated structure of electronic transducers, DC power supply, widely used in computers, printers, copiers, alarms, electronic toys, automotive electronic equipment, telephones, timers and other electronic products for sound devices. Active buzzer 5V Rated power can be directly connected to a continuous sound, this section dedicated sensor expansion module and the board in combination, can complete a simple circuit design, to "plug and play." Specifications: 40 On-board passive buzzer

41 On-board 8550 triode drive 42 Can control with single-chip microcontroller IO directly 43 Working voltage: 5V Board size: 22 (mm) x12 (mm) Pin Configuration: 50 VCC 51 Input 52 Ground