Hey everyone, in this instructable, I will show you how to make an internet connected plant monitor. This is heavily based on the planterbot, one of my older instructables. The photography and instructions were of lower quality, so I decided to make a revamped version.
The monitor connects to your router and creates a webserver that shows the stats of the plant, like if it is getting enough light, water or heat. The built in display can also show the information on the display if you are near the bot. To make connecting to the webserver easy, the main display shows the IP address that you will need to wirelessly connect to the device.
The reason why an arduino uno is used is because of how difficult it is to get a 16x2 LCD to work on the linkit one board. This is because most libraries are not compatible with the different chip that the board uses. While porting the library is an option, I quickly realized that I am not capable of doing it.
Step 1: Parts and Tools
Here are the parts and tools that you will need to make this project:
linkit ONE microcontroller
arduino uno or arduino clone
aluminum foil or tape
1x 1MΩ (or 2x 510KΩ)
Soldering iron and solder
Hot glue gun and hot glue
Step 2: Wiring
Download the attached wiring diagram to make the required connections to the boards.
Step 3: Code for Arduino UNO
Download the attached arduino sketch and upload it to the arduino uno.
Step 4: Code for Linkit ONE
Download the attached code (the first one) and open it in the arduino IDE. Now, change the line that says "#define WIFI_AP "Your Network" " and change "Your Network" to the name of your wifi network. Do the same with the line of code after that, but change "Your Password" to the password to your wifi network. Now, upload it to the Linkit ONE. Open the serial monitor and copy the first IP address shown as you will need it later.
Now that you have the required IP address, change the two lines like in the previous step. Then, upload the second (final) code to the linkit ONE
Step 5: Assemble the Enclosure
The laser cut parts fit together to make a small box. To build the box, start by placing the piece with the large hole on a table, making sure that the light sensor port is facing away from you. Let's call this part "the main part". Then, place the piece with the single hole on the left side of the "main part", then the plain part to the right of the "main part".
If that made any sense, you should be left with a part with a rectangular hole about the size of the LCD. Let's call this piece the "LCD mount". You should also have a pice identical to the "main piece", only this one doesn't have any holes in it. We will call this piece the "bottom" of the case.
Now, attach the "lcd mount" to the "main piece", making sure that it is facing you. Now, place the piece that says "designed in canada" and place it on the "main piece", parallel to the LCD mount.
Step 6: How to Use
To use this device, plug the linkit one board into a power source, either through USB or a battery. Now, paste in the IP address that you found into a search bar and press enter.