TOP Contributors

  1. MIKROE (2641 codes)
  2. Alcides Ramos (347 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136215 times)
  2. FAT32 Library (69476 times)
  3. Network Ethernet Library (55703 times)
  4. USB Device Library (45989 times)
  5. Network WiFi Library (41638 times)
  6. FT800 Library (40778 times)
  7. GSM click (28787 times)
  8. PID Library (26327 times)
  9. mikroSDK (26050 times)
  10. microSD click (25136 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

Wheatstone click

Rating:

5

Author: MIKROE

Last Updated: 2020-07-02

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Power supply

Downloaded: 2070 times

Not followed.

License: MIT license  

Wheatstone Click is a measurement Click board which utilizes a Wheatstone bridge circuit onboard, in order to precisely measure the resistance of an external element. Besides the wheatstone bridge circuit, this Click board also utilizes MAX4208 – an ultra-low offset/drift, precision instrumentation amplifier, from Maxim Integrated.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Wheatstone click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Wheatstone click" changes.

Do you want to report abuse regarding "Wheatstone click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Wheatstone Click

Wheatstone Click

Native view of the Wheatstone Click board.

View full image
Wheatstone Click

Wheatstone Click

Front and back view of the Wheatstone Click board.

View full image

Library Description

The library contains basic functions for working with Wheatstone click.

Key functions:

  • float wheatstone_get_voltage ( uint16_t adc_value ) - Get Voltage
  • void wheatstone_set_adc_vref ( float vref ) - Set ADC VREF
  • void wheatstone_set_adc_resolution ( float res ) - Set ADC resolution

Examples description

The application is composed of three sections :

  • System Initialization - Initializes the SPI driver init all necessary GPIO pins
  • Application Initialization - Initializes driver init and ADC module init - sets the ADC resolution, vref and potentiometer
  • Application Task - Reads the ADC value and converts to voltage on the AN pin
  • Note: Set the ADC resolution and vref before programming
void application_task ( )
{
    char demo_text[ 50 ];
    float voltage;
    uint32_t adc_value = 0;
    
    adc_value = wheatstone_adc_read( );
    IntToStr( adc_value, demo_text );
    mikrobus_logWrite( "-- ADC value: ", _LOG_TEXT );
    mikrobus_logWrite( demo_text, _LOG_LINE );
    
    voltage = wheatstone_get_voltage( adc_value );

    FloatToStr( voltage, demo_text );
    mikrobus_logWrite( "-- Voltage: ", _LOG_TEXT );
    mikrobus_logWrite( demo_text, _LOG_TEXT );
    mikrobus_logWrite( "mV", _LOG_LINE );
    
    mikrobus_logWrite( "---------------------", _LOG_LINE );
    Delay_ms( 2000 );
}

Other mikroE Libraries used in the example:

  • SPI Library
  • ADC Library
  • Conversions Library

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.

ALSO FROM THIS AUTHOR

TDC click

0

TDC Click is a compact add-on board that recognizes events and provides a digital representation of the time they occurred. This board features the TDC7200, a time-to-digital converter from Texas Instruments. The Time to Digital Converter (TDC) performs the function of a stopwatch and measures the elapsed time (time-of-flight or TOF) between a START pulse and up to five STOP pulses. The ability to measure from START to multiple STOPs gives users the flexibility to select which STOP pulse yields the best echo performance.

[Learn More]

NFC Extend click

0

NFC Extend Click is NFC tag interface device with possibility of using any shape and size external antenna, offering 16 Kbit of electrically erasable programmable memory (EEPROM). This Click Board™ offer two communication interfaces.

[Learn More]

RN4871 click

6

RN4871 click carries the RN4871 Bluetooth® 4.2 low energy module from Microchip. The click is designed to run on a 3.3V power supply. It communicates with the target microcontroller over UART interface, with additional functionality provided by the following pins on the mikroBUS™ line: RST, CS and INT.

[Learn More]