This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
resources:eval:user-guides:eval-adicup3029:reference_designs:smart_greenhouse [14 Mar 2021 06:07] – [Obtaining the Source Code] adding in .Hex files Zuedmar Arceo | resources:eval:user-guides:eval-adicup3029:reference_designs:smart_greenhouse [23 Apr 2021 17:47] – Removing Arrow Connect Brandon Bushey | ||
---|---|---|---|
Line 13: | Line 13: | ||
===== Demo Versions Supported ===== | ===== Demo Versions Supported ===== | ||
- | There are three(3) | + | There are a few demo versions supported using the same algorithm and application level code. The only difference for each of these options is how you would view the data and interact with the design. |
* IBM Watson Smart Greenhouse | * IBM Watson Smart Greenhouse | ||
- | * Arrow Connect Smart Greenhouse | ||
* PC Command Line Smart Greenhouse | * PC Command Line Smart Greenhouse | ||
Line 159: | Line 158: | ||
For nodered documentation follow [[https:// | For nodered documentation follow [[https:// | ||
- | ===== Arrow Connect Smart Greenhouse ===== | ||
- | |||
- | <note important> | ||
- | |||
- | ==== Demo Requirements ==== | ||
- | |||
- | The following is a list of items needed in order to replicate this demo. | ||
- | * Boards/ | ||
- | * EVAL-ADICUP3029 | ||
- | * EVAL-CN0397-ARDZ | ||
- | * EVAL-CN0398-ARDZ | ||
- | * EVAL-CN0410-ARDZ | ||
- | * ESP8266 Module | ||
- | * Internet connected gateway – utilize existing Wi-Fi gateway/ | ||
- | |||
- | * Cables/ | ||
- | * Micro USB to USB cable | ||
- | * PC or Laptop with a USB port | ||
- | |||
- | * Sensors/ | ||
- | * An LED light bar | ||
- | * A pH probe | ||
- | * A moisture sensor | ||
- | * A PT100 RTD | ||
- | |||
- | * Software | ||
- | * ADuCM3029_ArrowConnect_Greenhouse software | ||
- | * CrossCore Embedded Studio (2.6.0 or higher) | ||
- | * ADuCM302x DFP (2.0.0 or higher) | ||
- | * ADICUP3029 BSP (1.0.0 or higher) | ||
- | * Arrow Connect Account | ||
- | |||
- | ==== Setting up the Hardware ==== | ||
- | |||
- | - Move the **S2 switch** to the **WiFi** position on the **EVAL-ADICUP3029**.{{ : | ||
- | - The ESP8266 Enable Pin needs to be tied directly to 3.3V or pulled high to the GPIO via a 10K ohm resistor. Because this is not currently on the Rev B or Rev C version of the ADICUP3029, you will need to solder a small fly wire from the 3.3V pin to the enable pin.\\ {{: | ||
- | - Plug the **ESP8266** in the **P1** connector on the **EVAL-ADICUP3029**. | ||
- | - Configure the EVAL-CN0398-ARDZ CS option by setting the pin jumper | ||
- | - Configure CS jumper for **CN0397** to pins **3** and **4**.{{: | ||
- | - Configure CS jumper on **P21** for **CN0410** to pins **1** and **2**. An external power supply must be used to power the board and the jumper on **P20** must be set to **1** and **2**.{{: | ||
- | - The Led Bar must be connected to the CN0410 board to enable power to the leds. Also to select the leds we want to controll we have to place the jumpers to pins 1 and 2. In this picture only RLED1, GLED1 and BLED1 are selected.{{: | ||
- | |||
- | ==== Configuring Software for Arrow Connect Greenhouse ==== | ||
- | |||
- | This section will describe the steps needed to get the Arrow Connect Greenhouse up and running. | ||
- | |||
- | ==== Arrow Connect Smart Greenhouse Source Code ==== | ||
- | |||
- | There are two basic ways to program the ADICUP3029 with the software for the Arrow Connect Smart Greenhouse. | ||
- | - Dragging and Dropping the .Hex to the Daplink drive | ||
- | - Building, Compiling, and Debugging using CCES | ||
- | |||
- | Using the drag and drop method, the software is going to be a version that Analog Devices creates for testing and evaluation purposes. | ||
- | |||
- | 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 **ADuCM3029_ArrowConnect_Greenhouse** can be found here: | ||
- | |||
- | <WRAP round 80% download> | ||
- | Prebuilt Arrow Connect Smart Greenhouse Hex File | ||
- | * [[https:// | ||
- | Complete Arrow Connect Smart Greenhouse Source Files | ||
- | * [[https:// | ||
- | |||
- | </ | ||
- | |||
- | ==== Setting WIFI connection ==== | ||
- | |||
- | In order to establish the connection to the **WIFI** we have to set the **SSID** and **PASSWORD** to connect to the access point (wifi router). This is done modifying **wifi.h**, | ||
- | |||
- | ==== Setting Arrow Connect ==== | ||
- | |||
- | It's strongly suggested to take a look at the portal before starting this project. | ||
- | |||
- | After creating an account we have to set up who can connect to the cloud using private keys that are assigned to our user. We need to navigate to **CONFIGURATION**-> | ||
- | |||
- | Once we open the key we will find two fields named **Raw Api Key** and **Raw Secret Key** which we will copy them to the **private.h** file in project folder **skeleton**{{: | ||
- | |||
- | ==== Arrow Connect Smart Greenhouse Software Flow/ | ||
- | |||
- | {{ : | ||
- | |||
- | The greenhouse application involves 4 layers: | ||
- | * Hardware, arduino shields layer | ||
- | * Communication layer (SPI communication) | ||
- | * Processing layer (ADICUP3029 and ESP8266) | ||
- | * Cloud layer | ||
- | |||
- | The hardware part is composed of the shields stacked on top of each other, which provide data from the sensors and also control the leds. For more details about these CNs you can consult the individual page for each one: | ||
- | * [[/ | ||
- | * [[/ | ||
- | * [[/ | ||
- | |||
- | The communication layer configures the shields and is responsible for transferring information from and to the desired device. Data is then available for processing and transmitting to the cloud. | ||
- | |||
- | ADICUP3029 ensures the logic for the localized operations while the ESP8266 establishes the connection to the cloud and send the data over WIFI. | ||
- | ==== Output Data ==== | ||
- | |||
- | Data can be visualized on the Arrow Connect platform. | ||
- | |||
- | {{ : | ||
- | |||
- | To send a command just click on developer option from the left panel and then the Command tab. | ||
- | |||
- | {{ : | ||
- | |||
- | The name of the command must be **leds** and the payload must be in json format like **" | ||
===== Serial Terminal Smart Greenhouse ===== | ===== Serial Terminal Smart Greenhouse ===== |