Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
The next step we are going to enter the number we want to make it a password by
(char password[] = {'62B'};), the numbers 62B are represent the password.
In void setup we will define the input or output pins, we have a single output pin
define it by (pinMode (8,OUTPUT);) & the number 8 represent the Arduino’s pin
we are use it an output to give signal to a solenoid lock at the correct password.
We move to void loop which the code will compare the entered number by keypad
with the password by for loop.
For network 1: when the fire approaches to the fire sensor it will pick up and gives
a signal to PLC.
For network 2: when the smoke or gas leaking exists in the home the gas sensor
will pick up and gives a signal to PLC.