The demo concentrates on several important agriculture characteristics including soil moisture, soil pH with temperature compensation, as well as visible light recognition and control. These are three of the main sources of plant growth, and monitoring these are critical to the efficiency and optimization of the crop you are growing.CN0398 is a reference design that enables the demo to measure soil moisture, soil pH, and temperature. CN0397 allows the demo to measure the light intensities at certain visible light wavelengths that plants are sensitive to. CN0370 is a 16-bit LED current driver that controls the light intensity for a particular color LED, providing optimal lighting levels for the plants.
Smart Greenhouse demo showcases the capability of ADICUP360 in a fast prototyping environment in combination of 3 reference designs in two different form factors, Arduino form factor and PMOD form factor, to cater an applications in Smart Agriculture.
To learn more about the reference designs, please refer their individual circuit notes CN0370, CN0397 and CN0398.
Smart Greenhouse Demo Requirements
Functional Block Diagram
ADICUP360 Hardware Setup
CN0398 Hardware Setup
CN0397 Hardware Setup
CN0370 Hardware Setup
Chip select Assignment for each CN0370 boards are as follows:
|CN0370 Control||ADICUP360 Pin (P4)||ADuCM360 Pin/Port|
Complete setup Hardware Connections as follows
The demo software is an integrated software of all the three reference designs which allows measurements of soil pH and moisture measurements with temperature compensation, as well as light detection and control.
The software allows calibration of the pH sensors and the photodiodes on the board for more accurate measurements. The LED's can be controlled manually using the software and automatically by setting the desired intensity of each wavelength and using proportional control.
There are two basic ways to program the ADICUP360 with the software for the Smart Greenhouse Demo.
Using the drag and drop method, the software is going to be a version that Analog Devices creates for testing and evaluation purposes. This is the EASIEST way to get started with the reference design.
Importing the project into CrossCore is going to allow you to change parameters and customize the software to fit your needs, but will be a bit more advanced and will require you to download the CrossCore toolchain.
The software for the ADuCM360_demo_Smart_Greenhouse demo can be found here:
Prebuilt Smart Greenhouse Demo Bin File
Complete Smart Greenhouse Demo Source Files
For more information on importing, debugging, or other tools related questions, please see the tools user guide.
The official tool we promote for use with the EVAL-ADICUP360 is CrossCore Embedded Studio. For more information on downloading the tools and a quick start guide on how to use the tool basics, please check out the Tools Overview page.
For more detailed instructions on importing this application/demo example into the CrossCore Embedded Studios tools, please view our How to import existing projects into your workspace section.
For more detailed instructions on importing this application/demo example into the CrossCore Embedded Studios tools, please view our How to configure the debug session section.
Upon start of the software, it will initialize all of the boards attached to the ADICUP360. CN0398 initialization will write all the settings to the IC's on board, while CN0397 initialization will write the settings to the DAC registers. The CN0370 will be written with code zero to turn off all of the LED's.
Once the initialization is complete, the program will now wait for a user command to execute the corresponding tasks.
The following software section will help describe the steps you will need to go through when using the hardware and software together. There are some nationalizations and calibrations which must be done, and then some commands and instructions on how to use the software. Please read carefully to completely understand how to use the demo.
The demo should be running automatically displaying all the values and running its control automatically.
|Command||Parameter to Pass||Function/Description||Example Command (if needed)|
|display||- none||Continuously display all sensor data (Press <ENTER> to stop)|
|acquire||- none||Continuously acquire all sensor data|
|rest||- none||Stop acquiring sensor data|
|cal_pd||- none||Calibrate CN0397 ADC for photodiode zero-scale initialization|
|cal_ph||- none||Calibrate CN0398 ADC for voltage to pH conversion|
|red_test||(0-65535)||Perform functionality test for CN0370 with red LED||“red_test 35412”|
|green_test||(0-65535)||Perform functionality test for CN0370 with green LED||“green_test 4096”|
|blue_test||(0-65535)||Perform functionality test for CN0370 with blue LED||“blue_test 19754”|
|set_red||(0-120000)||Set desired red light intensity value to maintain in lux||“set_red 88000”|
|set_green||(0-120000)||Set desired green light intensity value to maintain in lux||“set_green 26500”|
|set_blue||(0-120000)||Set desired blue light intensity value to maintain in lux||“set_blue 115000”|
|start||- none||Start Proportional Control System for CN0370|
|stop||- none||Stop Proportional Control System for CN0370|