![]() Note: enter the library dht-sensor-library-master.zip in the Arduino IDE. The YunClient library allows to accept and process messages sent by the Linino server. The YunServer library allows the activation of the server on the Arduino side on port 555 where the Linino web server re-routes the messages destined to the / arduino folder The Bridge library allows you to manage the communication between the two modules of Arduino Yùn, the microcontroller ATmega32u4 and the processor AR9331. The sketch to be loaded on the Arduino Yùn reads and drives The pins on the card and transmits the data with the Web page. Change color from green to red and vice versa based on sensor detection. On the web page dedicated to the switches are available the buttons related to the relays connected to Arduino Yùn.Īlso on the side of the web interface, they are also provided with two LED icons. In automatic mode the system acts independently by activating the relays based on the status of the sensors and according to the parameters supplied by the user on the Web page. In manual mode it is possible to control connected relays on the Arduino Yùn by operating the buttons on the web page. The system is designed to operate in automatic and manual mode. All the switches and sensors connected to Arduino Yùn are collected on the Home page of the web page. At the same time we will receive notification of the changes occurred on the hardware side of the Arduino where the various sensors and actuators are connected. ![]() The Web page allows us to set the temperature threshold values and automatically activate the climate (air conditioning and heating). The status of the various sensors and actuators is updated every 3 seconds. To update the contents the AJAX technique was used, which allows us to manage the exchange of data in the background, between the web page and the server, asynchronously. To make the dynamic page the JavaScript language was used, which allows us to insert instructions (scripts) within the HTML code, which will be executed on the client (browser) in response to specific requests. The Web page allocated to the micro SD card was created using the HTML language. Through the navbar, at the top of the web page, we can choose to monitor and control the switches, the climate or the sensors in an isolated way. ![]() I accept suggestions in the comments to make the login page more secure. This system is not a good deterrent for those wishing to enter the web page of the commands because you can get around by simply writing the IP address of the page you want to open.This is a first step and that's what I managed to do in a few days. By default I left as Username " admin " and as Password " admin ". To enter the web page and check the devices, type the Username and Password. In my case I set the fixed IP address for Arduino Yùn 192.168.1.89 then: To access the web page you must type in a browser the IP address where the Arduino YUN board is connected on the router.Įxample: http: // "arduino yùn address" / sd / casa / The web page is updated with a delay of about 3 seconds, automatically, both when you perform some direct action (for example when you press the switches on the web page) and if something happens on the hardware side. More web pages in HTML format together with the relative javascript and CSS are allocated on a micro-SD memory card and inserted in the appropriate slot on the Arduino Yùn and managed via the web server inside the Linino operating system, which is equipped with the card. Control and monitoring is done via a dynamic and interactive HTML web page. The system has automatic and manual control of lights, climate and various sensors, including a hall sensor and a PIR sensor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |