Project

# Title Team Members TA Documents Sponsor
39 Request for Approval: Soil Moisture Controller (Pitched Project)
First Yingyord
Isabel Alviar
Ren Yi Ooi
Dushyant Singh Udawat design_document1.pdf
design_document2.pdf
design_document3.pdf
final_paper1.pdf
other2.pdf
other1.pdf
photo1.HEIC
presentation1.pdf
proposal1.pdf
video
This project is a pitched project idea by the U.S. Department of Agriculture’s research laboratory on campus. It would be performed in partnership with a capstone team from the Department of Agricultural and Biological Engineering.

# Problem

One of the biggest limiting factors for gains in agricultural productivity is the ability to provide sufficient moisture in the soil for the growth of crops. In particular, arid regions face the possibility of the occurrence of droughts that reduces the crop yields in dryland agriculture. To manage this issue, various water management strategies have been developed to ensure that there is sufficient water being applied over these crop lands. These irrigation systems have to provide control over the amount of water that is being applied over these crop lands such that optimal agricultural productivity is achieved while ensuring maximum water use efficiency.
Currently, the measurement of soil moisture content in pots are performed manually with individuals monitoring the moisture level based on weight, or the use of gravimetric sensors. Upon irrigation, the weight or load of the pot would be at its maximum, and due to evapotranspiration over time, this weight would be lowered. When it eventually crosses a threshold set by the sensor, irrigation of the pots would be triggered again. However, due to the many different components that make up the weight of the pot, it is difficult to measure the exact proportion of increase in plant mass to the change in soil moisture content to obtain an accurate indication of when the irrigation has to be activated. As a result, there is a need for a more precise method to measure and maintain the soil moisture conditions in these pots through the use of soil moisture sensors. These soil moisture sensors would allow for the moisture that exists in the pot to be read so that sufficient irrigation is provided for consistent moisture.

# Solution Overview

Our solution consists of a cheaper yet more effective device that provides constant moisture monitoring and water irrigation as needed. When the moisture within the substrate is below the predetermined target level, the water valve will be triggered to an extent where the moisture can be maintained at that level. In addition, the users are also allowed to check the current status of each pot, that is whether the substrate moisture is desirable, and control the target level in the pot.

We would work alongside the team of ABE students to also ensure that our solution could be scaled up for high-throughput of at least 50 plants in the future.

# Solution Components

## Subsystem 1: Irrigation Subsystem

Irrigation is the process of artificially applying controlled amounts of water to land or crops. This is done by using valves as well as a system of tubes and pumps to bring in water from pipes, canals, sprinklers, and other mean-made water sources, instead of relying on rainfall. For this project, the irrigation subsystem for each soil pot would consist of a valve that would open and close based on the moisture level measured, in order to maintain a desired set of moisture conditions for different soil and soilless substrate mixes. Irrigation is needed in a given pot if it is sensed that the moisture level falls below a certain value (for example, below 60 for fine soil). When this happens, relay switches activated by a microcontroller, such as an Arduino, will operate the irrigation valves (likely 24V) that correspond to each sensor-controlled pot, and water will flow out until the soil reaches an ideal value again.

Potential materials:
- ¾” valve:
- https://www.amazon.com/Galcon-Irrigation-Reinforced-Greenhouse-Residential/dp/B08MTQB8BX/ref=sr_1_4?crid=3RHJI5FFG6PJE&keywords=24v+irrigation+valve+3%2F4+water&qid=1675117467&sprefix=24v+irrigation+valve+3%2F4+water%2Caps%2C113&sr=8-4
- https://www.amazon.com/Beduan-Electric-Solenoid-Normally-Colsed/dp/B07YTHKHL4/ref=sr_1_3?crid=2QMUSM9AGT0L8&keywords=24v%2Birrigation%2Bvalve%2B3%2F4&qid=1675117428&sprefix=24v%2Birrigation%2Bvalve%2B3%2F4%2Caps%2C100&sr=8-3&th=1
- Tubing: https://www.amazon.com/Tubing-Flexible-Hybrid-Lightweight-10-Feet/dp/B07HF648M5/ref=sr_1_4?keywords=clear+plastic+tubing&qid=1675117678&sr=8-4
- Hose ring: https://www.amazon.com/Selizo-Including-Adjustable-Clamps-Stainless/dp/B07G9TZLRM/ref=sr_1_8?crid=1C737TN4ANA1X&keywords=hose+ring&qid=1675117705&sprefix=hose+ring%2Caps%2C114&sr=8-8

## Subsystem 2: Data Acquisition Subsystem

The data acquisition subsystem will consist of a data logger, an instrument that monitors and records changes in conditions over time. Most data loggers can accept two or more types of input, so we would program ours to take inputs such as voltage, current, temperature, etc. The data logger will ultimately communicate the need for irrigation by measuring and recording calculated factors like volumetric water content for each soil, and generating a list of plants that require irrigation. Then, this list of plants will be sent to the microcontroller that carries out the irrigation process for the relevant plants by using a pulsing I/O signal of either 0 or 5V to communicate whether or not irrigation is needed. There are many expensive existing data loggers such as the CR100, but we would want to buy or build one that is still battery-powered and effective for a cheaper price. One option that nicely interfaces with an Arduino microcontroller would be to create a data logger from scratch using a data-logging shield, coin battery, and SD card.

Potential materials:
- Data-logging shield
- https://www.amazon.com/AITRIP-Logger-Logging-Recorder-Arduino/dp/B09PDL7XM7/ref=sr_1_4?crid=13UWJYJNEUANV&keywords=data+logger+arduino&qid=1675121100&sprefix=data+logger+%2Caps%2C112&sr=8-4
- https://www.amazon.com/HiLetgo-Logging-Recorder-Logger-Arduino/dp/B00PI6TQWO/ref=sr_1_3?crid=13UWJYJNEUANV&keywords=data+logger+arduino&qid=1675121312&sprefix=data+logger+%2Caps%2C112&sr=8-3
- Coin battery for shield
- SD card
- www.adafruit.com

## Subsystem 3: User Interface Subsystem

The user interface subsystem would consist of two main components. The first component would be an LCD display that shows the current soil moisture level as detected by sensors in a percentage form (out of 100%). The second component would be a dial in the form of a potentiometer for the user to be able to tune the soil moisture level to the desired level. This desired soil moisture level can also be displayed on the LCD screen.

In order to achieve this, a customizable LCD display would be used. An Arduino Uno microcontroller can be used to interface the soil moisture sensors and potentiometer with the LCD display.
Parts needed:
- 16x2 LCD display (https://www.digikey.com/en/products/detail/newhaven-display-intl/NHD-0216BZ-FL-YBW/NHD-0216BZ-FL-YBW-ND/1701195)
- Arduino Uno R3 ATMEGA328P Eval microcontroller (https://www.digikey.com/en/products/detail/arduino/A000066/1050-1024-ND/2784006)
- 10K Ohms potentiometer (https://www.digikey.com/en/products/detail/bourns-inc/PDB12-H4301-103BF/PDB12-H4301-103BF-ND/3780664)
- Breadboard (https://www.digikey.com/en/products/detail/dfrobot/FIT0096/1738-1326-ND/7597069)

## Subsystem 4: Controller Subsystem

In order to efficiently gain the desired substrate moisture level, we decide to implement a PI controller which takes the feedback input from the moisture sensor, compares the measured value with the desired value, and triggers the water valve if the measured value is below the desired value.

The value from both the moisture sensor and user input will be sent to a differential amplifier that outputs a voltage proportional to the voltage difference, and a diode that filters only the positive voltage difference i.e. when the desired moisture level is above the current level. The filtered voltage will then be inputted to the PI controller which consists of potentiometers for tuning the controller, inverting op-amps for amplification, and capacitors for implementing the integrator circuit. The reason we do not include a derivative part is to remove the instability problem which may arise from a noisy system.

Finally, the output of the controller will be amplified and connected to a LM555 Timer chip in order to generate a PWM signal to the water valve so that the amount of water being given is sufficient to each pot. Please note that further experimentation is still needed to determine the specific parts within each component.

# Criterion for Success

- The moisture sensors should be able to detect the current level of moisture in the soil for the moisture level data to be logged and displayed on a monitor
- The system should be able to provide irrigation when the moisture level falls beyond a set threshold level
- There should be a dial that allows the user to tune the moisture level to a desired value

Multipurpose Temperature Controlled Chamber (for Consumer Applications)

Isaac Brorson, Stefan Sokolowski, Mitchell Stermer

Multipurpose Temperature Controlled Chamber (for Consumer Applications)

Featured Project

Multipurpose Temperature Controlled Chamber (for Consumer Applications)

#TEAM MEMBERS:

Stefan Sokolowski (stefans2)

Mitchell Stermer (stermer2)

Isaac Brorson (brorson2)

#PROBLEM:

Have you ever put a drink in the freezer to make it cool down faster, only to forget about it and later find it exploded and frozen?

Or have you wanted to cook a steak, but forgotten to move it from the freezer to the refrigerator the previous day?

Finally, has there ever been a time when you set food out overnight in order to prepare it for the next day but only to find that it didn’t thaw as expected?

We have done all of these things plus more and have always wished there were a smart device that could quickly cool or warm food without freezing or cooking it.

#SOLUTION:

Our project would be a programmable temperature controlled chamber which allows a user to set the temperature curve of a food item they are planning on consuming in the near future. This device would be able to quickly heat or cool food to a desired temperature, then hold it at that temperature until the user is ready to use the food. The way someone would use this device would start by placing their food item in the device's insulative chamber and closing the door. The user interface would present the user with a variety of options: standard heating or cooling presets for common food items, temperature set and hold, or the ability to set a detailed temperature curve.

If you want to cool a drink to just above freezing, you would select the corresponding menu option, and this device will lower the temperature of its chamber to well below freezing, then slowly raise its temperature to ensure the drink doesn't freeze.

If you select the menu option to thaw a steak, this device will raise the temperature of the chamber to just below the point at which meat begins to cook, (roughly 105 degrees F) then slowly lower the temperature towards room temperature.

This device could also be used for applications outside of cuisine. Say you’re running an experiment to test the capacity of a battery at different temperatures. You could set a temperature curve to visit several different temperatures and hold each one as your battery capacity tester runs its tests. This would allow you to automate an experiment that would otherwise require intermittent attention over the span of multiple hours.

There are temperature controlled chambers on the market, but they’re all exorbitantly expensive and large for a household kitchen. We want to make a device that could sit on a countertop and be affordable to anyone who has the budget for other standard kitchen appliances.

![pic](https://i.imgur.com/HJiCQsN.png)

#POWER

We plan to use a dual output DC power supply such as the RD-125B[1] to power both our digital electronics and the high power heating and cooling elements. This power supply would be plugged directly into an outlet using a 120V plug, and would create 5V and 24V DC outputs. According to its datasheet[1], the RD-125B’s 24V output is rated to supply 4.6A, which equates to just over 110W. Based on our research of thermoelectric coolers and heating elements, we think this should be plenty of power for our application.The RD-125B’s 5V output is rated to supply far more power than our 5V electronics could possibly draw.

#MECHANICAL DESIGN

In order to reach temperatures below freezing with thermoelectric coolers, we’ll need to thermally insulate the chamber very well. Since this insulation needs to be able to withstand the heat produced by the heating elements, we landed on Kaowool. This ceramic wool insulates very well while also being rated to over 1000℃[2].

Since our device is intended for food applications, it’s important for our temperature controlled chamber to be waterproof and food safe. For this reason, we plan to purchase an off-the-shelf cooking pot such as this one[3]. By fitting a smaller pot inside of a slightly larger pot, we can create an affordable and convenient way to insulate our chamber. We can fit the gap between the pots with Kaowool insulation, and use the larger pot’s lid with Kaowool in it to seal the top.

To heat the chamber, we plan to wrap a resistive heating element (such as nichrome wire) around the inner chamber. Since we plan to use an electrically conductive pot for our inner chamber, we’ll need to insulate the heating element from it to prevent shorting. This can be done with Kapton tape, which can withstand temperatures ranging from -269℃ to 400℃[4].

To cool the chamber, we plan to use thermoelectric cooling modules. These require a good thermal pathway to work well, so we’ll need to use a material with high thermal conductivity to mount them to the chamber wall. We plan to ask the machine shop to machine us aluminum mounts which match the curved outside surface of the pot composing the chamber to the flat faces of the thermoelectric cooling elements. Additionally, we’ll use thermal grease to reduce the thermal resistance of the junctions. The thermoelectric coolers will require rectangular holes cut through the wall of the outer pot so they can pump heat to outside of the device.

We plan to mount our circuit board and the user interface electronics in an E-box attached to the side of the outer pot. We can use standoff rods to ensure the electronics don’t get heated or cooled too much from being close to the chamber, though we expect that our thermal insulation will be good enough for that not to be a concern.

#HEATING SUBSYSTEM

As mentioned in mechanical design, we plan to use a resistive heating element to heat the chamber. This will be powered by the higher voltage DC power rail produced by the power supply, which is 24V for the RD-125B. We'll use a solid state switch to control the current through the heating element. This allows us to control its power using PWM, which is essential for ensuring the chamber temperature remains below a certain prescribed level.

The simplest and most cost effective switching device would be an N-channel power MOSFET such as the Taiwan Semiconductor TSM170N06CH[5].

#COOLING SUBSYSTEM

We plan to use thermoelectric (Peltier) coolers to provide the cooling. These work as heat pumps, so we’ll need heat sinks and cooling fans to dissipate the heat they produce. The thermoelectric coolers and fans will be run off of the same higher voltage DC that powers the heating element.

We want to have the option to run the thermoelectric coolers in reverse while the chamber is heating to prevent their heat sinks from cooling down the chamber. To do this we’ll need to power the thermoelectric coolers through an H-bridge so that we can reverse their polarities. The H-bridge can be composed of two N-channel MOSFETs such as the one mentioned above[5], and two P-channel MOSFETs such as the Rectron Semiconductor RM15P55LD[6]. The H bridge can be controlled by the STM32 microcontroller, allowing us to use PWM to vary the power supplied to the thermoelectric coolers. We may or may not need gate drivers for the H-bridge. Gate drivers are necessary for a fast switching rate, but our application doesn’t require high frequency PWM.

#TEMPERATURE MEASUREMENT SUBSYSTEMS

To be as precise as possible, we want distinct temperature sensors for measuring the temperature of the air in the chamber and the temperature of the item being warmed or cooled. Measuring the temperature of the food is made difficult due to many food items having insulative packaging. (Glass bottles, styrofoam containers, etc...) Since we want our device to work for as wide of a range of food items as possible, we plan to give the user the option to select from multiple different interchangeable food temperature probes. Temperature sensing probes could include a meat thermometer, a flat metallic probe that could be placed on frozen meat, or a ring shaped thermometer that could go around a bottle or can.

Temperature sensing (thermocouple / thermopile) may require some basic analog electronics, such as an op amp to amplify the small voltage produced by a thermocouple.

#USER INTERFACE SUBSYSTEM

We plan to use an STM32 microcontroller, for our use a STM32F103C8T6 would probably suffice with IO and processing power, but more capable F4’s might be considered if we add more sensors. The microcontroller and user interface will require logic level voltage DC.

We would most likely use an I2C enabled LCD display as well as a bright, external RGB LED in order to show the user what state the machine is in from a distance. We plan to use a push button rotary encoder to allow the user to interact with the device, in addition to an ON/OFF switch and a "cancel" button. User feedback should be fairly simple and if time allows, we might consider connecting the device to an external service to send users notification as to the status of their heating/cooling cycle.

The user interface screen will have multiple interactive menus: one to select the behavior mode of the device, one to set temperature and time values, one to show a temperature curve, and one to be displayed while the device is operating.

#CHALLENGES & CONSIDERATIONS:

- Everything inside the chamber will need to be able to withstand the full range of temperature.

- Electronics will need to be very well thermally insulated from the chamber if we want to use it as an oven.

- Since thermopiles operate off of a temperature gradient, they require a stable case temperature. This means we'll need to keep the thermocouple in a temperature controlled environment.

- The chamber should ideally be made watertight for the case of a spill or leak.

- When making the mechanical design, we'll need to keep in mind how different materials expand / contract at different rates when they're heated / cooled.

#CRITERION FOR SUCCESS:

- Inside of the chamber should be able to reach at a low end 0 degrees Celsius and at a high end 40 degrees Celsius.

- Be able to hold temperature to within +-5 degrees Celsius of target temperature.

- User has the ability to set target temperature, heating/cooling curve and max/min temperature allowances through GUI on an LCD display.

- Display of current temperature, and possibly a plot of the temperature vs. time graph.

- Ability to select the behavior of the device from a provided menu of presets for different foods.

- (Stretch Goal) We could possibly include multiple different methods to measure food temperature in addition to the ambient temperature. (Stainless steel probe to measure the internal temperature of meats, thermocouple for bottles and containers)

[1] Power Supply:

https://www.mouser.com/datasheet/2/260/RD_125_SPEC-1511572.pdf

[2] Kaowool:

https://www.morganthermalceramics.com/media/llhhadih/5-14-205_kaowoolblankets_072018.pdf

[3] Aluminum pot: https://www.amazon.com/Winco-Winware-Aluminum-Stockpot-12-Quart/dp/B001CHMIQ4/ref=sr_1_10?crid=1VECOQHCN2UC2&keywords=aluminum%2Bpot&qid=1706684643&sprefix=aluminum%2Bpot%2Caps%2C93&sr=8-10&th=1

[4] Kapton tape:

https://www.dupont.com/electronics-industrial/kapton-hn.html#:~:text=Kapton%C2%AE%20HN%20has%20been,C%20(752%C2%B0F).

[5] N channel MOSFET:

https://services.ts.com.tw/storage/resources/datasheet/TSM170N06CH_A2211.pdf

[6] P channel MOSFET:

https://www.mouser.com/datasheet/2/345/rm15p55ld-1396325.pdf

Project Videos