TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139254 times)
  2. FAT32 Library (71751 times)
  3. Network Ethernet Library (57122 times)
  4. USB Device Library (47430 times)
  5. Network WiFi Library (43082 times)
  6. FT800 Library (42404 times)
  7. GSM click (29835 times)
  8. mikroSDK (28078 times)
  9. PID Library (26885 times)
  10. microSD click (26198 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

Radiation click

Rating:

5

Author: MIKROE

Last Updated: 2020-03-11

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Environmental

Downloaded: 3480 times

Not followed.

License: MIT license  

Radiation Click is a Click boardâ„¢ based on BG51 radiation sensor from Teviso Sensor Technologies. The function of the BG51 radiation sensor is based on an array of customized PIN diodes.

No Abuse Reported

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

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

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

  • Information
  • 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

Radiation Click

Radiation Click

Native view of the Radiation Click board.

View full image
Radiation Click

Radiation Click

Front and back view of the Radiation Click board.

View full image

Library Description

The library contains a reading of the state on the interrupt pin. Calculates the number of interruptions in one minute (cpm).

Key functions:

  • uint32_t radiation_get_cpm_counter( uint8_t cpm_time ) - Gets CPM ( Counts per minute ).
  • void radiation_tick( ) - Tick functions.
  • uint8_t radiation_get_int_state( ) - Gets interrupt pin state.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes the INT pin required to measure.
  • Application Initialization - Initializes the driver
  • Application Task - Checks whether command S has been entered
  • if so starts radiation measurement. After 60sec it prints the measured radiation in [CPM] and [uSv/h] units.

We used a PB40 sensor with <0.05uCi for the test.

  • Radiation units note - The standard unit of radiation dosing in an area is the micro-Sievert/hour (uSv/hr). For this tube, multiply its CPM by 0.0057 to get the equivalent uSv/hr radiation level.
void application_task ( )
{
    uint32_t cpm_value = 0;
    char demo_text[ 50 ];

    uint8_t rsp_drdy;
    char rsp_data;

    rsp_drdy = UART_Rdy_Ptr( );

    if ( rsp_drdy != 0 )
    {
        rsp_data = UART_Rd_Ptr( );

        switch ( rsp_data )
        {
            case 'S' :
            {
                mikrobus_logWrite( " --- PLEASE WAIT FOR THE CALCULATION PROCESS TO COMPLETE ---", _LOG_LINE );
                mikrobus_logWrite( " --- RADIATION MEASUREMENT TAKES 60 SECONDS ---", _LOG_LINE );
                
                radiation_config_timer( );
                cpm_value = radiation_get_cpm_counter( RADIATION_CPM_TIME_60s );

                WordToStr( cpm_value, demo_text );
                mikrobus_logWrite( " Radiation in [CPM]: ", _LOG_TEXT );
                mikrobus_logWrite( demo_text, _LOG_LINE );
                
                FloatToStr( cpm_value * RADIATION_CONSTANT_uSv, demo_text );
                mikrobus_logWrite( " Radiation in [uSv/h]: ", _LOG_TEXT );
                mikrobus_logWrite( demo_text, _LOG_LINE );
                break;
            }
        }
    }
}

Other mikroE Libraries used in the example:

  • 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

OOK RX Click

0

OOK RX Click is a wireless receiver that operates at the frequency of 433MHz (sub-GHz). This device allows realization of a simple, low-speed wireless ad hoc communication network between a receiver and compatible transmitter.

[Learn More]

Stepper 22 Click

0

Stepper 22 Click is a compact add-on board designed for precise motion control of bipolar stepper motors and brushed DC motors. This board features the DRV8711, a bipolar stepper motor gate driver from Texas Instruments, which uses external N-channel MOSFETs to drive motors with up to 5A of output current. The board features a wide range of microstepping options from full-step to 1/256-step, adaptive blanking time, and various current decay modes, ensuring smooth and accurate motor operation. Control is achieved via a standard SPI interface and STEP/DIR inputs, with additional management through an onboard I2C-configurable GPIO expander.

[Learn More]

Balancer 4 Click

0

Balancer 4 Click is a compact add-on board optimized for overvoltage protection balancing the voltage of serially connected batteries. This board features the MP2672A, a highly integrated, flexible switch-mode battery charger for Lithium-Ion batteries with two cells in series from Monolithic Power Systems (MPS). The MP2672A has a narrow voltage DC (NVDC) power structure and monitors the voltage across each cell, equalizing the cell�s voltages if the difference between the two cells exceeds the mismatch threshold. It also has two selective operating modes with configurable output current up to 2A via register setting via I2C serial interface, alongside selectable MP2672A power supply, LED indication, and protection features allowing a reliable operation.

[Learn More]