Quantcast
Channel: HomeSeer Message Board
Viewing all articles
Browse latest Browse all 4847

ESP8266 - Proof of Concept

$
0
0
For those not aware the ESP8266 is a small, quite powerful Wifi microcontroller. It is now able to be programmed via Arduino and has replaced Arduinos in most of my projects (even ones not requiring Wifi).

There are alot of impressive features that make it ideal for use with the plugin:
  • Wifi!
  • Cheap! ~$5US for dev kit
  • Possible to reload firmware wirelessly.
  • 4M Flash memory
  • Can run a webserver/MQTT/etc.
  • 1 Analog In (poor)
  • PWM support on all pins.
  • I2C, OneWire, 2 UART, SPI
  • 12 GPIO on NodeMCU Dev kit.
Attached is the plugin sketch i hacked up a bit to run on the ESP8266. To program it via arduino you'll have to add the board/follow the instructions here:
https://github.com/esp8266/Arduino#i...boards-manager

There's alot of different ESP8266 products out there, but for something Arduino like I'd suggest the NodeMCU dev kit (V1.0).


Keep in mind the ESP8266 is 3.3V I/O, where as most Arduinos are 5V.
The ESP8266 Analog input is pretty poor (and only 1CH). I'm going to look at using an external ADC instead...

In the attached sketch OW pin is NOT configurable and hardcoded to 10 (SD3).
So far I've only tested Digital Input/Output, LCD and OneWire but it seems to work well.

I thought i'd share this see if there's much interest and possible consideration for official support in the plugin. (I'd be happy to help clean up the Arduino code).

Attached Files
File Type: zip Homeseer.zip (4.4 KB)

Viewing all articles
Browse latest Browse all 4847

Trending Articles