Skip to main content

Smart Home Components

Next, I need a Micro Processing Unit (MPU), Micro-controller (MCU) and the software.

After some design considerations, I have decided the brain of my system shall be a Raspberry PI.
  1. Raspberry is easily available. I have purchased mine at Taobao for less than S$70. It comes with a casing, power supply, 3xheat sinks, fan and a 16GB micro SD. This is the cheapest I can find.
  2. There are so many documentations, videos and websites on Raspberry Pi. 
  3. I watched a youtube clip showing Google Home assistant can be easily installed on a Pi. That sealed my decision to choose Raspberry Pi. 
The next piece shall be the automation software, Currently, the most popular Home Automation control software are Openhab and HomeAssistant. I do not have time to evaluate both and settled for Openhab as I am more of a Java programmer. In case anything that needs debugging, it will be easier for me (but it turned out that I do not really need to look at the code).
Image result for openhab

I like the Arduino development platform. Simple to programme and its support so many types of MCU. I decided to settle using ESP8266, a low cost, wifi enable MCU powerful enough for most IoT applications. The big brother ESP32 looks tempting but it cost about 3-4 time more. 

Image result for esp8266
There is a particular version of ESP8266 Wemos D1 mini which I like very much. It has a stackable design whereby various module can be stacked up without any soldering. It has quite a few models of temperature sensors, OLED display and accessories. More can be found on Wemos website.
Image result for wemos d1 mini
itead is a Chinese company which sells WIFI switches, lights and power plugs that are based on ESP8266 MCU. One unique thing about itead's sonoff range of products is it allowed flashing of custom firmware onto it. There are a few good 3rd parties firmware and I have chosen Tasmota. In the future blog post, more will be written Tasmota.

Comments

Popular posts from this blog

Xiaomi Mi Flora Chinese and International version comparison

Xiaomi Miflora sensor allows monitoring of the surrounding environment of the plant. It can monitor temperature, soil moisture, conductivity (acidity of the soil), ambience light. There are 2 versions of the sensor, international and Chinese version. Realistically, I cannot see the difference between the 2 versions. The left-hand side is the Chinese version and the right is the international version. Other than the packaging, the main difference is the price of the sensor. The International version cost 2x more. In other forums, there are discussions that the Chinese version cannot connect to the MiHome App. I have set my MiHome app to connect to China server and it is able to register the sensor correctly. For my usage, I will be connecting to Openhab to monitor the plants andusing  Thomas Dietrich MiFlora mqtt daemon  as the bridge between Openhab and the sensor. The International version is detected as Flower care and the firmware version is 3.1.9 wh...

Using ESP-Link transparent bridge (ESP-01 and Arduino Pro Mini)

Recently stumbled across an interesting open source project ESP-Link . Its main purpose is to network-enable a non-network microcontroller (MCU) such as Arduino Uno, Pro mini or Nano using ESP8266. The author termed it as "Transparent Bridge". The ESP and MCU  communicate via the serial link and there is a companion Arduino library EL-Client  for the MCU to connect up the network using MQTT, REST, TCP and UDP. Setup I have put together an ESP-01 and an Arduino Pro Mini for this experiment. I have chosen a 3.3 version Pro mini so that I do not need to do any voltage level shifting between the I/O pins. In order to have a stable voltage source, the ESP8266 is powered by Pro Mini and the Pro Mini "RAW" pin is connected to a 5v USB power source. The RAW pin can take voltage up to 12V. The reset pin of Pro Mini is connected to GPIO 0 of ESP-01. This enables the ESP-01 to reset the Pro Mini.   I have linked up an APDS 9960 sensor to it and periodically se...