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 versio...

Get your BLE sensors data into Home Assistant in 5 minutes

You can now upload your board directly from the web browser!  So let's imagine you want to read data from a sensor like a Mi Flora, an LYWSD03MMC, a weight scale, or any other BLE sensor from this list  Plug an ESP32 dev board to your computer USB port Go to this website: https://docs.openmqttgateway.com/upload/web-install.html Select esp32dev-ble Click the install button Depending on your board you may have to press the BOOT button Choose the port that the ESP is connected to. Wait until the process is complete. Release the BOOT button That's it, OMG is now loaded into your ESP32 board without Arduino IDE, platformIO or a binary flasher. Here are the steps in images: Now comes the Home Assistant part: Add the MQTT integration and activate auto discovery Create a user and a password (Configuration->Users) without administrator right for the gateway Well, this is enough for Home Assistant. So let's now connect both: Check the Wifi Access points available with your smartph...

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  ...