TOP Contributors

  1. MIKROE (2751 codes)
  2. Alcides Ramos (372 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 (139060 times)
  2. FAT32 Library (71592 times)
  3. Network Ethernet Library (56989 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29777 times)
  8. mikroSDK (27874 times)
  9. PID Library (26858 times)
  10. microSD click (26129 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: 3385 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

DAC 6 Click

0

DAC 6 Click is a compact add-on board that contains a fully-featured, general-purpose voltage-output digital-to-analog converter.

[Learn More]

Qi Receiver click

5

Qi Receiver click is based on the P9025AC 5W Qi wireless power receiver integrated circuit, with the advanced Foreign Object Detection (FOD) feature, from IDT. The click utilizes the principles of the inductive coupling for the purpose of wireless power transfer.

[Learn More]

MAGNETO 4 click

5

Magneto 4 click is a high-resolution magnetic encoder Click board which allows contactless movement sensing down to 0.5µm. It features the AS5311, the complete integrated solution with Hall elements, low-noise analog front-end, and digital signal processing (DSP) sections, on the same die.

[Learn More]