Giter Site home page Giter Site logo

fariedrahmat / arduino-motion-detector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xcodephile/arduino-motion-detector

0.0 1.0 0.0 1.43 MB

Arduino wireless motion detector with MySQL database

Home Page: https://gallery.aldebaran.web.id/2015/12/30/arduino-wireless-motion-detector-with-mysql-database

C++ 35.36% PHP 64.64%

arduino-motion-detector's Introduction

arduino-motion-detector

Arduino wireless motion detector with MySQL database

Disclaimer:

Ini adalah proyek lama (2 tahun lalu lebih saat repositori ini dibuat) sehingga ada kemungkinan beberapa hal sudah tidak sesuai lagi di saat ini.

Deskripsi

Menggunakan 3 komponen utama yaitu Arduino Uno, ESP8266 Wifi Module, dan PIR Motion Sensor. Jika PIR mendeteksi adanya gerakan, maka PIR akan mengirim sinyal high ke Arduino dan selanjutnya Arduino akan mengirim serangkaian perintah dan data bahwa terdapat ada atau tidaknya gerakan ke ESP8266. Perintah-perintah yang diperoleh ESP8266 dari Arduino secara berurutan yaitu: membuat koneksi dengan jaringan lokal, membuat koneksi TCP ke host aldebaran.esy.es (sudah tidak aktif lagi), dan mengirim data dan mengakses file addData.php melalui method GET.

Penjelasan Tiap File

File addData.php digunakan untuk menambahkan data log ke database. Lebih tepatnya, menginputkan nilai (dari selector motionornot) ke kolom motion yang ada pada tabel t1. File ini akan diakses tiap kali ada gerakan terdeteksi atau gerakan sudah tidak terdeteksi lagi. File dataReview.php digunakan untuk mendapatkan log dari database dan menampilkannya. File WiFi_Motion_Detector_v1.ino merupakan file utama yang nantinya diunggah ke Arduino. File dbconnect.php digunakan untuk melakukan koneksi ke MySQL yang di-hosting di aldebaran.esy.es. Sedangkan file AT Command TCP.txt adalah catatan tambahan mengenai command yang digunakan di ESP8266.

Perkabelan

Arduino > ESP8266 Wifi Module

  • 3V3 > VCC dan CH_PD
  • TX > RX
  • RX > TX
  • GND > GND

Arduino > PIR Motion Sensor

  • 5V > VCC
  • D3 > OUT
  • GND > GND

arduino-motion-detector's People

Contributors

xcodephile avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.