Salve a tutti,
volevo chiarirmi un po le idee, mi spiego meglio..
Vorrei portare come tesina d'esame una casa domotica con Arduino.. Partendo dalla base, volevo fare delle prove accendendo dei led tramite una pagina Php e salvarmi gli stati dei vari led (accesi o spenti) su un database.. La domanda che vi pongo è la seguente: non riesco a capire dove deve essere ospitata la pagina PHP?
Ho visto molti esempi online dove la pagina veniva costruita direttamente nello sketch Arduino (anzi, li veniva creata in .htm, io vorrei .PHP) ma la cosa non mi piace molto..
Io vorrei avere una pagina graficamente ben fatta, che mi permetta di controllare i componenti connessi al mio Arduino tramite dei button sulla pagina, la quale comunica con l' ethernet shield, e successivamente salvare delle informazioni sul database..
Non riesco a capire il ruolo del Web Server (per elaborare i dati PHP) da chi venga svolto, e di conseguenza dove caricare la mia pagina..
Premettendo che vorrei controllare l'ethernet shield da vari dispositivi come smartphone o PC o tablet tramite l'indirizzo 192.168.x.x dello shield, spero che qualcuno mi chiarisca le idee in merito, grazie
Google translate gave the following:
Hello everyone,
I wanted to clarify some ideas, I'll explain ..
I would take as a term paper examining an automated home with Arduino .. Starting from the base, I wanted to experiment by lighting the LEDs via a PHP page and save the states of the various LED (on or off) of a database .. The question you I ask myself is this: I can not figure out where it needs to be hosted PHP page?
I have seen many examples online where the page was built directly into the Arduino sketch (indeed, they were created in .htm, I would .PHP) but I would not really like ..: smiley-confused:
I would like to have a page graphically well done, that allows me to control the components connected to my Arduino using the button on the page, which communicates with the 'ethernet shield, and then save the information on the database ..
I can not understand the role of the Web Server (to process data PHP) who is carried, and therefore where to load my page ..
Assuming that I would check the ethernet shield from various devices such as smartphones or tablet PC or via the address 192.168.xx the shield, I hope someone clarify ideas about, thanks
I can not figure out where it needs to be hosted PHP page?
PHP does not run on an arduino, so you need to research PHP to address that part of your project. Fairly large web pages can be served from an SD card attached to an arduino ethernet shield.