#15 Iot Vase With micro:bit
Flowers thrive when provided with the right conditions. Especially for the flowers we nurture at home, providing the correct conditions can be a bit challenging, making their care more complex. The optimal conditions for flowers include values such as the brightness of the environment, soil moisture, and the temperature and humidity of the surroundings. Particularly, some flowers we grow may prefer sunlight, while for others, sunlight can have the opposite effect. Similarly, while some flowers need frequent watering, others may react negatively when too much water is poured.
In this way, we can provide various examples based on different factors and types of flowers. To overcome such negative situations, we occasionally change the locations of flowers or adjust our watering frequency based on the type of flower. However, these measures may not be applicable when we are not at home. In such situations, IoT devices come into play. Through IoT (Internet of Things), as we learned and experienced in the "IoT Control Panel" project, we can communicate our devices with each other. Thanks to advancing IoT technologies, we can monitor the condition of our flower instantly by connecting the vase we use at home to our phone. The values we will monitor can vary based on the type and number of sensors attached to our vase.
We will communicate any vase we use at home with our smart devices by using PicoBricks modules and ThingSpeak.
In this project, we will obtain some data from the PicoBricks modules, specifically the Temperature & Humidity module, the LDR module, and the soil moisture sensor module connected to the P1-P2 connector. We will transfer these data to the "IoT Vase" channel that we created on ThingSpeak. At the same time, we will display these transferred data on the PicoBricks OLED screen. Additionally, we will ensure the watering of the plant by running the water pump connected to the motor driver based on the values obtained from the soil moisture sensor.
Note: If you want, you can manually stop the water pump by pressing the A button on the Micro:bit.
Connection Diagram:
You can prepare this project by breaking PicoBricks modules at suitable points.
Project Images:
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Usage of ThingSpeak
-
Go to the https://thingspeak.com/ address.
-
Click the “Get Started For Free” button.
-
If you have a MathWorks account for ThingSpeak, you can log in by entering your email and password. If you do not have an account, you can create a new one by clicking the 'Create one' button.
-
After logging into your account, click on the 'Channels' button.
- Click the “New Channel” button.
-
Fill in the information in the window that opens as follows, and click the 'Save Channel' button.
-
We created the channel required to print the data obtained from PicoBricks modules. We will use the following API keys in the code blocks we will create in MakeCode to write the data to the channel.