Arduino Web server. Control Relay Module with HTTP GET request data
$30-250 USD
W trakcie realizacji
Opublikowano prawie 11 lat temu
$30-250 USD
Płatne przy odbiorze
Parts:
1. Arduino Uno Board R3
2. Ethernet Shield R3
3. SainSmart 4-Channel 5V Relay Module for Arduino. See: http://www.amazon.com/gp/product/B0057OC5O8/ref=oh_details_o05_s01_i01?ie=UTF8&psc=1
4. (optional) LCD Module 20 X 4. See: http://www.amazon.com/gp/product/B003B22UR0/ref=oh_details_o05_s01_i02?ie=UTF8&psc=1
Arduino Web Server:
Will operate the Relay Module based on data received by HTTP GET request. Ex: [login to view URL]
relay1: activated for .7 second if open=0.
relay2: activated for 3 seconds if status=1
relay3: activated for 3 seconds if status=2
relay4: activated for 3 seconds if status=3
auth passes an authentication token to verify GET request was sent by web app and prevent a simple page refresh to control relay module.
A simple method of authentication is desired. An option is to match a token that is generated by arithmetic operation using private key and system date-time. Ex: private key (any fixed number) * day of month / hour + minutes. Authentication is not major concern since Arduino will only be accessed inside LAN. Developer can proposed another way to accomplish this.
Optional:
Include two more variables in GET request to be displayed in LCD: four digit integer and number in currency format.
Project requires the code (clean, well documented) for Arduino and components schematics showing how to hook up everything.
Assistance to integrate with web app developed in php. Propose a solution to make GET request to Arduino either using Javascript or other method. The web app is running on live web server on Internet, Arduino is on local network. Another option is to use frames and display form result in one frame and call local Arduino URL in another frame. Developer is free to propose another solution.
I will assemble parts, load code to Arduino and modify web app. Everything must work as described.