Accéder au contenu principal

Articles

Affichage des articles du 2018

Connected terrarium with arilux module

One easy thing that you can build with your child is a terrarium, but what about mixing this achievment with your DIY competencies and transform it into a connected terrarium.
Here is how to do it:
Bill of materials : 
Terrarium
Big recipient in glass with a top that can be drilled or cut (so as to pass the alimentation cable)A cap in plastic of another recipient that can fits into the bigger cap Different earth or little stones color.PlantsCup of something in plasticConnected light
FTDI so as to program the Arilux the first time (after you can upload by Over The Air update)Arilux AL-LC0XPower supply for the ariluxRgb led stripGlue gun


Step 1 :  Connected light

We are not going to use the stock firmware of the ARILUX (of course ;-) so as to connect it to a home automation controller (in this case OpenHAB).
We will load into the Arilux the firmware from mertenats 
So as to load the firmware follow the instructions on the first page of the repository, I used Option 2 to avoid soldering on tiny pa…

A community space for OpenMQTTgateway discussions

With the increase of OpenMQTTgateway users the current community ecosystem composed of github + a gitter chat is showing its limits, especially for the chat which doesn't enable to structure discussions around a subject. 
So as to have more capitalisation on the questions, answers and informations coming from the community I'm introducing a forum based on discourse
Giving the opportunity to build together a knowledge base around OpenMQTTGateway.




Hope you enjoy it, don't hesitate to post questions and share your thoughts, ideas or information around OpenMQTTGateway.

OpenMQTTGateway now reads Xiaomi Mijia Temperature and Humidity sensor

In the path of integrating BLE devices to OpenMQTTGateway I have found the Xiaomi Mi Jia Humidity and temperature sensor to be a good candidate.

This little indoor sensor is able to measure temperature and humidity and to transmit these data by bluetooth low energy to your smartphone.




As we already integrated another BLE device (Mi Flora) why not extending the integration scope of OpenMQTTGateway to this one.

I ordered one to see if I was able to extract data from it. After a few weeks, I received it, a first test with nRF connect application showed me that this device diffuses data in a quite similar way compared to Mi Flora (using BLE service data exposition).

From this point I had to determine the differences between the data sent from mi flora and the data sent from mi jia hum & temp sensor. The reverse engineering was similar to the one done with Mi Flora and with some offset implementation in the program I was able to read easily the humidity and temperature of the sensor.

You ca…

Adding infrared emitter to SONOFF RF BRIDGE

With the add of  SONOFF RF Bridge  to the OpenMQTTGateway compatibility list we were able to send and receive 433mhz by MQTT. 
The interesting thing with OpenMQTTGateway is the ability to have on one board several gateways (RF, IR, BLE and more to come ;-). 

The last versions of SONOFF RF BRIDGE as two IO free pins, why not using these pins to add a new gateway to this little cheap device and control more devices.



If we follow the interest of the different gateways you are more interested on RF and after comes IR infrared.

My choice came in this case to add an infrared emitter to the RF Bridge, with this gateway we are adding the capacity of controlling TV, DVD, hifi...

On the hardware side, I followed the same schematic for IR setup with ESP8266 with just a little add a protection resistor of 1K for the IR led.
The other resistor is connected between the transistor base and IO5 of the RF Bridge instead of D0.
The IR led is powered by the 3,3V of the Sonoff RF Bridge.

The schema:


Here is how i…

ESP32 compatibility, 433mhz 315mhz communication, BLE presence detection and mi flora readings

While I was waiting for the ESP32 developement environment to be enough mature I found a presence detection implementation from @touliloup. It was the opportunity to put my hands on the ESP32 dev board that was waiting for me.



I started with the BLE gateway development. The first attempt with the libraries supplied with the Arduino ESP32 environement was not successfull. I had to add the library from Neil Kolban : https://github.com/nkolban/ESP32_BLE_Arduino/tree/master
With the examples provided it was quite easy to setup a first system that display on the serial monitor the BLE devices nearby.


The next step was to integrate the function with MQTT and by the way to recover the same level of funcionnality we already had with esp8266 + hm10. Not so difficult until there.
The goal of OpenMQTTGateway is to be able to have on a single system several gateways so as to centralize the telecommunication part of your controller.  In this context the following is easy to guess ;  add another tele…