X
Advertisement

1,046 questions

1,221 answers

206 comments

785 users

How to send commands to arduino connected to the Internet?

583 views
0 votes
How to send commands to arduino connected to the Internet?

Consider an arduino board + WiFi shield connected to the Internet using my local home WiFi router. I want to send a command to the arduino board to turn on a LED from my server in the cloud. I can think of the following 4 ways in which this can be done, but wanted to know if there was a de-facto standard way of doing this?

1. Polling: Arduino board keeps polling the server to check if it needs to turn on the LED.

2. Long lived HTTP connections: Arduino board makes a GET HTTP request to the server, and the server does not respond until it wants the LED to turn on.

3. Websockets: Assuming arduino WiFi shield supports it, arduino board initiates a websocket connection with the server and gets the message to turn on LED.

4. Web server: Arduino board starts a webserver (after a bit of port forwarding magic on my WiFi router) and my server in the cloud sends it a GET HTTP request to turn on the LED.
asked Jul 4, 2013 by email (3,720 points)

1 Answer

0 votes

Check this link out it should give everythign you need.  There are a lot of blogs etc that do this, many geared for robots or home automation.

https://blog.adafruit.com/2013/09/17/internet-of-things-to-make-wireless-relay-control-with-arduino-the-adafruit-cc3000/
answered May 13, 2016 by gilshultzhome-com (17,730 points)

Related questions

  • 0 votes
  • 1 answer
  • 134 views
  • 0 votes
  • 1 answer
  • 497 views
  • 0 votes
  • 3 answers
  • 1.9K views
  • 0 votes
  • 1 answer
  • 105 views

1,046 questions

1,221 answers

206 comments

785 users

Latest Article Comments

Measuring Air...
"@sasitharan73: The mentioned components is a 10K PTC Thermister (1002). Note, this revision (P)"
Measuring Air...
"I purchased the Wind Sensor Rev. P model. In that model i want some details about the component and"
Build Your Own Digital FM Radio Transmitter with...
"Thank you, T.K. Will report back"
Build Your Own Digital FM Radio Transmitter with...
"@porrick: Not tried NS73M FM module yet! Usually you need to connect just 6 pins of NS73M for"
Build Your Own Digital FM Radio Transmitter with...
"Do I even need to solder leads to all 8+7 (15)"
Build Your Own Digital FM Radio Transmitter with...
"Hi - I bought an FM transmitter from SparkFun (product URL at bottom). In fact, I bought ~8 of"
S-Video to RCA Cable...
"correction (test it): White (blue wire) is L audio, Red is R audio. image for"
Continuity Tester Differentiates...
"One more change I did, I replaced the green led with a 3v"
Continuity Tester Differentiates...
"Tried a 3.7v small lipo and still works. This is perfect for checking pcb"
electroschematics group on facebook
...
  Search 4 million + Products
Browse Products