GPT Plant

by niv2802 in Circuits > Arduino

208 Views, 2 Favorites, 0 Comments

GPT Plant

WhatsApp Image 2023-02-09 at 10.01.27.jpeg

Hello everyone!

Unfortunately, we still cannot understand the language of animals, but what if I tell you that we can understand and communicate with plants, will you believe me?

With a few number of instructions and steps anyone who interested can do it.

Our robot will be able to understand when the plant is "thirsty" and update us accordingly with a message (since we know that water is conductive, the robot will be able to understand

the soil moisture).

In addition, when the plant feels threatened by insects or birds, the robot will use its proximity sensor and drive them away with an alarm.

And when there is a strong wind the robot will send us a message to avoid the pot from falling.

Supplies

WhatsApp Image 2023-02-08 at 10.32.00 (1).jpeg

CPX (Circuit Playground Express) connected to a ESP8266 chip (enable the CPX to connect to the WIFI).

Micro-USB cable

Batteries

Alligator clip

Robot (or any other scary doll)

And of course a plant

Cellotape

Spoon/Screw (or any other metal stick)

Download the code below

Downloads

Building the Robot

WhatsApp Image 2023-02-09 at 10.00.55.jpeg
WhatsApp Image 2023-02-09 at 10.00.55 (1).jpeg

Stick the controller to the robot (or doll).

Connect one side of the alligator clip to the controller on exit A1 and the other side to the spoon/screw.

Put the other side of the spoon/screw into the soil of the plant,

About the Technologies

In this project we are using 3 technologies that works together in collaboration:

1. CPX :

CPX is a hardware board that has a lot of sensors like temperature sensor, light sensor, sound sensor, proximity sensor and etc, Neo pixels and buttons.

2. Blynk Application:

Blynk is an IOT platform that interact with the CPX and the internet. The Blynk application knows how to transfer data to and from the CPX and to and from the internet.

3. Integromat Site:

Integromat is an online automation platform, it helps you link two or more applications so one's action affects the action of the other.

Set Up Blynk

Blynk - Sign Up.png
Blynk Setting
צילום מסך 2023-02-08 125203.png
6.png

Open an account on Blynk

Click on 'New Template' and create your template and set the Datastreams and Web Dashboard as in the video.

In the Datastreams we define the 3 virtual pins (V2, V4, V7) for the Humidity Sensor, Proximity Sensor and the Wind Speed.

In the Web Dashboard we can see the values updating in real time according to the data.

In the 'Device Info' there is the firmware configuration you should the BLYNK_TEMPLATE_ID, BLYNK_TEMPLATE_NAME, BLYNK_AUTH_TOKEN, and swicth them in the code file.

You should also changed in the code file to your WIFI and password.

Set Up Make (integromat)

Make Setting
צילום 2.png
צילום 5.png
7.png
8.png

Open an account on Make (Integromat)

  • Click on 'Scenarios'
  • 'Create a new scenario'
  • 'Edit'
  • 'Add a module'
  • Choose Webhook and click on custom Webhook

And then fill it according to the video.

Click on 'Add a router' that split to two objects.

Click on 'Add a new module' choose 'Android', Send text message.

And then add another module for weather and enter your city.

Conncet the weather object to a new router that will connect to 2 new modules, 'Android' and 'HTTP request'.

To the android please add your phone number and the message you want to get for a strong wind.

We will explain later how to fill the HTTP request.

Connect Blynk to Make

Send the data to Make

In this video you will learn how to connect Blynk to Make and transfer the value of humidity level of the plant to the Make.

Set Up the Condition for Messaging to Your Phone

new 1.png
new 2.png
3.png
4.png

Click on the wrench between the router and the android and choose 'Set up a filter' this is the condition that when it's happening the robot will send text message to your phone.

Fill it like in the picture.

Between the router and the second android do the same but fill it like the second picture, this is the condition for the wind level that if necessary you will get a message to your phone.


On the HTTP object put the URL below:

https://blynk.cloud/external/api/update?token={token}&{pin }={value}

Replace the 'token' that inside the bracket to your token and 'pin' to 'V2' and the 'value' to 'WindSpeed'.

At the URL you should put your location before the word blynk like in the picture.

Enjoy

GPT plant - Humidity Level
GPT plant - Proximity Level

In addition to the text message, when the plant needs water you could see the red light blinking on the controller.

And when something getting too close to the robot (insects or birds) the robot will turn on his alarm and run him away.