![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
Linear Technology DC1410A-B Demonstration Board. More...
Linear Technology DC1410A-B Demonstration Board.
LTC2449: 24-Bit, 16-Channel Delta Sigma ADC with SPI interface
NOTES Setup: Set the terminal baud rate to 115200 and select the newline terminator. Equipment required is a precision voltage source and a precision voltmeter. Additionally, an external power supply is required to provide a negative voltage for Amp V-. Set it to anywhere from -1V to -5V. Set Amp V+ to Vcc. Ensure the COM and REF- pins are connected to ground. The REF+ pin should be connected to +5V. How Measure a Load Cell: The LTC2449 allowas a wide common mode range of 0V to Vcc. The LT1678 OPAMP common mode range is V- + 1.5 to V+ - 0.8V. Ensure the load cell sensor meets the requirments of the ADC and amplifier. Lastly, set the desired gain and read in differential mode. USER INPUT DATA FORMAT: decimal : 1024 hex : 0x400 octal : 02000 (leading 0 "zero") binary : B10000000000 float : 1024.0
http://www.linear.com/product/LTC2449
http://www.linear.com/product/LTC2449#demoboards
Copyright 2018(c) Analog Devices, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file DC1410AB.ino.
Go to the source code of this file.
Functions | |
static void | print_title () |
Prints the title block when program first starts. More... | |
static void | print_prompt () |
Prints main menu. More... | |
static void | print_user_command (uint8_t menu) |
static uint8_t | menu_1_read_differential () |
Read channels in differential mode. More... | |
static void | set_gain (uint8_t a_pin, uint8_t b_pin, uint8_t gain) |
Set the Mux select pins to the desired gain. More... | |
static void | init_gain_pins (uint8_t a_pin, uint8_t b_pin) |
initialize the MUX select pins More... | |
static void | menu_2_set_osr () |
Allows the user to sets the desired OSR. More... | |
static void | menu_3_set_channel_gain () |
Allows the user to sets the desired gain. More... | |
static void | print_gain (uint8_t gain) |
Utility function to display the gain. More... | |
static void | setup () |
Initialize Linduino. More... | |
static void | loop () |
Repeats Linduino loop. More... | |
Enumerations | |
enum | Av { unity, g8, g16, g32, unity, g8, g16, g32 } |
Variables | |
static uint8_t | demo_board_connected |
Set to 1 if the board is connected. More... | |
static uint16_t | osr = LTC2449_OSR_32768 |
Default OSR is 32768. More... | |
static float | LTC2449_lsb = 5.0 / 536870911 |
The LTC2449 ideal reference voltage. More... | |
static uint16_t | eoc_timeout = 250 |
Timeout in ms. More... | |
static uint8_t | filt_flag = 1 |
Keeps track when filters need to be reset. More... | |
static uint8_t | channel_gain [6] = {g32, g32, g32, g32, g32, g32} |
default is gain 32 More... | |
const uint16_t | read_command_seq [] |
Lookup table for reads. More... | |
static uint8_t | read_gain_seq [] |
Lookup table for gain setting reads. More... | |
const uint16_t | OSR_COMMAND [] |
Lookup table for OSR. More... | |
const uint8_t | A_PIN = 4 |
Gain MUX pins. More... | |
const uint8_t | B_PIN = 7 |
const float | smoothing_const = 0.7 |
Exponential filter smothing constant for the offset. More... | |
|
static |
initialize the MUX select pins
Definition at line 345 of file DC1410AB.ino.
|
static |
Repeats Linduino loop.
Definition at line 157 of file DC1410AB.ino.
|
static |
Read channels in differential mode.
Definition at line 216 of file DC1410AB.ino.
|
static |
Allows the user to sets the desired OSR.
Definition at line 459 of file DC1410AB.ino.
|
static |
Allows the user to sets the desired gain.
Definition at line 354 of file DC1410AB.ino.
|
static |
Utility function to display the gain.
Definition at line 439 of file DC1410AB.ino.
|
static |
Prints main menu.
Definition at line 206 of file DC1410AB.ino.
|
static |
Prints the title block when program first starts.
Definition at line 191 of file DC1410AB.ino.
|
static |
|
static |
Set the Mux select pins to the desired gain.
Definition at line 338 of file DC1410AB.ino.
|
static |
Initialize Linduino.
Definition at line 132 of file DC1410AB.ino.
enum Av |
Enumerator | |
---|---|
unity | |
g8 | |
g16 | |
g32 | |
unity | |
g8 | |
g16 | |
g32 |
Definition at line 97 of file DC1410AB.ino.
const uint8_t A_PIN = 4 |
Gain MUX pins.
Definition at line 125 of file DC1410AB.ino.
const uint8_t B_PIN = 7 |
Definition at line 126 of file DC1410AB.ino.
default is gain 32
Definition at line 105 of file DC1410AB.ino.
|
static |
Set to 1 if the board is connected.
Definition at line 100 of file DC1410AB.ino.
|
static |
Timeout in ms.
Definition at line 103 of file DC1410AB.ino.
|
static |
Keeps track when filters need to be reset.
Definition at line 104 of file DC1410AB.ino.
|
static |
The LTC2449 ideal reference voltage.
Definition at line 102 of file DC1410AB.ino.
|
static |
Default OSR is 32768.
Definition at line 101 of file DC1410AB.ino.
const uint16_t OSR_COMMAND[] |
Lookup table for OSR.
Build the command for OSR
Definition at line 120 of file DC1410AB.ino.
const uint16_t read_command_seq[] |
Lookup table for reads.
Channel read sequence for the demo board
Definition at line 109 of file DC1410AB.ino.
|
static |
Lookup table for gain setting reads.
The gain sequence for the auto calibration
Definition at line 116 of file DC1410AB.ino.
const float smoothing_const = 0.7 |
Exponential filter smothing constant for the offset.
Definition at line 129 of file DC1410AB.ino.