Διαχείριση μνήμης του ARDUINO από συσκευή ANDROID μέσω διαδικτύου

Μικρογραφία εικόνας

Ημερομηνία

2016-06-01

Συγγραφείς

Γκαρνέτας, Αναστάσιος

Τίτλος Εφημερίδας

Περιοδικό ISSN

Τίτλος τόμου

Εκδότης

ΔΙΠΑΕ

Παραπομπή

Παραπομπή

Άδεια Creative Commons

Εκτός εάν σημειώνεται διαφορετικά, η άδεια αυτού του αντικειμένου περιγράφεται ως Attribution-NonCommercial-ShareAlike 4.0 International

Περίληψη

Σκοπός της πτυχιακής εργασίας είναι η σύνδεση του Arduino με το διαδίκτυο, με τελικό στόχο την απομακρυσμένη διαχείριση των μνημών του από συσκευή Android. Για την υλοποίηση της πτυχιακής χρησιμοποιήθηκε η πλακέτα Arduino Mega 2560 και για την σύνδεση του Arduino με το διαδίκτυο χρησιμοποιήθηκε το ESP8266-12E, τα οποία τοποθετήθηκαν και συνδέθηκαν πάνω σε ένα ράστερ. Επιπρόσθετα τοποθετήθηκαν στο ράστερ, 8 ρελέ Solid State για τον έλεγχο συσκευών ισχύος, ένα αισθητήριο DHT-11 θερμοκρασίας-υγρασίας χώρου, ένα θερμίστορ για την απεικόνιση της θερμοκρασίας του σταθεροποιητή τάσης 7805, ένα ποτενσιόμετρο για τον έλεγχο αναλογικής εισόδου, 2 LED που ελέγχονται από PWM εξόδους, ένα LED που προσδιορίζει αν ο Server είναι on-line, μια οθόνη LCD η οποία απεικονίζει την θερμοκρασία-υγρασία του χώρου, την θερμοκρασία του σταθεροποιητή τάσης 7805 και τέλος την κατάσταση του Wifi module με την διεύθυνση IP που μπορούμε να συνδεθούμε τοπικά. Η συγγραφή του προγράμματος για το Arduino, όπως και για το ESP έγινε σε γλώσσα C/C++ και η μεταξύ τους επικοινωνία έγινε μέσω της σειριακής θύρας. Η συγγραφή του προγράμματος για την εφαρμογή Android έγινε μέσω του προγράμματος B4A (Best 4 Android) σε γλώσσα παρόμοιας της Visual Basic. Η επικοινωνία μεταξύ Arduino και συσκευής Android, γίνεται με την χρήση αιτημάτων GET στην πόρτα 80, όπου και λειτουργεί ο web server του ESP. Επιπρόσθετα για την ανάγκη ελέγχου του Arduino από Η/Υ, δημιουργήθηκε μια ιστοσελίδα η οποία φιλοξενείται σε εξωτερικό Apache web server. Για την συγγραφή του κώδικα της ιστοσελίδας, χρησιμοποιήθηκαν οι γλώσσες: HTML, CSS, PHP και JavaScript.
The aim of this thesis is the connection of Arduino to the internet for remotely managing it's memory with the use of an Android device. For the needs of the thesis we used an Arduino Mega 2560 board and for the connection of the arduino to the internet we used a Wifi module ESP8266-12E, which is connected to the Arduino Serial port. Both are placed and connected on a raster. Additionally we placed eight Solid State Relays for controlling power devices, a DHT-11 temperature-humidity environmental sensor, a thermistor for reading the temperature of the 7805 voltage regulator, a potentiometer for controlling the analog input, 2 LEDs controlled by the PWM outputs ( the first LED is controlled by the input voltage of the potentiometer and the second one is controlled by the Android device), a LED to determine if the Server is on-line and an LCD screen which displays the temperature and humidity of the environment, the temperature of the 7805 voltage regulator read by the analog sensor (thermistor) and finally the status of the Wifi module with the IP address that we can use to connect locally. The Arduino programming was made using C/C ++ language and the communication to the Wifi module was made via an Arduino library which used AT Commands for their communication. The Android application programming was made using the B4A Program (Best 4 Android) in a language that is similar to Visual Basic. The communication between Arduino and the Android device was made through a web server that is created on the ESP-8266 module, using GET requests on port 80. Additionally for the need of controlling the device from a PC, we created a website running on an external Apache web server. The programming was made using HTML, CSS, PHP and JavaScript languages with the ultimate goal being the communication of the user of the website to the Arduino.

Περίληψη

Περιγραφή

Λέξεις-κλειδιά

Μνήμη arduino, Αrduino memory, Αndroid, Διαδίκτυο, Internet

Παραπομπή