In the last blog, I set up the hydroponic system so I can observe the setup remotely. I was a bit tired of staying home due to COVID-19 and we decided to take vacation. But I wanted to check if the hydroponic system is still in good shape without any care on site. For this work, I implemented the following items.
1. Remote light switch control by an off-the-shelf IOT outlet (SmartOutlets) and smart phone app
2. Implemented RTC (Real Time Clock) and taking logs every 5 seconds
3. Using VNC server and client apps on smart device (ex: iPhone and iPad), monitor the plants remotely and Compare the before and after vacation pictures.
1. Remote Control Setup (vacation ready )
2. RTC and data log implementations
By making good use of Infineon example codes of RTC, I used RTC.h header file and RTCClass for XMC4700 relax kit.
The one thing to keep in mind is we need to set the current initial data. Here is how the RTC codes are implemented.
Using virtual UART console, we print out logs of data with timestamp from RTC codes. Here is an example.
The first line is the printout of the RTC timestamp.
3. Remote Sensing and observation of the smart hydroponic system
Here is a snapshot of the VNC client app on iPad. With a real sense camera, we can monitor the growth of the plans and check the log on UART console.
As depicted in the picture below in blue, only after 9 days, the water level went down by about 10 cm. It is too bad that the water level sensor is damaged but this water level sensor will alert users when the water level is too low by a buzzer and UART console log