ESP8266 Talking to AWS IoT Using MQTT

Arduino library connecting to the AWS IoT service from an ESP8266 using websockets and MQTT. GitHub: debsahu/esp8266-arduino-aws-iot-ws ⚠️ ⚠️ ⚠️ This is no longer maintained and obsolete, there is better way to do this: follow instructions from here Still want to use this, follow instructions below ⚠️ ⚠️ ⚠️ Arduino Library derived from joekickass/esp8266-arduino-aws-iot-ws to work with Arduino Dependencies Library Link Use arduinoWebSockets https://github.com/Links2004/arduinoWebSockets websocket comm impl PahoMQTT https://projects.eclipse.org/projects/technology.paho/downloads mqtt comm impl ArduinoJSON 6....

July 13, 2018 · Debashish Sahu

ESP8266 Making Google Home Speak

Using esp8266-google-home-notifier library on ESP8266 to make Google Home speak! Software Prerequisites/Limitations The GoogleHomeName must match the name of Google Home / mini setup in Google Home App. The ESP8266 must be on the same network as Google Home. MDNS: Dont include ESP8266mDNS.h supplied by Arduino-ESP8266. Internal ESP8266mDNS.h should suffice. Libraries required esp8266-google-home-notifier esp8266-google-tts WiFiManager (optional) GitHub: debsahu/GoogleSay sercret.h #define SECRET const char* ssid = "<WiFiSSID>"; const char* password = "<WiFiPassword>"; GoogleSay....

July 6, 2018 · Debashish Sahu

ESP32 Communicating With Xiaomi Flora Plant Sensor Using BLE

Using ESP32 to communicate with Xiaomi flora (miflora) plant sensor using BLE and posting the values on MQTT server. I also demonstrate the use of Home Assistant miflora sensor component. Change ESP32 Partition: https://desire.giesecke.tk/index.php/2018/04/20/change-partition-size-arduino-ide/ Home Assistant miflora sensor: https://www.home-assistant.io/components/sensor.miflora/ GitHub: sidddy/flora Archived code from https://github.com/sidddy/flora below config.h // array of different xiaomi flora MAC addresses char* FLORA_DEVICES[] = { "C4:7C:8D:67:11:11", "C4:7C:8D:67:22:22", "C4:7C:8D:67:33:33" }; // sleep between to runs in seconds #define SLEEP_DURATION 30 * 60 // emergency hibernate countdown in seconds #define EMERGENCY_HIBERNATE 3 * 60 // how often should the battery be read - in run count #define BATTERY_INTERVAL 6 // how often should a device be retried in a run when something fails #define RETRY 3 const char* WIFI_SSID = "ssid"; const char* WIFI_PASSWORD = "password"; // MQTT topic gets defined by "<MQTT_BASE_TOPIC>/<MAC_ADDRESS>/<property>" // where MAC_ADDRESS is one of the values from FLORA_DEVICES array // property is either temperature, moisture, conductivity, light or battery const char* MQTT_HOST = "10....

June 29, 2018 · Debashish Sahu

The Button: Amazon "Dash" Type Button to Communicate to Home-Assistant

An attempt to build a Amazon “Dash” type button to communicate with Home Assistant, which is a combination of two different projects GitHub: debsahu/TheButton Things we want to achieve: Low on power consumtion: ESP8266 is OFF when the button is not pressed debsahu/ESP_External_Interrupt Portable: Uses 18650 battery, lasts years Talks to Home Assistant: debsahu/HARestAPI ESP_External_Interrupt GitHub: https://github.com/debsahu/ESP_External_Interrupt HARestAPI GitHub: https://github.com/debsahu/HARestAPI

June 1, 2018 · Debashish Sahu

Image Recognition Using Movidius Neural Compute Stick on a RPi0W

Let’s build a security camera using Raspberry Pi Zero W and Movidius Neural Compute Stick to recognize a “person” on the video stream GitHub: debsahu/PiCamMovidius Set up NCSDK API Install required packages on Pi sudo apt-get install -y libusb-1.0-0-dev libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler libatlas-base-dev git automake byacc lsb-release cmake libgflags-dev libgoogle-glog-dev liblmdb-dev swig3.0 graphviz libxslt-dev libxml2-dev gfortran python3-dev python-pip python3-pip python3-setuptools python3-markdown python3-pillow python3-yaml python3-pygraphviz python3-h5py python3-nose python3-lxml python3-matplotlib python3-numpy python3-protobuf python3-dateutil python3-skimage python3-scipy python3-six python3-networkx python3-tk libboost-python-dev Clone NCSDK cd ~ git clone https://github....

May 27, 2018 · Debashish Sahu

MeshyMcLighting: NeoPixels Lighting Solution Using Mesh Network

Wouldn’t be cool for many McLighting (RGB LED lighting using NeoPixels) to talk to each other and synchronize? Here is my naive attempt at this, which requires McLighting to be served as stand-alone web-client. MeshyMcLighting What is this? Wouldn’t be cool for many McLighting to talk to each other and synchronize? Here is my naive attempt at this, which requires McLighting to be served as stand-alone webclient. Features Uses painlessMesh to create mesh network and broadcasts state to every node Does not need WiFi connection to internet, standalone mode + mesh Web interface is borrowed from “WS2812FX esp8266” example, completely served on ESP8266 Can do minimal file upload to SPIFFs Completely Async!...

May 16, 2018 · Debashish Sahu

Using RTL-SDR to Read Values From Wireless Electric/Gas/Water Meters

An attempt to use RTL-SDR to read values from wireless electric/gas/water meters and visualize these values on Home Assistant. Software Based on bemasher/RTLAMR Project: https://github.com/bemasher/rtlamr

May 5, 2018 · Debashish Sahu

RobinhoodAPI: Live Stock Prices From Robinhood on ESP8266

A simple Arduino library that retrieves live stock prices from www.robinhood.com in JSON format and processes it for ESP8266. In one example, we demonstrate a whole bunch of stock prices scrolling through a dot-matrix display. Github: debsahu/RobinhoodAPI An Arduino library to talk to Robin Hood using non-documented Rest API made for ESP8266. Some unofficial documentaion by @sanko is available at here] Using the Library Download this GitHub library. In Arduino, Goto Sketch -> Include Library -> Add ....

April 28, 2018 · Debashish Sahu

HARestAPI: Control Home Assistant Directly Using ESP8266

Control components on Home Assistant directly from ESP8266. This is an Arduino Library that can be used in various projects without the requirement of setup of a MQTT sensor + automation on HA. This uses RESTful API commands. Idea Control components on Home Assistant directly from ESP8266. Implementation Develop an Arduino Library that can be used in various projects without the requirement of setup of a MQTT sensor + automation on HA....

April 14, 2018 · Debashish Sahu

ESP8266 Based Color Sensor Talking to Home Assistant via RestAPI

Did you ever want to use ESP8266 to communicate to Home Assistant directly? Here we use a TCS34725 color sensor to read colors and change a RGB light in Home Assistant to the color observed. Hardware TCS34725 color sensor SSD 1306 OLED Wemos D1 mini (ESP8266) Software RGB Lights connected to Home Assistant toblum/McLighting Aircoookie/WLED

April 7, 2018 · Debashish Sahu