CN0410 is an Arduino compatible shield that is optimized for smart agriculture to control current passing through LED's. The CN0410 is used along the the CFTL-LED Bar that has LED's with specific wavelengths that plants utilize.
The circuit shown below is a complete 3-channel single-supply, 16-bit unbuffered voltage output DAC that maintains ±2 LSB integral and differential nonlinearity by utilizing a CMOS DAC. This circuit has a voltage to current conversion that controls the
amount of current passing through an LED by using a MOSFET in its configuration. The circuit also has an isoSPI repeater that allows multiple boards to be controlled with a single master.
The following is a list of items needed in order to replicate this demo.
The chip select pin of the AD5686 is hardware configurable and routed to 3 general purpose I/O pins on the board. Use the table below to change the location of the chip select simply by moving the shunt on P21, and ensuring the software is configured the same way. By default the chip select is located on GPIO 8. This feature allows multiple boards using SPI communications protocol to be stacked on top of each other.
Chip Select (P21) | GPIO (P16) |
---|---|
Pins 1 & Pin 2 | GPIO 8 |
Pins 3 & Pin 4 | GPIO 9 |
Pins 5 & Pin 6 | GPIO 10 |
The software for EVAL-CN0410 does not require any particular configurations in order to setup the application. The only setting that the user could make would be the selection of the CS pin. This can be done by modifying the SYNC_PORT and SYNC_PIN inside adi_cn0410.h.
#define SYNC_PORT ADI_GPIO_PORT1 //this is the CS pin #define SYNC_PIN ADI_GPIO_PIN_12
After the application starts the user can send commands to set the output of the DAC channels. Available commands:
The value can be between 0 and 65535.
Once the hardware and software is configured, user needs to follow on screen instructions to run EVAL-CN0410 demo.
Following is the UART configuration.
Select COM Port Baud rate: 9600 Data: 8 bit Parity: none Stop: 1 bit Flow Control: none
There are two basic ways to program the ADICUP3029 with the software for the CN0410.
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 ADuCM3029_demo_cn0410 can be found here:
Prebuilt CN0410 Hex File
Complete CN0410 Source Files
The official tool we promote for use with the EVAL-ADICUP3029 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.