Arduino control port from webpage, IoT (Internet Of Things)
In year 2000 I wrote a very simple webserver for the microchip PIC controller in assembler
using the SLIP-protocol connected to a PC. (Sorry, but the code is gone)
Nowadays controling a microcontroller from the internet is very easy to implement.
I used an ethernet shield (see picture 2).
I also downloaded the aREST library from here.
https://github.com/marcoschwartz/aREST
(Download the library and unzip under Ardiono-tool\library and import it.)
ARest handles the communication to the internet.
To set digital pin 6 as output:
open a webbrowser and type: http://192.168.2.178/mode/6/o
To set digital pin 6 to high:
open a webbrowser and type: http://192.168.2.178/digital/6/1
To set digital pin 6 to low:
open a webbrowser and type: http://192.168.2.178/digital/6/1
Of course you can create a nice webgui that reside on a webserver to send
http-request to the Arduino. I created one, see picture 1. Instead of using an
ipaddress you can register a name at no-ip and open a static route in your
router to the Arduino-board.
The source files I created for Arduino are here: WebServerLED_IoT_2.ino )
Picture 1: Webpage to control the Arduino
Picture 2: Picture of Arduino Uno with ethernet shield