element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Sustain The World - Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Sustain The World - Design Challenge
  • More
  • Cancel
Sustain The World - Design Challenge
Blog Measure Climate Change with Hydroponic System Blog #4 | Sunlight Sensor and Water Purity
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: kurama007
  • Date Created: 28 Aug 2020 10:17 PM Date Created
  • Views 939 views
  • Likes 4 likes
  • Comments 5 comments
  • xmc4700
  • sustain the world
Related
Recommended

Measure Climate Change with Hydroponic System Blog #4 | Sunlight Sensor and Water Purity

kurama007
kurama007
28 Aug 2020

Recap

1. Measure Climate Change with Hydroponic System Blog #1 | Concept Design and Plans

2. Measure Climate Change with Hydroponic System Blog #2 | XMC4200 Bring-up and Hydroponic System

3. Measure Climate Change with Hydroponic System Blog #3 | XMC4700 + DC Motor Shield with Hydroponic System

 

Highlights

 

This time, i added a couple of sensors to the hydroponic system. Also, I invited some duck and car for entertainment image.

 

Here is a list of the highlights of Measure Climate Challenge #4 blog.

 

1. Add more sensors to XMC4700 Relax Kit on Visual Studio Platform IO

a. Sunlight Sensor image

b. Water Level Sensor image

c. TDS (Total Dissolved Solids) Sensor image

2. Power Supply Automation by Python image

3. Measure TDS, Water Level, Sunlight related parameters image

 

This picture below is the current setup! To test the water level and TDS value effectively, one small glass of water with Basil was used for the experiment over 1 week.

image

 

Details

 

1. Adding more sensors

I added a Sunlight Sensor, TDS Probe, and Water Level Sensor. For ease of wiring, I purchased the Grove Arduino Uno Shield. This is cheap but does the job very well. I only need one but bought two because the shipping cost was expensive image The details are summarized on my website here https://green-scientist.com/2020/08/22/grove-arduino-uno-base-shield-with-infineon-xmc4700-relax-kit-and-motor-shield/ .

image

You can see water bubble from the air stone inside the glass. There are TDS probe and water level sensors.

 

For accurate measurements, the water level sensor needed to be wiped periodically with a kitchen paper. Otherwise, it stopped showing the correct water level value and just returned zero image This sensor needs extra care ...

 

Unprofessional engineering notes are listed for the sensors below.

Sunlight Sensor Learning: https://green-scientist.com/2020/08/18/sunlight-sensor-with-si1145-and-arduino-platform-io/

Water Level Sensor Learning: https://green-scientist.com/2020/08/23/grove-water-level-sensor-with-arduino-xmc4700/

 

2. Python Automation

As the system becomes bigger, I wanted to have some automation for power-on, power-down sequence and testing. Python is used for automation of this hydroponics project. Within MS Visual Studio Code, Jupyter Notebook can be plugged in to run the sections of codes. This is very useful during debugging.

 

The code below is to program Siglent Power Supply SPD3303 for the Infineon DC Motor Controller Shield as the input voltage. This motor controller turns on and off the air pump for the hydroponic system automatically.

image

 

3. Testing

With the XMC4700/Arduino Serial Port, the sensor values were recorded and displayed every 3 seconds.

Here are measurement logs on Serial Port Console.

 

8/23/2020

image

This was the water level about a week ago. By eye inspection, the water level is about 80cm. This matched with the above log from the hydroponic system.

image

 

After about 1 week of the measurements, TDS value increased by ~ 10% and water level went down 15 % (= 15 cm)

 

8/28/2020 log

image

This is the comparison table between 8/23/2020 and 8/28/2020.

 

Aug 23, 2020Aug 28, 2020
TDS Value62.19 - 71.77ppm62.19 - 81.23ppm
Water Level80%65%

 

According to aquasana.com, TDS value between 0 and 100 is ideal. So far, the water quality seems very good image

image

 

 

Next Steps

I would like to add air flow and the Infineon 3D sensor to control the air circulation. I would like to monitor the environment around the hydroponic system to understand the behavior more image

  • Sign in to reply

Top Comments

  • DAB
    DAB over 5 years ago +1
    Nice update. DAB
  • kurama007
    kurama007 over 5 years ago in reply to DAB +1
    Thank you, DAB. Satoshi
  • jw0752
    jw0752 over 5 years ago +1
    Hi Satoshi, I enjoyed your post. this is a great experiment. John
  • asokfair
    asokfair over 5 years ago

    Nice one!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kurama007
    kurama007 over 5 years ago in reply to jw0752

    Thank you John for the kind words image

     

    Satoshi

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jw0752
    jw0752 over 5 years ago

    Hi Satoshi,

     

    I enjoyed your post. this is a great experiment.

     

    John

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kurama007
    kurama007 over 5 years ago in reply to DAB

    Thank you, DAB.

     

    Satoshi

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 5 years ago

    Nice update.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube