Accéder au contenu principal

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.
  • Plants
  • Cup of something in plastic
Connected light
  • FTDI so as to program the Arilux the first time (after you can upload by Over The Air update)
  • Arilux AL-LC0X
  • Power supply for the arilux
  • Rgb led strip
  • Glue 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 parts, my advice is to solder temporary the breadboard type wires to the Arilux board.

Set your credentials and servers into config.example.h and rename it to config.h:
  • Uncomment the model of Arilux you are using and the line below the model, in my case it's:
#define RGB
#define DEVICE_MODEL "LC01"

  • Set your WIFI_SSID
  • Set your WIFI_PASSWORD
  • Set your MQTT_SERVER
  • Set your MQTT_USER & MQTT_PASS, if you don't use MQTT credentials let them as they are

Upload the firmware to the Arilux.

Open a command line so as to see the messages coming to your MQTT broker, if you are using mosquitto you can see all the traffic by typing:

mosquitto_sub -t +/# -v

Connect and RGB led strip and power the Arilux.





You should see a status message saying the Arilux is alive. The topic of your Arilux will depend on you chip id and will begin by RGB.

Now let's try to turn ON the lights.

So as to turn the light ON you can publish the following command (replace the first parts of the topic by the identification you gathered with the state topic:

mosquitto_sub -t rgb(w/ww)/<chipid>/brightness/set -m 255
mosquitto_sub -t rgb(w/ww)/<chipid>/color/state -m "255,255,0"

And you should see the lights ON!!

Now unplug the Arilux and remove the led strip.

Cut it to a length so as to fit into the smaller cap.


Drill a hole into both caps so as to pass the powerr cable of the Arilux, put the led strip into the smaller cap and paste it with a glue gun. Paste after the smaller cap into the bigger one.





Close the recipient with the bigger cap and try to power it up and change the colors.



Now you can remove the cap and fill your terrarium with the little stones, the earth and the plants. 

Here is some view of how it looks like.



Commentaires

Posts les plus consultés de ce blog

433toMQTTto433 - Bidirectional ESP8266 NodeMCU gateway between RF 433Mhz signal and MQTT

The goal  is to act as a gateway between 433Mhz sensors and a MQTT broker or between the MQTT broker and 433Mhz actuators, It enables to: receive MQTT data from a topic and send RF 433Mhz signal corresponding to the received MQTT data  publish MQTT data to a different topic related to received 433Mhz signal  It can be an interesting part in an home automation system so as to interface sensors and actuators (wall sockets) with software like openhab . List of compatible sensors here The interest of putting this gateway to an ESP8266 and not on a raspberry pi is to be able to manage security actions at gateway level (power on a siren, cut power to certain devices) following RF data received by sensors without being dependent to the PI for security related actions. [EDIT] all infos are now centralized into  the github repository  take a look at it you will find up to date info about OpenMQTTGateway You need: Software: Mosquitto Arduino IDE latest version (tested ok with 1.6.10

Infrared IR, 433mhz and MQTT on ESP8266 bidirectional gateway OpenMQTTGateway

Following discussions on the home assistant forum people gave me the idea to add Infrared communication to the 433mhz gateway.  The goal is to act as a gateway between 433Mhz sensors, infrared remote controls and a MQTT broker or between the MQTT broker and 433Mhz actuators, infrared devices, It enables to: receive MQTT data from a topic and send RF 433Mhz signal corresponding to the received MQTT data  publish MQTT data to a different topic related to received 433Mhz signal  receive MQTT data from a topic and send infrared signal corresponding to the received MQTT data  publish MQTT data to a different topic related to received infrared signal  It can be an interesting part in an home automation system so as to interface sensors and actuators (wall sockets), your tv, home cinema, hifi ... with software like  openhab  or home assistant . List of compatible RF sensors here [EDIT] all infos are now centralized into the github repository  take a look at it you will find up to d

SONOFF RF BRIDGE + Pilight or How to extend the supported protocols by our little bridge

With version V0.9 of OpenMQTTGateway  @steadramon  &  @puuu  (the ESP library creator) enabled by their work to integrate Pilight library on OMG. Permiting to increase significantly the list of RF protocols of OMG . But now that we have this interesting possibility and with the goal of OMG of beiing multi boards compatible, why not trying to put Pilight on a Sonoff RF Bridge . So as to do this test I ordered a new one so as to be on the same hardware as most of the users (my other RF Bridge is a demonstration old one) So as to decode RF signals the Sonoff RF Bridge has a special dedicated chip (EFM8BB1)  that communicate with the esp8285 with a serial connection. If we want to increase the number of RF protocols compatibles on the device without modifying the hardware, the only software based solution is to hack the  EFM8BB1. This hack is available and made by @ Portisch . The list of protocol is interesting but at the moment not as big as Pilight one. Maybe I will t