Arduino LED ON/OFF TCP

details

Description:

This Project shows how to make an app that controls an Arduino board, by communicating over the TCP networking protocol. Communication with the Arduino is made using a WiFi shield or an Ethernet shield. When using an Ethernet shield, you communicate from your mobile device to a WiFi router, that in turn need to be able to connect to the IP-address of the Ethernet shield.

 

38

This example runs in Evothings Viewer on Android or iOS.You need to run this example in Evothings Viewer. Alternatively, you can build a Cordova application if you wish to distribute the app. You then need to include the Cordova plugin org.chromium.socket.

More about Evothings Viewer can follow the below:

https://evothings.com/doc/studio/evothings-viewer.html

Hardware:

Arduino.

Arduino Ethernet Shield

LED

Resistor 220 Ohm

39

How to get up and running

Follow these steps to get started with this example:

  • Wire up the Arduino board.
  • Open arduinowifi.ino or Arduino ethernet.ino in the Arduino development tool.
  • Enter the name and password for your WiFi network in arduinowifi.ino or configure your IP-address in arduinoethernet.ino.
  • Upload the program to the Arduino.
  • If using a WiFi shield, open the Serial Monitor Window and look for the IP address of the Arduino. (If the IP address is not displayed, check your WiFi network name and password.)
  • Run Evothings Workbench on your desktop/laptop computer.
  • Run Evothings Viewer on an iOS or Android mobile device and connect to the Workbench.
  • Launch the example “Arduino LED On/Off TCP” from the Workbench window.
  • Enter the IP address of the Arduino in the app.
  • If everything works, you should now be able to turn the LED on and off using the buttons in the app. If it does not work, check your wiring and that the right pins are used (remember pin 2 is used for output).
  • Now you can proceed with making your own sketch designs and add more buttons to the app.

Source code:

https://github.com/evothings/evothings-examples/tree/master/examples/arduino-led-onoff-tcp.

Tags:

201802, Arduino, Ethernet Shield W5100.

Author:

 

Description:

This Project shows how to make an app that controls an Arduino board, by communicating over the TCP networking protocol. Communication with the Arduino is made using a WiFi shield or an Ethernet shield. When using an Ethernet shield, you communicate from your mobile device to a WiFi router, that in turn need to be able to connect to the IP-address of the Ethernet shield.

 

38

This example runs in Evothings Viewer on Android or iOS.You need to run this example in Evothings Viewer. Alternatively, you can build a Cordova application if you wish to distribute the app. You then need to include the Cordova plugin org.chromium.socket.

More about Evothings Viewer can follow the below:

https://evothings.com/doc/studio/evothings-viewer.html

Hardware:

Arduino.

Arduino Ethernet Shield

LED

Resistor 220 Ohm

39

How to get up and running

Follow these steps to get started with this example:

  • Wire up the Arduino board.
  • Open arduinowifi.ino or Arduino ethernet.ino in the Arduino development tool.
  • Enter the name and password for your WiFi network in arduinowifi.ino or configure your IP-address in arduinoethernet.ino.
  • Upload the program to the Arduino.
  • If using a WiFi shield, open the Serial Monitor Window and look for the IP address of the Arduino. (If the IP address is not displayed, check your WiFi network name and password.)
  • Run Evothings Workbench on your desktop/laptop computer.
  • Run Evothings Viewer on an iOS or Android mobile device and connect to the Workbench.
  • Launch the example “Arduino LED On/Off TCP” from the Workbench window.
  • Enter the IP address of the Arduino in the app.
  • If everything works, you should now be able to turn the LED on and off using the buttons in the app. If it does not work, check your wiring and that the right pins are used (remember pin 2 is used for output).
  • Now you can proceed with making your own sketch designs and add more buttons to the app.

Source code:

https://github.com/evothings/evothings-examples/tree/master/examples/arduino-led-onoff-tcp.

Tags:

201802, Arduino, Ethernet Shield W5100.

Author:

 

COMMENTS

Please Login to comment
  Subscribe  
Notify of