filmov
tv
Controlling Arduino UNO Lights over Internet via ESP8266 WiFi Module - IoT Internet of Things

Показать описание
Here is a demo how Arduino can be controlled over Internet or WiFi using ESP8266 WiFi Module. This one is ESP-01 version.
To be honest, It took a while to make it communicate with browser effectively without freezing (giving "busy p..." error message), because when you try to close connection using command AT+CIPCLOSE, the module will not accept any more connections. Instead I had to send to browser valid HTTP Header, and one of headers was to close connection. When browser closes connection after page is loaded, the ESP8266 can accept another connection right away. That was the biggest issue.
I created a C++ library for ESP8266 to make easier communication with the module, otherwise sending commands and waiting for not standard responses is just too much code and mess. Now this UNO can serve HTML Web pages to any browser.
I am sorry I can's share the Library at this time, its far from complete. But I could not find a working library for ESP8266 do get this job done, so had to build my own.
As you can see I made a nice adapter board for ESP8266 module to make it possible to plug into breadboard, and added RESET and PROGRAM buttons, while eliminating clutter on breadboard. I also made a nice breakout board for Arduino UNO chip. Chip can be replaced, and FTDI USB-to-Serial adapter plugs right in, which can program and provide power to Arduino. This breakout board has everything needed to run and develop on Arduino:
1. Plugs into breadboard
2. Provides 3.3v power with 100uf Capacitor for devices, such as ESP8266
3. Has header sockets for pins, so can be used without breadboard for simply things
4. Has Reset button
5. Has LED with resistor connected to pin 13 (Red)
6. Has crystal oscillator with 22uf caps
It's very small in design, and also eliminates bunch of extra wires and components on breadboard, allowing cleaner work place.
To be honest, It took a while to make it communicate with browser effectively without freezing (giving "busy p..." error message), because when you try to close connection using command AT+CIPCLOSE, the module will not accept any more connections. Instead I had to send to browser valid HTTP Header, and one of headers was to close connection. When browser closes connection after page is loaded, the ESP8266 can accept another connection right away. That was the biggest issue.
I created a C++ library for ESP8266 to make easier communication with the module, otherwise sending commands and waiting for not standard responses is just too much code and mess. Now this UNO can serve HTML Web pages to any browser.
I am sorry I can's share the Library at this time, its far from complete. But I could not find a working library for ESP8266 do get this job done, so had to build my own.
As you can see I made a nice adapter board for ESP8266 module to make it possible to plug into breadboard, and added RESET and PROGRAM buttons, while eliminating clutter on breadboard. I also made a nice breakout board for Arduino UNO chip. Chip can be replaced, and FTDI USB-to-Serial adapter plugs right in, which can program and provide power to Arduino. This breakout board has everything needed to run and develop on Arduino:
1. Plugs into breadboard
2. Provides 3.3v power with 100uf Capacitor for devices, such as ESP8266
3. Has header sockets for pins, so can be used without breadboard for simply things
4. Has Reset button
5. Has LED with resistor connected to pin 13 (Red)
6. Has crystal oscillator with 22uf caps
It's very small in design, and also eliminates bunch of extra wires and components on breadboard, allowing cleaner work place.
Комментарии