Αστέρια ΑνενεργάΑστέρια ΑνενεργάΑστέρια ΑνενεργάΑστέρια ΑνενεργάΑστέρια Ανενεργά
 

Date: 29-06-2016
File: sketch_spiti_sensors_mqtt_led.ino
// Edits requires ***************
 MQTT topic addressing

Arduinos Noodes

 12 xx xx x γραμματοκιβώτιο                192.168.1.90

 13 xx xx x for garaz                             192.168.1.89
 14 xx xx x for garden                            192.168.1.88

 15 xx xx x house sensors                       192.168.1.86

 16 xx xx x house alarm                           192.168.1.87

 17 xx xx x for ηλεκτρικος πινακας             192.168.1.91

 18 xx xx x medicine machine                    192.168.1.92

 19 xx xx x kitchen timer                            192.168.1.93

 20 xx xx x kitchen βραστήρας αυγών         192.168.1.94

 21 xx xx x kitchen πλύσιμο φρούτων και λαχανικών         192.168.1.95

 22 xx xx x kitchen φριτέζα                                           192.168.1.96

 

 

Rooms positions

  xx 11 xx  x= eisodos meriki oliki oplisi

  xx 12 xx  x= paidiko children room
  xx 13 xx  x= koyzina  kitchen
  xx 14 xx  x= ypnodomatio  bedroom
  xx 15 xx  x= saloni
  xx 16 xx  x= diadromos corridor
  xx 17 xx  x= mpanio bath
  xx 18 xx  x= patari

  xx 19 xx  x= garaz

  xx 20 xx x= out door ejodos

  xx 21 xx x= grafeio office

  xx 22 xx x= kouti synagermou

 

device ID:
   xx xx 11 x = light current sensor    //δεν χρησιμοποιείται
   xx xx 12 x = Light detector ceiling φωτοαντίσταση
   xx xx 13 x = for rele ανοιγει ρολα φώτα

   xx xx 14 x = pir radar
   xx xx 15 x = sound 

   xx xx 16 x = Temperature_F and Humidity

   xx xx 17 x =  fire     //δεν χρησιμοποιείται
   xx xx 18 x = gas        //δεν χρησιμοποιείται
   xx xx 19 x = contact window shutter and doors   //δεν χρησιμοποιείται

   xx xx 20 x = diaroes

   xx xx 21 x = tamper

   xx xx 22 x =  flame

   xx xx 23 x = ultrasonic //δεν χρησιμοποιείται

   xx xx 24 x = ir

   xx xx 25 x = inputs switch   //δεν χρησιμοποιείται

  

  xx xx 26 x = reyma boiler   //

xx xx 27 x = reyma kitchen   //

xx xx 28 x = reyma general   //

 

 

 

sensor  ID:

   xx xx xx 2 = light current sensor //δεν χρησιμοποιείται
   xx xx xx 3 = light watt να ακυρωθει  //δεν χρησιμοποιείται
   xx xx 12 2 = Light ceiling φωτοαντίσταση
  
   xx xx 13 4 = rele1 for lights
   xx xx 13 5 = rele2 ανοιγει ρολα
   xx xx 13 6 = rele3 for night light
   xx xx 13 7 = rele4 κλεινει ρολα
   xx xx 14 2 = pir radar

   xx xx 15 2 = sound

   xx xx 16 2 = Temperature_F
   xx xx 16 3 = Humidity
   xx xx 17 2 = fire       //δεν χρησιμοποιείται
   xx xx 18 2 = gas   //δεν χρησιμοποιείται
   xx xx 19 2 = contact παραθυρου window
   xx xx 19 3 = contact ρολων shutter

   xx xx 19 4 = contact doors

   xx xx 19 5 = contact meriki oplisi

   xx xx 19 6 = contact oliki oplisi

   xx xx 20 2 = diaroes

   xx xx 20 3 = diaroes plynthrio

   xx xx 21 2 = tamper synagermou  //δεν χρησιμοποιείται

   xx xx 21 3 = tamper radar        //δεν χρησιμοποιείται

   xx xx 22 2 = flame   //δεν χρησιμοποιείται

   xx xx 23 2 = ultrasonic //δεν χρησιμοποιείται
   xx xx 24 2 = ir       //δεν χρησιμοποιείται

   xx xx 25 2 = health alarm    

   xx xx 25 3 = panic alarm     

   xx xx 25 4 = silance alarm    

 

 

 xx xx 26 3= energy    //boiler amber

xx xx 26 2= energy      //boiler watt

xx xx 27 3= energy     //kitchen amber

 xx xx 27 2= energy      //kitchen watt

xx xx 28 3= energy      // general amber

xx xx 28 2= energy      //general watt

 

Απαραίτητα υλικά

Arduino mega 2560

Αντιστάσεις 10ΚΩ   Χ32      0.25watt

Τερματικά πλακέτας με βίδα βήμα 5mm X60

RFID reader

GSM module

LCD screen

Ethernet shield

Πληκτρολόγιο

Βομβητής

Real time clock

 

Pins arduino mega για το συναγερμό
Analogika

 A0 = LCD screen not for others

 A1 = silance alarm     pull-up                 topic 16 xx 25 4

 A2 = panic alarm      pull-up                   topic 16 xx 25 3

 A3 = health alarm      pull-up                  topic 16 xx 25 2
 A4 = tamper radar     pull-up                  topic 16 22 21 3
 A5 = tamper alarm     pull-up                  topic 16 22 21 2
 A6 = fire contact παταρι      pull-up        topic 16 18 17 3
 A7 = fire contact garaz      pull-up          topic 16 19 17 3
 A8 = fire contact paidiko    pull-up          topic 16 12 17 3
 A9 = fire contact kitchen    pull-up          topic 16 13 17 3
A10 = fire contact krebatokamara           topic 16 14 17 3      pull-up 
A11 = fire contact saloni        pull-up       topic 16 15 17 3
A12 =πληκτρολογιο       

A13 = πληκτρολογιο

A14 = πληκτρολογιο

A15 = πληκτρολογιο

Ψηφιακά
  0 = πληκτρολογιο
  1 = πληκτρολογιο
  2 = πληκτρολογιο
  3 =πληκτρολογιο
  4 = SS SD card on ethernet not use for others
  5 = contact indoor               pull-up           topic 16 11 19 4

  6 = contact radar indoor      pull-up           topic 16 11 14 2
  7 = buzzer output

  8 = RFID ssn  not use for others
  9 = RFID reset not use for others

10 = SS for ethernet  not use for others

11 = MQTT led  output
12 = oliki oplisi            pull-up     topic 16 11 19 6
13 = meriki oplisi         pull-up     topic 16 11 19 5

14 = rele strobe sirina   output
15 = rele outside sirina  output
16 = rele inside sirina    output
17 = rele thlefoniths      output
18 = TX for GSM
19 = RX for GSM
20 = sda i2c for RTC and anything else
21 = scl i2c for RTC and enything else
22 = ethernet led output

23 =

24 =

25 = garaz door           contact          pull-up     topic 16 19 19 5
26 = radar garaz         contact           pull-up     topic 16 19 14 2
27 = radar paidiko       contact           pull-up     topic 16 12 14 2
28 = radar koyzina       contact           pull-up    topic 16 13 14 2
29 = radar krebatokamara  contact    pull-up    topic 16 14 14 2
30 = radar diadromos      contact       pull-up     topic 16 16 14 2
31 = radar saloni           contact         pull-up     topic 16 15 14 2

32 = shut contact paidiko                   pull-up     topic 16 12 19 3

33 = shut contact koyzina                  pull-up     topic 16 13 19 3

34 = shut contact krebatokamara      pull-up     topic 16 14 19 3
35 = shut contact diadromos             pull-up      topic 16 16 19 3
36 = shut contact mpanio                  pull-up      topic 16 17 19 3
37 = shut contact saloni                    pull-up      topic 16 15 19 3

38 = win contact paidiko                    pull-up     topic 16 12 19 2
39 = win contact koyzina                   pull-up     topic 16 13 19 2
40 = win contact krebatokamara       pull-up     topic 16 14 19 2
41 = win contact diadromos              pull-up     topic 16 16 19 2
42 = win contact mpanio                   pull-up     topic 16 17 19 2

43 = win contact saloni                     pull-up     topic 16 15 19 2

44 = LCD screen not for others

45 = LCD screen not for others

46 = LCD screen not for others

47 = LCD screen not for others

48 = LCD screen not for others

49 = LCD screen not for others
50 = MISO ETHRNET/RFID
51 = MOSI ETHERNET/RFID
52 = CLK ETHERNET/RFID

53 = not use for ever

 

 https://www.instructables.com/id/Arduino-attendence-logger/

 

https://create.arduino.cc/projecthub/muhammad-aqib/arduino-rfid-and-keypad-based-acces-control-and-alert-system-825e5b

 

 https://www.instructables.com/id/Arduino-Easy-Weather-Station-With-BME280-Sensor/

 

https://create.arduino.cc/projecthub/user8523373/rfid-based-automatic-door-system-7b2065?ref=similar&ref_id=115259&offset=3

 

Bread Board

 

 

 

 

 

rfid and keypad based access

 

 

 

en

 

Arduino Mega

RFID-RC522

Ethernet

card

4

relay

HC-SR04

LED RED

LED

GREEN

BUZZER

GND

GND

GND

GND

GND

(-)

(-)

(-)

VIN

             

5V

 

5V

VCC

VCC

     

3.3V

3.3V

           

Digital 7

           

(+)

Digital 9

RST

           

Digital 8

SDA

           

Digital 50

MISO

MISO

         

Digital 51

MOSI

MOSI

         

Digital 52

SCK

CLOCK

         
Digital 53 dont use            

Digital 4

 

Digital 4

         

Digital 10

 

Digital 10

         

Digital 14

   

IN1

       

Digital 15

   

IN2

       

Digital 16

   

IN3

       

Digital 17

   

IN4

       

TX2 16

             

RX2 17

             

Digital 27

         

(+)

 

Digital 29

       

(+)

   

Digital 12

     

ECHO

     

Digital 11

     

TRIG

     

 

 

 

 

 

 

Προσθήκη νέου σχολίου


Κωδικός ασφαλείας
Ανανέωση