LAMPIRAN. Listing Program Lengkap

Similar documents
G9SA. Ordering Information. Safety Relay Unit. The G9SA Series Offers a Complete Line of Compact Units. H Several types of 45-mm wide Units are

Top-actuated (B3U-1000 Series)

Inductive Proximity Sensor

Sensing method Appearance Connection method Sensing distance Part number NPN output PNP output Through-beam Prewired (2 m) E3Z-T61A E3Z-T81A 10 m

Main contacts Auxiliary contact Number of input channels Rated voltage Model Category 24 VAC/VDC 3PST-NO SPST-NC 1 channel or 2 channels possible

DPST-NO None 2 channels Auto-reset Inverse (+/-) 24 VAC/VDC 4 G9SB-2002-A 1 channel or 2

Pin plunger D2JW-011 D2JW-011-MD. Short hinge lever D2JW-01K1A1 D2JW-01K1A1-MD. Hinge lever D2JW-01K11 D2JW-01K11-MD

Without Indicator. With Indicator Model XM9B XM9B Contact Plating Specification 4: Gold Flash Plating

Light ON 5m. * Light ON. 2.5m (3m) Light ON. (5m)

D2SW-3L1HS D2SW-01L1HS

Inductive Proximity Sensor

EE-SPX74/84. Ordering Information. Compact Sensor for High-Density Mounting with Easy Snap-In Connector. H Connector features a built-in safety

Model Number Structure

Terminals Solder terminals Quick-connect. PCB terminals terminals (#110) 3 A Pin plunger SS-3GP SS-3GPT SS-3GPD SS-3GPB

E4PA. Ultrasonic Displacement Sensor. Ordering Information

Setting method Indication Control Output Model method mode Thermocouple (with sensor burnout detection circuit)

Solid-state Timer H3FA. Model Number Structure. DIP Model Timer for PC Board Use Provides Contact and Solid-state Output

Output configuration Horizontal state

E4PA-N. Application Examples. Features. Ultrasonic Displacement Sensor. Now, more advanced with a new mutual interference prevention function.

E3X-NA. Adjuster type standard that is the culmination of true ease and simplicity. Super Manual Fiber Amplifier. Features

Round Water-resistant Connectors (M12) XS2

(Applicable output load) to 264 (see note 2) (see note 1) (2Aat75to264VAC) G3R-202SLN-US PCB Yes 2 A at 100 to 120 VDC. (2 A at 75 to 132 VDC)

Safety Relay Unit (I/O Unit Type)

G3NE. Ordering Information. Solid State Relay. Compact, Low-cost, SSR Switching 5to20A J ACCESSORIES (ORDER SEPARATELY) Solid State Relay G3NE

Switching Power Supply S8E1. Ordering Information. Compact and Economical Switching Power Supply

Type Pressure range description Part number

Model Number Structure

MOS FET Relay. Ordering Information. Application Examples G3VM- XN(F)/4N(F)

Electronic Components Master Selection Guide. Relays Switches Photomicrosensors Micro Sensors Connectors

Actuator Terminal Model

Installation Sensing distance Connection Output configuration Operation mode NO Operation mode NC

D2D. Door Interlock Switch. Ordering Information. Power Switch with Minimum Contact Gap of 3 mm. Model Number Legend.

4 mm. 8 mm. Proximity Sensor. Sensing head Sensing distance Output configuration Part Number M18 Shielded 4 mm DC 3-wire PNP-NO E2EZ-X4B1 M30

Cylindrical Proximity Sensor

Model Number Structure

Ordering Information. Smart Sensors (Inductive Displacement Type) ZX Series. Sensors

G3PC. Model Number Structure. Solid State Relays with Failure Detection Function. Model Number Legend

Thread length (overall length) material

Basic Switch. Pin plunger Short hinge Hinge lever Long hinge lever Simulated hinge Short hinge Hinge roller lever lever roller lever lever

Mini Photoelectric Sensor

E2A. Ordering Information. Cylindrical Proximity Sensor. Safe Mounting with Greater Sensing Distance. E2A Cylindrical Proximity Sensor 1

Solid-state Timer. Ordering Information. Specifications. Miniature Timer Compatible with the MY Relay. Accessories. Time Ranges

XH2. Half-pitch Board-to-Board Connectors

Round Water-resistant Connectors (M8) XS3

16 g SS-01GL-FD SS-01GL-F SS-01GL-FT 50 g SS-01GLD SS-01GLD1 SS-01GLD2 SS-01GL SS-01GLT Simulated roller lever

NPN output PNP output Cord connection Cord length: 2 m Through-beam 7 m Light-ON. 2 m. (selectable by wiring) Diffuse reflective 0.

Switching Power Supply

G3S4-A 5 VDC 12 VDC 24 VDC 0.6 A at 75 to 264 VAC (See note 1.) G3S4-A1 5 VDC 12 VDC 24 VDC Yes G3SD-Z01P-PD 1 A at 3 to 26 VDC (See note 2.

Solder terminals D2FD-2L0-1H D2FD-01L0-1H. PCB terminals D2FD-2L0-1T D2FD-01L0-1T. Hinge lever Solder terminals D2FD-2L1-1H D2FD-01L1-1H

E3S-A. Built-in Amplifier Photoelectric Sensor (Medium Size) Ordering Information. Built-in Amplifier Photoelectric Sensors. Horizontal. 7 m.

Switching Power Supply

Model Number Structure

Model Number Structure

Temperature Controller E5C4

E2EC-CR8D2 5.4 mm dia. 1.5 mm (0.06 in) NO E2EC-C1R5D1 NC. E2EC-C1R5D2 8mmdia. 3 mm (0.12 in) NO E2EC-C3D1 NC

masterelectronics.com onlinecomponents.com

Ordering Information. Door Interlock Switch D2D. Power Switch with Minimum Contact Gap up to 3 mm. D2D - 0. Model Number Legend

onlinecomponents.com

Absolute Rotary Encoder E6C-N. Ordering Information. Ideal for Stepping Motor Tripping Detection and Position Control of Loaders or Unloaders

Photoelectric Sensor

Solid-state Timer. Ordering Information. Miniature Timer with Multiple Time Ranges and Multiple Operating Modes H3YN- - Accessories (Order Separately)

Thread length (overall length)

Slim Relay G2RV. Model Number Structure. Ordering Information. Model Number Legend. List of Models. Relay and Socket Combinations

Ordering Information. Snap Action Switch V. Model Number Legend V General Purpose Snap Action Switch. Snap Action Switch V 121

Transistor I/O Link Modules

I/O delay. (0.32 in ±0.06 in)

Fiber-Optic System for Sensing Under Vacuum. Vacuum chamber E39-F1V Lens Unit

SYSMAC Remote Transistor Module

Item E2CD-C1C3A E2CD-C1R5C3A E2CD-X2R5C3A E2CD-X5C3A 12 to 24 VDC (10 to 30 VDC), ripple (p-p): 10% max.

D2VW. Sealed Miniature Basic Switch. Ordering Information Model Number Legend D2VW- -

General-Purpose Photoelectric Sensor

2. Actuator B: Ball type P: Pin type F: Flat type

Photoelectric Sensor

Option 2. Nil. Note 1) Option 1. Note With waterproof seal and mounting screw. With waterproof seal and mounting screw. 48 conversion adapter

Link Master Adapter. Ordering Information. Connect High-Density I/O PLC Modules to 16-Point B7A Modules

Add S to the end of the model number for the UL/CSA-approved version. Consult your OMRON sales representative for details.

G3NE. Model Number Structure. Solid State Relays. Model Number Legend. Compact, Low-cost, SSR Switching 5 to 20 A

Solid-state Timer H3YN

Conductive Level Controller

H7ER H7ER-V H7ER-V1 H7ER-V2 H7ER-V3

Thread length. 27 (40) mm. 27 (44) mm. 27 (40) mm. 34 (50) mm. 34 (49) mm. 39 (60) mm. 39 (54) mm. 44 (65) mm. 44 (59) mm

The diagram below shows how cables and I/O modules are connected to form a plug-and-go system.

Classification Enclosure rating Input voltage Type of

Intelligent Flag Amplifier

Product Discontinuation Notices. Discontinuation Notice of Compact proximity sensor TL-M series (for china area only)

Zone Pressure Touch (ZPT) Sensor - Standard Range

D2D. Door Interlock Switch. Ordering Information. Power Switch with Minimum Contact Gap of 3 mm. Model Number Legend.

H2C Motor Timers will be Discontinued March 2013; Replace with H3CR-A8E Solid-state Timer

Model Number Structure

EE-SX97 40% Built-in connector enables downsizing and easier connection. Protective circuit for safe operation. Slot-type Photomicrosensor.

Multiple-Rotation Absolute Encoder

Solid-state Timer. Ordering Information. Ultra-slim Timer for G2R Relay Socket. H3RN-jj. Accessories (Order Separately) Connecting Socket

The dual display means that the current value and the threshold value, it makes direct setting of threshold value

Photoelectric Sensor. Threaded Cylindrical Photoelectric Sensors with Built-in Amplifier for Use as an Optical Proximity Sensor

Ordering Information. I/O Relay G7T. Model Number Legend Slim-styled I/O Relay Saves Space in Panel

Self-Powered Counters H7EC

Functional configuration Rated input voltage Power ratings Output voltage Output current Part number Non-PFC

Solid State Relays with Failure Detection Function

LAMPIRAN I (LISTING PROGRAM)

Compact Magnetic Non-contact Safety Switches. Model Number Structure

Transcription:

LAMPIRAN Listing Program Lengkap // library timer 1 #include <TimerOne.h> // library lcd #include <LiquidCrystal.h> // konfigurasi lcd LiquidCrystal lcd(2, 3, 4, 5, 6, 7); // konfigurasi i/o #define ledpin 13 #define sensorpin A0 #define uvpin 8 #define tlpin 9 #define fan1pin 10 #define fan2pin 11 #define tombolpin 12 // global variable // atur timer disini //int timer1=1,timer2=30; int timer1=1,timer2=1; // untuk start int tanda_start=0; // untuk membaca sensor float flow; // untuk timer int menit1=0,detik1=0,menit2=0,detik2=0; // untuk on/off outputan bool on=0,off=1; int counter=0; float volt; // fungsi setup (hanya di jalankan 1x saat mikro pertama on) void setup() // atur mode lcd 16x2 lcd.begin(16,2); // atur pin i/o pinmode(ledpin, OUTPUT); pinmode(uvpin, OUTPUT); pinmode(tlpin, OUTPUT); pinmode(fan1pin, OUTPUT); pinmode(fan2pin, OUTPUT); pinmode(tombolpin, INPUT_PULLUP); // set off relay digitalwrite( uvpin, off ); digitalwrite( tlpin, off ); digitalwrite( fan1pin, off ); digitalwrite( fan2pin, off );

// aktifkan timer interrupt Timer1.initialize(1000000); // atur ke mode 1000000 microseconds ( 1s ) // panggil program ISR Timer1.attachInterrupt( timerisr ); // program utama void loop() // jika tombol bernilai 0 timer mulai mencacah if(digitalread(tombolpin)==0) tanda_start=1; else tanda_start=0; if(tanda_start==0) counter=0; menit1=0; detik1=0; menit2=0; detik2=0; digitalwrite( uvpin, off ); digitalwrite( tlpin, off ); digitalwrite( fan1pin, off ); digitalwrite( fan2pin, off ); // panggil bacas sensor flow=baca_sensor(); // tampilkan data di lcd if(counter==0) lcd.clear(); lcd.setcursor(0,0); lcd.print("biological"); lcd.setcursor(0,1); lcd.print("safety CABINET"); if(counter==1) lcd.clear(); lcd.setcursor(0,0); lcd.print("awas SINAR UV"); lcd.setcursor(6,1); lcd.print(menit1); lcd.print(":"); lcd.print(detik1);

if(counter==2) lcd.clear(); lcd.setcursor(0,0); lcd.print("sterilisasi"); lcd.setcursor(6,1); lcd.print(menit2); lcd.print(":"); lcd.print(detik2); if(counter==3) lcd.clear(); lcd.setcursor(0,0); lcd.print("kecepatan UDARA"); lcd.setcursor(0,1); lcd.print(flow); lcd.print(" m/s"); // jeda pengulangan delay(100); // fungsi timer ISR // fungsi ini dipanggil di attach interrupt (program dalam mode interupsi) void timerisr() // timer aktif if(tanda_start==1) // kedipan led penanda timer digitalwrite( ledpin, digitalread( ledpin ) ^ 1 ); // timer1 aktif if(menit1<timer1) counter=1; detik1++; if(detik1>59) menit1++; detik1=0; // jika timer 1 selesai if(menit1==timer1&&detik1==0) // timer2 aktif if(menit2<timer2) counter=2; detik2++;

if(detik2>59) menit2++; detik2=0; // uv on digitalwrite( uvpin, on ); // jika timer2 selesai // uv off // tl,fan1,fan2, on if(menit2==timer2&&detik2==0) counter=3; digitalwrite( uvpin, off ); digitalwrite( tlpin, on ); digitalwrite( fan1pin, on ); digitalwrite( fan2pin, on ); tanda_start=0; // reset tanda start else digitalwrite( ledpin, 0 ); // indikator led mati // fungsi baca sensor float baca_sensor() // nilai offset float minoffset=1.0,maxoffset=5.0; float flowsensor; // koversi dari nilai adc ke volt float vout=(float)analogread(sensorpin)*((float)5/1023)-minoffset; volt=vout+minoffset; // ubah ke m/s if(vout<=(1.58-minoffset))flowsensor=vout*((float)1/(1.58-minoffset)); if(vout>(1.58-minoffset)&&vout<=(2.88- minoffset))flowsensor=vout*((float)2/(2.88-minoffset)); if(vout>(2.88-minoffset)&&vout<=(4.11- minoffset))flowsensor=vout*((float)3/(4.11-minoffset)); if(vout>(4.11-minoffset))flowsensor=vout*((float)4/(5.0-minoffset)); // pembatas minimal 0 if(flowsensor<0)flowsensor=0; // nilai balik return flowsensor

Rangkaian Keseluruhan

MEMS Air Velocity Sensor D6F-W MEMS precision technology for repeatable airflow velocity detection. Precision uni-directional air velocity detection with ±5% full-scale repeatable accuracy. Integral passive Dust Segregation System (DSS) prevents contamination of sensor element. Compact size: 39 (L) x 20 (W) x 9 (H) mm Output signal amplified & temperature compensated. User friendly - no adjustment necessary. RoHS Compliant Ordering Information Description Case Applicable Gas Flow Range Model Velocity Sensor PPS Air (See note 1.) 0-1 m/sec D6F-W01A1 0-4 m/sec D6F-W04A1 0-10 m/sec D6F-W10A1 Cable Connector Assembly - - - - - - - - - D6F-W CABLE Note: 1. Dry gas must not contain large particles, eg dust, oil, mist. 2. Cable Assembly is sold separately. Specifications Characteristics Models D6F-W01A1 D6F-W04A1 D6F-W10A1 Flow Range (See note 1.) 0 to 1 m/s 0 to 4 m/s 0 to 10 m/s Applicable Gas (See note 2.) Air Electrical Connection Connector (3 wire) Power Supply 10.8 to 26.4 VDC Current Consumption Max. 15 ma (no load, Vcc = 12 to 24VDC, 25 C) Operating Output Voltage (VDC) 1 to 5 VDC Output Voltage (Max.) 5.7 VDC (Lead resistance 10kΩ) Output Voltage (Min.) 0 VDC (Lead resistance 10kΩ) Accuracy ± 5% F.S. max. of detected characteristics at 25 C Repeatability (See note 3.) ± 0.4% F.S. Case Material PPS Degree of Protection IP40 Operating Temperature -10 to 60 C (with no icing or condensation) Operating Humidity 35 to 85% RH (with no icing or condensation) Storage Temperature -40 to 80 C (with no icing or condensation) Storage Humidity 35 to 85% RH (with no icing or condensation) Temperature Characteristics ± 5% F.S. max. of detected characteristics at 25 C (within -10 to 60 C) Insulation Resistance 20 MΩ (500 VDC between lead terminal and the case) Dielectric Strength 500 VAC, 50/60 Hz for 1 minute. (Leakage current typ. Max. 1 ma) between lead terminals and case. Weight 6.3 g Note: 1. Flow range at 0 C, 101.3kPa. 2. Dry gas. (must not contain large particles, dust, oil, mist) 3. Reference (typical) MEMS Air Velocity Sensor D6F-W 31

Absolute Maximum Rating Item Symbol Rating Unit Power supply voltage Vcc 26.4 VDC Output voltage Vout 6.0 VDC Output Voltage Characteristics D6F-W01A1 D6F-W04A1 D6F-W10A1 Output Voltage (V) 6.0 5.0 4.0 3.0 2.0 1.0 0.0 0.00 0.25 0.50 0.75 1.00 Flow Velocity (m/s) D6F-W01A1 Flow Velocity (m/s) 0.00 0.25 0.50 0.75 1.00 Output Voltage (VDC) 1.00±0.2 1.35±0.2 2.01±0.2 3.27±0.2 5.00±0.2 D6F-W04A1 Output Voltage (V) 6.0 5.0 4.0 3.0 2.0 1.0 0.0 0.00 1.00 2.00 3.00 4.00 Flow Velocity (m/s) Output Voltage (V) 6.0 5.0 4.0 3.0 2.0 1.0 0.0 0 2 4 6 8 10 Flow Velocity (m/s) Flow Velocity (m/s) 0 1 2 3 4 Output Voltage (VDC) 1.00±0.2 1.58±0.2 2.88±0.2 4.11±0.2 5.00±0.2 Note: 1. Air velocity. D6F-W is optimally adjusted for air velocity detection, derived from mass air-flow measurement according to our in-house test method using a wind tunnel φ 48 mm as shown in Fig. 1. 2. Measurement condition: Power supply voltage 12±0.1 VDC, ambient temperature 25±5 C. and dry air. D6F-W10A1 Fig. 1. Flow rate measurement positoin Air Velocity Sensor 48 dia. 20.8 60 Flow Velocity (m/s) 0 2 4 6 8 10 Output Voltage (VDC) 1.00±0.24 1.94±0.24 3.23±0.24 4.25±0.24 4.73±0.24 5.00±0.24 Note: 1. Air velocity. D6F-W is optimally adjusted for air velocity detection, derived from mass air-flow measurement according to our in-house test method using a wind tunnel φ 155 mm as shown in Fig. 2. 2. Measurement condition: Power supply voltage 12±0.1 VDC, ambient temperature 25±5 C. and dry air. Fig. 2. 155 dia. Honeycomb air flow laminater Air Velocity Sensor 18 Flow rate measurement positoin 10 100 Connections 2. Vout. 3. GND. 1. Vcc. Enlarged view Connections Pin No. 1: Vcc 2: Vout 3: GND Connector S3B-ZR-SM2-TF (Made by JST Mfg. Co.,Ltd.) The connector linked to this product should use the following JST Mfg.Co.,Ltd. housing, contacts and electrical wire 1) Contact: SZH-002T-P0.5 Wire: AWG#28 to #26 OR 2) Contact: SZH-003T-P0.5 Wire: AWG#32 to #28 Housing: ZHR-3 32 MEMS Air Velocity Sensor D6F-W

Dimensions Note: All units are in millimeters unless otherwise indicated. D6F-W01A1 D6F-W04A1 D6F-W10A1 9 Two, R: 1.6 3.2±0.2 1.2 2.6 20 8 R: 4 2.6 1.2 Two, M3 screws 4.2±0.2 8 IN OUT 30.5±0.2 5 39 24 MADE IN JAPAN 5 30.5±0.05 19.5 OUT 4 2-dia. holes, Depth: 2.5 3.2±0.2 dia. 7 R: 4 D6F-W CABLE (Sold separately) Blue wire Black wire Brown wire 5±1 15±3 30±10 50±10 100±10 3. GND 2. Vout 1. Vcc Packaging TYPE D6F-W No. Item Material 1 3 1 Sock liner CCNB 2 Tray (25pcs) Polyethylene 2 3 Box (100 pcs) CCNB 55 Display seal 255 215 Application Example Clogged Filter Detection The D6F-W air flow sensor detects the decrease in air velocity through the filter as it becomes more contaminated with particles. The moment the velocity drops below a certain threshold, a warning signal is sent out, indicating the need for filter replacement. Note: Be sure to read the precautions and information common to all D6F sensors, contained in the Technical User s Guide, D6F Technical Information for correct use. MEMS Air Velocity Sensor D6F-W 33

All sales are subject to Omron Electronic Components LLC standard terms and conditions of sale, which can be found at http://www.components.omron.com/components/web/webfiles.nsf/sales_terms.html ALL DIMENSIONS SHOWN ARE IN MILLIMETERS. To convert millimeters into inches, multiply by 0.03937. To convert grams into ounces, multiply by 0.03527. OMRON ELECTRONIC COMPONENTS LLC 55 E. Commerce Drive, Suite B Schaumburg, IL 60173 847-882-2288 Cat. No. X305-E-1 10/10 Specifications subject to change without notice OMRON ON-LINE Global - http://www.omron.com USA - http://www.components.omron.com Printed in USA MEMS Air Velocity Sensor D6F-W