hello,
I want to learn the procedure of turning on led over internet control how does it work?
Watching - Interesting topic
Well, there's a million and one way to do this, my suggestions are not going to be the only ones by any means. (EDIT: Looks like my prediction here was false!
)
--
Photon Wi-Fi dev kit - I'm pretty sure the first project you do in the provided tutorial/guide is an LED-blink-over-internet thing.
-- Dave's recent
Nixie tube project pulls view counts from the internet using a ESP8266 board + the Arduino environment. Along similar lines, here's
FirebaseArduino, one of the samples
FirebaseNeoPixel turns on a whole pile of LEDs under control of a Firebase realtime cloud database, which can be written to by any web app or phone app.
The other question is, you're incredibly vague about "over internet control". Perhaps if you expand upon exactly what you mean by this (with examples), we could provide more tailored suggestions.
What you need here is something to bridge between TCP/IP and GPIO.
For the cheapest solution, you can use an ESP8266 module and program it to connect to your Wi-Fi network and perform this conversion.
Stepping up a bit, there are Linux-based solutions like modules with AR9331, MT7688 or the Raspberry Pi Zero W.
For the TCP/IP side ESP8266 may need to use a stripped down protocol and develop using microcontroller-specific tools. If you need IPv6 more work will be involved. For Linux-based solution standard Web development tools will work, and it is much easier to implement dual stack support.
For the brave ones with Ethernet cables, try STM32F107 + DP83848 + PoE
Surprised nobody has mentioned MQTT -
https://en.wikipedia.org/wiki/MQTTThe thing doing the blinking (e.g. the client) published message of either "1" or "0" with the topic "user_bob/kitchen/light/1/state" (or whatever you want to call it) on an MQTT broker (e.g.
http://www.hivemq.com/try-out/, or a server running on a Raspberry Pi)
The end device (maybe a ESP8266 dev board) subscribes to the topic "user_bob/kitchen/light/1/state", and then sees the stream of requests for it to turn off and on.
You can then use an MQTT client on your phone to turn the LED in the kitchen off an on if you like...
Am example for an ESP8266 is here:
http://www.esp8266.com/viewtopic.php?f=29&t=8746
Also, not mentioned so far: a plain vanilla Raspberry Pi. Or a PC with a GPIO card, even.
I mean, if all I want is an LED under internet control, I'll just write a piece of software to give the internet control of my scroll-lock LED on my keyboard.
Also, not mentioned so far: a plain vanilla Raspberry Pi. Or a PC with a GPIO card, even.
I mean, if all I want is an LED under internet control, I'll just write a piece of software to give the internet control of my scroll-lock LED on my keyboard.
This comes in the same territory as my suggestion of Raspberry Pi Zero W or MT7688 module or AR9331 module. You don't need a lot of computing power to control a PWM signal (allowing for dimming the said LED) with some protocol wrapped in HTTP over TLS 1.2 client certificate authentication (IoT security 101 here.)
Hi rkproject,
As you are sounding like beginner (like me), I wont user many technical terms.
Bottom line is, to control any microcontroller over internet, the easiest solution is using ESP8266 wifi module. Its a standalone microcontroller and can be used without any microcontroller but generally used with Arduino and Raspberry pi.
The working example from where I controlled Arduino pin is this
LED control using Arduino internet.
Further I again learned more about ESP8266 by the resources on the same site, check their
ESP8266 Projects, as they have working examples with real pictures of connection, very helpful for a beginner.
Thanks.