<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Code for multiple soil moisture sensors</title><link>https://community.element14.com/products/arduino/f/arduino-forum/37907/code-for-multiple-soil-moisture-sensors</link><description>Hi there, Im working on Soil Moisture Sensors using Arduino Uno, however I have no knowledge on how to come up with a code, here are things that i need to do: 1) how to come up with a code, I will be using 6 analogs (6 sensors) of A0 to A5 at one time</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><lastBuildDate>Thu, 27 Dec 2018 07:16:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://community.element14.com/products/arduino/f/arduino-forum/37907/code-for-multiple-soil-moisture-sensors" /><item><title>RE: Code for multiple soil moisture sensors</title><link>https://community.element14.com/thread/175072?ContentTypeID=1</link><pubDate>Thu, 27 Dec 2018 07:16:12 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3cfb8558-1cd7-4af0-9189-79d867a2865b</guid><dc:creator>dougw</dc:creator><description>&lt;p style="margin:0;"&gt;You could also measure the water depth with a single capacitance sensor:&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a class="jive-link-blog-small" href="https://community.element14.com/products/roadtest/b/blog/posts/keysight-technologies-u1282a-digital-multimeter---applications---water-level-sensing"&gt;Keysight Technologies U1282A Digital Multimeter - Applications - Water Level Sensing&lt;/a&gt; &lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a class="jive-link-roadTestReview" href="https://www.element14.com/community/roadTestReviews/2344/l/texas-instruments-fdc2214-capacitance-to-digital-review"&gt;Texas Instruments FDC2214 Capacitance to Digital - Review&lt;/a&gt; &lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;An arduino can measure capacitance using just 2 wires and a resistor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code for multiple soil moisture sensors</title><link>https://community.element14.com/thread/175071?ContentTypeID=1</link><pubDate>Thu, 27 Dec 2018 06:26:53 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:19abb9c0-fdca-4932-a844-4396c14f1af9</guid><dc:creator>luislabmo</dc:creator><description>&lt;p style="margin:0;"&gt;Hello Izz,&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;This &lt;a class="jive-link-external-small" href="https://www.arduino.cc/en/Tutorial/AnalogInOutSerial" rel="nofollow ugc noopener" target="_blank"&gt;Arduino example&lt;/a&gt; is probably the starting point to learn how to read Analog input with an Arduino and then using the serial as output. &lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;Then, use the serial info produced by the arduino to build the excel with your computer, few options that come to my mind:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a class="jive-link-external-small" href="https://www.hackerscapes.com/2014/11/how-to-save-data-from-arduino-to-a-csv-file-using-processing/" rel="nofollow ugc noopener" target="_blank"&gt;Processing&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Use the &lt;a class="jive-link-external-small" href="https://www.parallax.com/downloads/plx-daq" rel="nofollow ugc noopener" target="_blank"&gt;Parallax Data Acquisition tool&lt;/a&gt;:&lt;ul&gt;&lt;li&gt;One example &lt;a class="jive-link-external-small" href="https://www.instructables.com/id/Live-data-to-excel-from-an-Arduino-Light-Sensor/" rel="nofollow ugc noopener" target="_blank"&gt;here&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a class="jive-link-external-small" href="https://www.instructables.com/id/Sending-data-from-Arduino-to-Excel-and-plotting-it/" rel="nofollow ugc noopener" target="_blank"&gt;Another&lt;/a&gt; example&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;Good luck.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;Luis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code for multiple soil moisture sensors</title><link>https://community.element14.com/thread/175068?ContentTypeID=1</link><pubDate>Thu, 27 Dec 2018 03:18:11 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:80de5093-25ce-40ed-9ed8-37458fee5428</guid><dc:creator>izzrahim</dc:creator><description>&lt;p style="margin:0;"&gt;Okay Thanks. I know nothing about Arduino and coding, can I ask for your assistance to help me with the coding (sketch), what to be included, what are the loops, basically how to get 6 analogs in a code.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;I&amp;#39;m doing this experiment of measuring volumetric water content in a one meter cylinder, and I&amp;#39;ll be placing six soil moisture sensors inside the cylinder... later i will introduce water on the top and I need to measure (obtain readings) the water content in the cylinder at different height. And these readings are to be taken for 24 hours period: I need to have all six readings (since you mentioned that it cant be done simultaneously, therefore a gap of 0.1 ms should be fine) every five minutes. &lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;thanks for the explanation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code for multiple soil moisture sensors</title><link>https://community.element14.com/thread/135445?ContentTypeID=1</link><pubDate>Wed, 26 Dec 2018 14:57:22 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3b86ef01-00c5-4f61-a4b6-e9deef28cc83</guid><dc:creator>mp2100</dc:creator><description>&lt;p style="margin:0;"&gt;Izz,&lt;/p&gt;&lt;p style="margin:0;"&gt;How flexible are you for solutions (budget and programming language)?&amp;nbsp; If Arduino is required, you’ll be limited by the memory of the computer, very few data points can be saved.&amp;nbsp; You could use an add-on SD memory card shield.&amp;nbsp; For example:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a class="jive-link-external-small" href="https://www.adafruit.com/product/1141" rel="nofollow ugc noopener" target="_blank" title="https://www.adafruit.com/product/1141"&gt;https://www.adafruit.com/product/1141&lt;/a&gt; &lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;Using that, you can file writing to the SD memory card.&amp;nbsp; If you are moving this into Excel, I use the simplest format, a CSV file, write each data point to the SD card with a comma between each value.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code for multiple soil moisture sensors</title><link>https://community.element14.com/thread/135463?ContentTypeID=1</link><pubDate>Wed, 26 Dec 2018 07:50:35 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:fd58db00-eee9-47b7-a901-dea349066509</guid><dc:creator>dougw</dc:creator><description>&lt;p style="margin:0;"&gt;An arduino typically cannot read all channels simultaneously. Analog channels can be read sequentially with about 0.1 ms between readings. For moisture readings this would normally be sufficient.&lt;/p&gt;&lt;p style="margin:0;"&gt;To make an arduino system that can read analog channels simultaneously requires external sample and hold circuitry or external A/D converters.&lt;/p&gt;&lt;p style="margin:0;"&gt;Could you explain why you need simultaneous sampling in case there is a better way to achieve your requirement?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>