TOP Contributors

  1. MIKROE (2662 codes)
  2. Alcides Ramos (357 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 (137044 times)
  2. FAT32 Library (70168 times)
  3. Network Ethernet Library (56043 times)
  4. USB Device Library (46365 times)
  5. Network WiFi Library (41982 times)
  6. FT800 Library (41313 times)
  7. GSM click (29080 times)
  8. mikroSDK (26520 times)
  9. PID Library (26454 times)
  10. microSD click (25449 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: 2951 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

Stepper 16 click

0

Stepper 16 Click is a compact add-on board that contains a micro-stepping stepper motor driver. This board features the NCV70517, an SPI and I/O configurable motor driver for bipolar stepper motors from ON Semiconductor.

[Learn More]

SPI Isolator 5 click

0

SPI Isolator 5 Click is a compact add-on board with a digital isolator optimized for a serial peripheral interface. This board features the DCL541A01, a high-speed quad-channel digital isolator from Toshiba Semiconductor. Outstanding performance characteristics of the DCL541A01 are achieved by Toshiba CMOS technology and the magnetic coupling structure. In addition, they comply with UL 1577 safety-related certification, have a withstand voltage rating of 5kVrms, and operate with the external supply voltage ranging from 2.25V to 5.5V, providing compatibility with lower voltage systems enabling voltage translation functionality across the isolation barrier.

[Learn More]

Excelon-Ultra click

0

Excelon-Ultra Click is a compact add-on board that contains the most reliable nonvolatile memory. This board features the CY15B116QSN, a high-performance 16-Mbit nonvolatile memory that employs an advanced ferroelectric process from Infineon Technologies.

[Learn More]