How to blink led over internet control - Page 1
Forum section: electronics / general

author: rkproject
author_rank: Newbie
timestamp: June 19, 2017, 04:28:26 am
content: hello,I want to learn the procedure of turning on led over internet control how does it work?

author: ez24
author_rank: Super Contributor
timestamp: June 19, 2017, 04:31:29 am
content: Watching - Interesting topic

author: rs20
author_rank: Super Contributor
timestamp: June 19, 2017, 04:40:20 am
content: 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 recentNixie tube projectpulls view counts from the internet using a ESP8266 board + the Arduino environment. Along similar lines, here'sFirebaseArduino, one of the samplesFirebaseNeoPixelturns 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.

author: technix
author_rank: Super Contributor
timestamp: June 21, 2017, 01:00:35 am
content: 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

author: hamster_nz
author_rank: Super Contributor
timestamp: June 21, 2017, 02:38:47 am
content: 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

author: Kjelt
author_rank: Super Contributor
timestamp: June 21, 2017, 09:03:45 am
content: For wireless see above.For wired you might try out the freertos+tcpip stack and the mentioned dev board.I would like to dig in to this one for sometime already but lack the time, however it looks promising since the painstaking integration part has already been taken care off.In theory you just have to use and handle the standard Berkeley socket calls.http://www.freertos.org/FreeRTOS-Plus/FreeRTOS_Plus_TCP/TCP-IP_FAT_Examples_ST_STM32F407.html

author: rs20
author_rank: Super Contributor
timestamp: June 23, 2017, 01:50:46 am
content: 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.

author: technix
author_rank: Super Contributor
timestamp: June 23, 2017, 02:45:54 am
content: Quote from: rs20 on June 23, 2017, 01:50:46 amThis 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.)

author: jaesh
author_rank: Newbie
timestamp: June 29, 2017, 12:09:48 pm
content: 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 thisLED control using Arduino internet.Further I again learned more about ESP8266 by the resources on the same site, check theirESP8266 Projects, as they have working examples with real pictures of connection, very helpful for a beginner.Thanks.