First Sap Flux Design Overview

By: Brett Stoddard

Background

Thermal sap flux (or flow) sensors have been popular amongst environmental sensing experts since the mid-20th century. They measure the velocity of sap through the stem or trunk of a plant using an array of heaters and temperature sensors.

A modern sap flow variant, proposed by Grainer, is made up of two temperature sensing probes directly above and below a heater probe—all spaced evenly. When a measurement is taken, the heater probe turns on and emits a heat pulse for several seconds. Then the temperature difference between the upper and lower probe is recorded. The temperature difference over time can be used to track sap flow (the specifics of this will be talked about in a later blog post).


Figure from paper by   Bayona-Rodríguez et al (2016)Figure from paper by   Bayona-Rodríguez et al (2016)

Figure from paper by Bayona-Rodríguez et al (2016)

Goal

To construct a sap flux sensor using surface mount technology (SMT) which can be manufactured using an entirely automated setup given a pick-and-place machine but can still be made by hand by a person with adept soldering skills.

Challenges

The biggest challenge for this project is minimizing the width of the probes. Inserting any foreign object into the xylem of any plant will alter how sap flows through it. As such, minimizing the size of the probe is critical to accurate measurements. Current commercial probes have diameters of around 1.5mm (http://dynamax.com/products/transpiration-sap-flow/tdp-sap-velocity-thermal-dissipation-probe).

Limitations in commercial PCB etching process are a limiting factor in the minimum size of these probes. Also, if a sufficiently small probe size is achieved, the number of plant types this can be used on increases. For example, a large probe may only be used on trees of a sufficient diameter while a smaller one could be used on crops such as corn.

Method

To design the PCB designs for sap flow probes, Eagle CAD was used. Sparkfun has a solid tutorial on learning the basics of PCB design (https://learn.sparkfun.com/tutorials/using-eagle-schematic). OSHPARK is a popular PCB vendor that is easy to order from and so their DRC was used for this project (http://docs.oshpark.com/design-tools/eagle/design-rules-files/). Using these limitations, a PCB probe diameter of ~2.5 mm was achieved.

For the temperature sensor probe thermistors were chosen to be the sensor component. Thermistors were chosen because of their high level of sensitivity when compared to other sensors. Thermistors act as variable resistors that alter their resistance based on their temperature. The main drawback to using thermistors is that their output is not linear, but rather follows a logarithmic curve and so they are difficult to work with. For this probe, a voltage ladder was used to retrieve the resistance of the thermistor as shown in the schematic in the results section.

The heater element consists of a 50 ohm, US0603 footprint resistor with a 0.38 wattage rating. A future blog post will go more in-depth on how the resistance was calculated.

To maximize contact with the plant’s xylem, thermal epoxy was used in a mold around all three PCB probes. This was designed in SolidWorks 2017 and printed on a FormLabs Form 2 SLA printer for maximum resolution. The inside of this mold was coated in mold release spray to prevent the thermal epoxy from sticking to it. After the epoxy was sufficiently dried, a layer of silicone conformal coating was applied to waterproof each of the probes.

To control the sensor, a microcontroller with built-in ADC’s (here an Adafruit M0 Trinket) was used. The output pins on the temperature sensors were connected to the analog inputs of the microcontroller. An NPN transistor sat between a voltage source and the heater and was controlled by an output pin on the microcontroller.

Results

Images of the final PCB are shown below. It uses standard US0603 footprint resistors.


Schematic of the Sap Flow/Flux sensor with thermistor temperature sensors.Schematic of the Sap Flow/Flux sensor with thermistor temperature sensors.

Schematic of the Sap Flow/Flux sensor with thermistor temperature sensors.


Image of the board design for Sap Flow sensor with thermistor temperature sensors. The two probes on the left are the thermistors and the one on the right is the heater probe. The PCB on the right houses an Adafruit M0 Trinket.Image of the board design for Sap Flow sensor with thermistor temperature sensors. The two probes on the left are the thermistors and the one on the right is the heater probe. The PCB on the right houses an Adafruit M0 Trinket.

Image of the board design for Sap Flow sensor with thermistor temperature sensors. The two probes on the left are the thermistors and the one on the right is the heater probe. The PCB on the right houses an Adafruit M0 Trinket.

The bill of materials used is below.

A future blog post will go into a more detailed, step-by-step tutorial on how to build your own! It will also have finalized design files and best pracitces.

Room for Improvement

As with any project design, there are a multitude of ways that this could be improved. A few ideas with good potential are listed below in no particular order:

  • Linearizing voltage output using a parallel thermistor configuration
  • A/D conversion on the probe sensor to avoid signal loss across the line
  • Housing to protect the temperature probes from solar radiation
  • Insulation to protect the probes from ambient temperature fluxes

References

In order that they appear:

  1. Dynamax TDR Probes http://dynamax.com/products/transpiration-sap-flow/tdp-sap-velocity-thermal-dissipation-probe
  2. Sparkfun Eagle Tutorial https://learn.sparkfun.com/tutorials/using-eagle-schematic
  3. OSHPARK DRC for Eagle http://docs.oshpark.com/design-tools/eagle/design-rules-files/

External Links

In no particular order:

Banana Plant Trial Result (Traditional Design)

By: Brett Stoddard

To test the probe described in my previous blog post, I deposited the probes in a banana plant I had handy.

How I built the probes by inserting heater wire and type T thermocouples into hypodermic needles. More resources can be found in my last post and in the following paper by Davis et al. Post here. Paper here. 

The graph result of the test is below:


As you can see, the top probe was not reading the correct temperature. This was probably an issue with the accuracy because it remained surprisingly precise meaning that the results shouldn’t be completely discarded. Daily trends are evidence that the sensor could be working somewhat. This is nowhere near the accuracy I intend to get with my final design.

However, there definitely is something interesting going on here. The data was recorded over an interval of three days. Examining the Differential plot, there seem to be roughly three major up-and-downs that PROBABLY are related to the day-night cycles of photosynthesis.

The Sap Flow Status Quo

By: Brett Stoddard

Before I got started designing the SMT sap flow, I built and tested the probe sap flow sensor popularized by Grainer. This design popular with researchers probably because of its inexpensive BOM ( ~$10/sensor ) and promisingly low labor ( 1 hour/sensor ) which puts the total price at ( ~$60/sensor ).

When I replicated several of these probes I found significant difficulty in making them. The 36 gauge wires are especially difficult to work with and the nichrome wire heater probe was almost impossible to wind to a high enough resistance. For the 7 I built, only 2 were usable enough to record meaningful data. This is not a process I would recommend to anyone.

Here is the BOM used by Camden Lowrance in his University of Georga thesis in 2014 and the simplified one I created for this project. Camden’s includes a base station and mine does not.

The biggest difference is that I used a thermocouple amplifier chip instead of building my own. This greatly simplified the design and made fabrication a lot easier. I chose an Adafruit Universal Thermocouple Amplifier MAX31856 Breakout board. I made sure to set it to the Type-T setting. Adafruit has an excellent guide on how to use one of these on their website here.

Posted by Brett Stoddard

Annealing For ABS Plastic Parts

By: Merritt Allen

INTRODUCTION:

The use of annealing ovens for 3D printed plastic is a useful technique that helps strengthen the plastic part and improves the overall look of the plastic. In this experiment, four 3D printed bag sealing caps were annealed with different techniques to compare the results. The annealing of ABS plastic is performed at a temperature range of 105C-107C which the glass transition phase of the plastic is. When ABS is printed, it is cooled below its glass transition phase which keeps the plastic harder and brittle. By slowly heating up the plastic to its glass transition phase the plastic begins to deform. This deformation is the breaking of the semi crystalline structure within the plastic to relieve stress that is created when the plastic is printed. When plastic is slowly heated, and this stress is relieved, the material is then cool very slowly so that the internal structure remains somewhat viscous- increasing overall strength of the material.

BACKGROUND:

The oven used to perform this experiment was a mechanical convection oven [Source]. The mechanically circulated air heats the plastic, and then melts it. The plastic parts are in the oven for the entire heating, baking, and cooling process. The error of the oven is estimated to be +-2C. [Source] Literature states that annealing can vary in process but most sources suggest the heating of the oven to the glass transition phase at a rate of 50F to 200F over the course of 2 hours. Holding in the oven 30 minutes for every ¼” of plastic (width) and then cooled 50F every hour. The purpose of the slow process is that the plastic is amorphous. Different parts of the plastic can be in different states at different times based on thickness and air exposure. In other words, there is uneven melting and cooling of plastics. The mechanical circulation of air and the slow process is supposed to account for much of these errors. If plastics are cooled or heated at different rates then different parts of the plastics can be in different states which could potentially weaken the part overall by creating stress concentrations; having a brittle location, a half-melted location, or a partially cooled location will disrupt the uniformity of the printed part.

EXPERIMENTAL:

Experiment one was conducted with a high range of temperature, revealing the importance of the glass transition phase temperature. The first cap was placed in the oven at a temperature of 50C and then slowly brought to a temperature of 108C over the course of 30 min. The 3D printed cap is ¼” in thick. After 30 min at this temperature, the cap was removed without cooling slowly. There was no difference in appearance or feel of the cap.

This cap was cooled for over 24 hours before being put back in the oven. The purpose of a second heating was to try and see a noticeable difference in the plastic. The second heating was conducted at a stable temperature of 121C. The total time in the oven was 1 hour 42 minutes. This much longer than the recommended time. When pulled from the oven, the caps were noticeably deformed with visible melting near the center. This warping was the plastic melting outwardly.  This is not desired. The purpose of the glass transition phase is to melt the crystalline internal structure of the plastic without deforming the overall shape. It was concluded that the temperature was much too high and that the glass transition phase does hold precedence.

The next experiment tested an extended time in the oven. A cap was placed in the oven and the temperature was increased by 12-15C every 15 minutes until the oven reached 105-107C. The cap was then held in the oven for 57 minutes. After this, the cooling process began. The oven was decreased by 15-20 degrees every 15 minutes until the oven reach 50C. It was then turned off and allowed to cool to a temperature slightly above room temperature. This cap shrank slightly (3mm) which was noticed when the cap was not able to screw onto its respective bottle.

The above experiment was repeated, and it was found that this shrank as well.

A final experiment was conducted with a newly printed cap. The oven was heated by increasing the temperature 12-15 degrees Celsius every 15 until it was brought to 105-107C (oven fluctuates slightly). The part was kept in the oven for almost 2 hours before the cooling process began. The oven was brought down to 50C in the same manner as above. The part was cooled to room temperature. This part also shrank by approximately 3 mm. The part, however, was also shinier than its un-annealed state, and was smoother after it was cooled.


annealed1.JPGannealed1.JPG


annealed0.JPGannealed0.JPG

The pictures above highlight the difference between the annealed and the unannealed caps. The Annealed caps show the visual signs of warping and slight melting.


ANNEAL3.jpgANNEAL3.jpg

The photo above shows the shrinking that occurs when the 3D caps are annealed. There was little warping on this cap-temperature was correct- but shrinking still occurred which can be seen above with the unannealed cap is larger underneath the other cap.

CONCLUSION

Based on the above experiments, it could be concluded that annealing for smaller printed parts that need to fit counter parts (ie. Caps) may not be the most efficient method of finishing a part. The shrinkage of 3 mm could be accounted for in the 3D design process by adjusting dimensions of the design. There are, however, better methods that do not have such a large amount of shrinking involved. Also, if the goal of the annealing is for aesthetic purposes then vapor finishing is the suggested method. The unfinished cap has a diameter of 19 mm, a vapor finished one of 18 mm, and an annealed one of 16.5 mm. Future annealing experiments could be conducted on flatter parts whose max load tolerance could be measured- to test strength improvement-, or parts in which shrinking is easily accounted for. Based on the annealing of caps, however, the process was more cumbersome than necessary and vapor finishing with acetone is the recommended method for both these parts and parts similar in design. Vapor finishing accomplishes the same aesthetic results without the wait time and the shrinking.

Vapor Finishing for Small Printed Parts

 

Vapor Finishing for Printed Parts

BACKGROUND

Vapor finishing uses acetone to smooth finish 3D prints by filling the micropores present in the plastic that result from printing. The process of vapor finishing saturates the air around the part to make the surface “flow” into a smoother, better finish. There are two types of acetone bath; cold finishing and hot finishing, both use pure acetone to vapor finish the printed part. The benefits of cold baths being that the part can be left in the bath for multiple hours, and the fumes are more easily controlled. Boiling acetone (temperature of 132 degrees Fahrenheit) is a faster method than cold finishing. Results of boiling acetone can be seen in a matter of seconds, often outweighing the dangers of boiling the chemical [SOURCE]. By smoothing out a printed part the stress concentrations that are created when the part is printed, are decreased. This is done by decreasing the print lines and the micro-pores and micro-cracks in the plastic by essentially filling these in with acetone [SOURCE]. For both cool and hot vapor finishing, parts require a cooling time that ensures all the acetone has been evaporated and that the part has completely hardened. To make sure of this, pieces could use 12-18 hours before being implemented in designs. This will also make sure no warping or pooling of the acetone has occurred between ridges on the part.

DESIGN:

The vapor finishing design for this experiment included a rice cooker chamber, acetone, 3D printed parts, and scale. This is the easiest method of boiling acetone. For each 3D cap, the time left in the bath, the temperature, and the time allowed to cool was kept constant. The part was placed in the chamber, the specific amount of acetone was added, and then the heat was turned. The heat was kept on for the same time for each bath, before being turned off and the lid to the chamber was removed. The part was then massed and used. For each experiment, the heat was turned on for 45 seconds to allow the acetone to completely vaporize. The lid was then removed when one minute had passed. Each part cooled for 15 minutes before being tested. The cooling period was implemented to make sure that excess acetone was evaporated, and the part was hardened.

Summary of Test one:

A total of 10 trials were conducted with acetone levels ranging from 0mL to 19.1mL of acetone. It was found that when a cap was treated with 0mL of acetone there was a percent mass gain of 31.3% while a cap treated with 19mL has a percent mass gain of 16.6%. Mass gain was measured by weighing the caps prior to finishing, letting them cool after finishing, and then screwing them on a bag and squeezing the bag while it is upside down. This meant water was absorbed into the micropores when water was forced into the plastic. Caps in between these two points included 5.3mL with a mass gain of 31%, 10.8mL with mass gain of 19.7%, 14.1mL with mass gain of 21.4%, 16.3 mL with mass gain of 18.5%, and 17.8 mL with mass gain of 18.5%. The other trials were repetitions of these levels with similar results. Other data take in experiment one was the water lost from the bag when the caps were being tested. The initial amount of water was measured in mL. After the bag was tilted and squeezed, the bag was re-massed to see how much water escaped. It was discovered that the more acetone used, the less water that escaped. The untreated cap allowed almost all the water to escape. The cap treated with 19mL only allowed 1.7mL to escape out of 140mL.

Summary of Experiment 2:

This experiment was performed to confirm the results from experiment one. The focus was on one low level acetone level and then many higher-level acetone levels. Since the first experiment established the necessity of the higher levels of acetone, the second experiment was performed to finalize this conclusion. For comparison, an untreated cap was tested with the bag and, again, it allowed lots of water to escape with some pressure, further supporting the need for vapor finishing. Experiment two did support the first one. An additional five trials were completed. One with no treated and four more, all above 17mL. The average mass gain between these four treated caps was 22.7%. These four caps allowed virtually no water to escape when attached to a bag and squeezed upside down, further supporting the conclusion made from experiment one. The untreated cap allowed almost all the water to escape again. The recommended amount of acetone was concluded to be 14-19mL.

Miscellaneous:

 Weight of dry cap average: 5.18 g

Weight of cup used to measure acetone: 19.2g

Mass of bag: 11.4 g

Time to dry for each trial: 15 minutes


blavkfinsih.JPGblavkfinsih.JPG

The photo above compares and untreated cap (top) with the treated caps. There are few noticeable differences, besides the greater amount of rounding in the 19mL level cap (top left).


10v20finsihi.JPG10v20finsihi.JPG

The above picture shows a cap treated with 10mL (L) and a 19 mL (R). The 10mL treated cap is less smooth than the 19mL treated cap. The edges are less rounded. The necessity of more acetone was also supported when the 19mL treated cap allowed less water to both escape the bag and cap connection and infiltrate the cap.


vaporfinsih.JPGvaporfinsih.JPG

The picture above shows a cap finished with 19mL of acetone (L) and an unfinished cap (R).

The treated cap is much shinier and smoother than the untreated. There are decreased print lines and the texture is more uniform than the untreated.

 

CONCLUSION

Without any vapor finish, cap and bag connection allowed water to easily escape from the connection point with basic pressure. The largest increase of mass was also associated to the cap without any vapor finish, indicating that water was easily infiltrating the plastic. For the second experiment, the untreated cap did not have a large mass increase, but still allowed water to run out easily.

Increasing the amount of acetone used decreased the amount of water allowed to escape while also increasing the efficiency of the connection. Almost no water escaped at the connection point with even greater pressure compared the pressure applied to the little to no acetone experiments. This was also demonstrated simply by allowing the bag to tilt upside down and seeing that the parts treated with more acetone had less water escaping than untreated parts. The recommended range for small to medium parts is 15-18 mL of acetone. With that in mind, it was also found that levels of 19mL and 17mL both performed well under applied pressure but the 17mL acetone levels kept the exactness of the design better. Meaning the acetone did not smooth the part on the outside as much but performed just as well, and the differences were not very noticeable.

The mass of the caps was measured before and after each trial. To give an idea of how much water was being absorbed during each trial. For each cap treated, when attached to the bag, pressure was applied to test how this affects the amount of water escaping at the bag and cap connection. After pressure was applied and water was allowed run out. It was found that past 17 ml of acetone far less water escaped at the connection. The percent mass gained by the caps at this point was also less. This indicates that the increase in acetone levels helps decrease the amount of water soaking into the part. The greater the acetone levels, the better the webbing formed between the plastic layers. Increasing the acetone that is vaporized increases the acetone that is being deposited between particles in the plastic. This is also why a drying period is necessary to make sure the part has hardened sufficiently before use. 

The amount water present after the bag has been squeezed was measured as well. This accounted for any water that escaped the cap through the pores during this process. It was observed that even though the caps still absorbed water with later runs, it was a small amount and most of the water leaking out was at the connection point. This was not performed for experiment two since experiment two was conducted to support the conclusion of experiment one.

Possible errors for this experiment were the acetone bath which could account for the increase in mass for many of the caps. Even though the finished prints were allowed 15 minutes to dry, that could not have been long enough to account for the acetone saturation. To ensure that the acetone is completely dry, the prints were re-massed and retested after more than 24 hours had passed. It was found that after these 24 hours, the difference in masses for the caps was no different. The top of the cap was less malleable after all the acetone could dry. For future printing, it is encouraged to allow the finished part to dry for a least a couple of hours to make sure all acetone has evaporated.  

Below are pictures that compare the results of different levels of acetone. This can be used a reference to show how increasing the amount, increased the layer of acetone that finished the part. The results on the outside show increasing smoothness and rounding at the edges. Internally, increasing the acetone resulted in a better seal. There was not a great difference between the 18 and 19 mL caps, which is why the interval of 14-19mL is the recommended interval for the acetone. The numbers on the cap indicate the amount of acetone used in the experiment.


compare1.JPGcompare1.JPG


compare2.JPGcompare2.JPG

 

 

 

Author: Merritt Allen

 

Moving platform to Adafruit Feather M0

Author: Lars Larson

Taking it back to basics with the eGreenhouse package, reprogramming the sensor suite one component at a time to ensure a smooth transfer to the Feather.

Here’s the plan:

  • Adafruit Feather M0 Proto
  • Adalogger FeatherWing for saving sensor data to an SD card
  • OPEnS custom nRF PCB for communication with the HyperRail

Currently, the Feather saves data to the Adalogger successfully; running the lux sensor as a start. Moving on to the rest!

One notable stumbling block with the transfer between Arduino Uno and Adafruit Feather M0: SoftwareSerial is not supported by M0 –> must recreate serial communication via hardware serial. This is accomplished by setting up a Serial SERCOM, following this Adafruit tutorial: https://learn.adafruit.com/using-atsamd21-sercom-to-add-more-spi-i2c-serial-ports/creating-a-new-serial

More to follow,

Lars

Intro to the Project

By: Brett Stoddard

Thermal sap flow sensors were initially proposed in the paper [German paper] in [date of german paper] by [german paper author]. Since then, several key improvements have created a sensor that semi-popular amongst researchers. However, their current high price point has reduced adoption.

A good case study for the modern state of commercial thermal sap flow sensors is Dynagague. Their probe style sap flow sensor which costs around $300-500 for a single sensor and an additional cost of ~$400 for the datalogger.

By using a few tricks in the design, we at the OPEnS Lab in contribution with [Friend of Trees] hope to design a sap flow sensor that costs less an $100 to produce including labor (priced at $50/hour) that meets the same performance at Dynagague. I plan to do this by redesigning almost everything to incorporate modern SMT manufacturing techniques open sourced communication protocols.


Here is an image of the rough schematic for the build.Here is an image of the rough schematic for the build.

This is the BOM for the first draft design. The raw eagle design documents can be found at [https://github.com/stoddabr/sapflow/tree/master].

To open them you will have to download my parts library from [https://github.com/stoddabr/EaglePCB].