2. Control

In this example, you will learn to control glow of LED through web browser. One can control several other electronic digital and analog output devices.


- Get an Arduino board, LED, resistor and few jumpers
- Connect a LED at digital pin# 13. Don't forget to add a resistor in series with LED
- Connect Arduino board with computer

swDuino control example


- Open Arduino IDE
- Install swDuino Arduino library (if not yet installed)
- Open example: Files > Examples > swDuino-Lib > read sketch
- Upload it to Arduino board


- Open swDuino
- Configure Serial/COM and HTTP/Web server (optional)
- Start swDuino Server

Web browser

- Open web browser
- Browse this page: http://[server]:[port]/files/examples/control.html (click here if you have used the default configuration for HTTP/Web server)
- Go to Output to experience results

swDuino control example output