WEMOS D1 MINI

As described in my post before i will start with a short description of the WEMOS D1 MINI, one of my first ESP8266 boards.

Basically i user the mini as test board and in varius combinations as sensor base in my home automation setup.

Basic features:

  • integrated usb-serial connector
  • integrated voltage regulator
  • powered by usb 5V or direct via pin 5V & 3.3V
  • reset button (pin RST)
  • onboard led (pin D4)
  • integrated 4MB memory
  •  

Most of my wemos i use with DHT22 or BME260 sensors and tasmota: https://github.com/arendst/Sonoff-Tasmota/wiki/Wemos-D1-Mini

Some i also use with one or two DS18B20 temperature sensors.

In all use cases i connect via mqtt and use node-red to push the mqtt values to an influxDB.

The mini has the advantage that it´s compact/small but have more exposed GPIOs like the ESP-01 for example. It´s also possible to make small setups with a connected D0 -> RST for deep sleep scenarios with very low effort while you have to soldering very small structures on the ESP-01.

Powering the mini with a 18560 battery and a deep sleep cycle of about 3600sec allows operation for several weeks or month without a fixed power source.

 

 

 

 


Links:

One of the best pinout descriptions and detail sites i know for the esp8266:

ESP8266 Pinout Reference: Which GPIO pins should you use?

 

Save Google API via Node-Red in influxDB & visualize with grafana

I was inspired by a video from Csongor Varga for a new project idea with my Node-Red. Basically he uses Node-Red for requesting the Google API and getting the travel time form home to work. My idea was then to request the data from the Google API and save them in my InfluxDB for further analytics.

I start with a Big Timer to limit the requests to a timeslot from 4:30am to 10:30am. Then i use the Switch and Join elements to limit the request to any tenth trigger. After that there is the http get with the Google API call.

For the following three change elements which extracts the values i want to save i use a json element for transforming the output of the http call.

The last join than aggregates the values to a new json which is than forwarded to the influxdb in a database called statistics.

The output than looks like this in the influxDB

> select * from travel_allach ORDER BY time DESC limit 1;
name: travel_allach
time distance duration duration_in_traffic value
---- -------- -------- ------------------- -----
1570212851482806984 60696 3331 3143
>

This is the output of the Grafana Visualization:


Links:

 

ESP Overview

Actual it´s nearly impossible to count all the variations of the actual ESP8266 and ESP32 developer boards availaible at amazon, bangoods and ali express. Neverthe less i´ll try to document some of the boards i actual use and what they´re good for in some of the next posts.  Over the time i´ve collected many of the „standard“ representatives and also some of the more unusual types. They all have in common that they´re available for hobby developer and electronics nerds.

The power supply for most of them needs  3.3V or 5V depends on if there are voltage converters included or not. The main use cases most people see in this little boards are building cheap little IoT devices on their own.

The start of my short introduction round will be the:

WEMOS D1 MINI

which was the first ESP8266 i´ve started with.

Over the time I collected several other devices, like the Sonoff Basic, Sonoff Mini, NodeMCU ESP8266, ESP01, ESP32, OBI WIFI plugs, LILYGO TTGO T-Journal ESP32, Geekcreit® ESP32-CAM WiFi + bluetooth Camera Module, HiGrow ESP32 and some others i will also try to describe and how or for what i´m using this.

Home network

Actual i´ll have to do an inventory of my home network. Here is a short overview of how i´ve done it till now. Due to a relocation next year i´ve to rebuild most of the network and reorganize the network structure. There for i want to establish ne zones. Today there are 3 Zones in my network:

  1. Living
  2. Basement
  3. Garage

Every zone is connected via Powerline Modules. I´ve started with Powerline in 2010 with Belkin 1000 Gigabit Kit. After some years 2 off 4 modules where defect so i switched completly to TP-LINK TL-PA8030P KIT.

The network bandwith fluctuates but i get about 600Mbit to the basement form the first floor. and about 200MBit to the garage. Thats more than enough for a HD Video stream and controlling the garage door from a Raspberry Pi.

Core of my Network is a Fritz!Box 7590 + FRITZ!WLAN Repeater 1750E and a Synology DS-916+ with 8GB RAM an 16 GB Harddrives. For the basement i use a Fritz!Box 7360SL as WiFi AP and a BlackBox SmartSwitch for all connected devices. In the garage i use a Fritz!Box 7170 for Wifi and a Raspberry PI B 2.0 for the garage door opbener and a magnetic switch sensor to get the information about the door state. I will document the garage setting in a future post when i´ll set it up on the new location.

restart …

What could i start with? This will be my platform to share the projects i´ve done or doing in scope of IoT and homeautomation.

As of today i´m working with:

  • Raspberry Pi (12x)
    • Zero (1x)
    • Zero W (2x)
    • 1 Mod B (3x)
    • 2 Mod B V1.2  (2x)
    • 3 Mod B  (2x)
    • 4 – 2GB (2x)
  • ESP8266/ESP32
    • LoLin NodeMCU(3x)
    • Wemos D1 (24x)
    • Wemos Mini Pro (3x)
    • ESP-01 (5x)
    • Sonoff Baisc (1x)
    • Obi Powersocket (3x)
    • Sonoff RF Bridge (1x)
    • Ikea TradFree
    • ESP32 – HiGrow
    • ESP32 – TTGO Journal
    • ESP32 – CAM
    • ESP32 – NodeMCU
  • Sensors
    • BME280
    • BMP280
    • BMP680
    • AHT10
    • DS18B20
    • DHT22 (AM3201)
    • DHT11
    • MAX44009
    • HC-SR501 PIR
    • HC-SR04 Ultrasonic
  • Synology DS916+
    • Docker
      • Node-Red
      • OpenHab
      • Mosquitto
      • Grafana
      • Portainer
      • Telegraf