TOP Contributors

  1. MIKROE (2659 codes)
  2. Alcides Ramos (356 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 (136960 times)
  2. FAT32 Library (70081 times)
  3. Network Ethernet Library (56017 times)
  4. USB Device Library (46338 times)
  5. Network WiFi Library (41958 times)
  6. FT800 Library (41266 times)
  7. GSM click (29051 times)
  8. mikroSDK (26481 times)
  9. PID Library (26447 times)
  10. microSD click (25411 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: 2139 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

Temp-Hum 11 click

5

Temp-hum 11 click is a temperature and humidity sensing Click board, equipped with the HDC1080, a high accuracy digital humidity, and temperature sensor.

[Learn More]

LLC I2C click

0

LLC I2C click can be utilized as the level converter for logic signals, which makes it a very useful Click board™. The topology of this logic level conversion (LLC) circuit is perfectly suited for the bi-directional I2C communication. Although there are some specialized integrated circuits on the market, sometimes it is more convenient to have a simple solution made of just a few passive elements and four MOSFETs.

[Learn More]

EnOcean 4 click

0

EnOcean 4 Click carries a ultra-low power TCM515U transceiver gateway module which operates at 902MHz radio band, perfectly suited for the realization of transceiver gateways, actuators and controllers for systems communicating based on the EnOcean radio standard.

[Learn More]