TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 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 (137101 times)
  2. FAT32 Library (70236 times)
  3. Network Ethernet Library (56126 times)
  4. USB Device Library (46434 times)
  5. Network WiFi Library (42077 times)
  6. FT800 Library (41389 times)
  7. GSM click (29116 times)
  8. mikroSDK (26562 times)
  9. PID Library (26503 times)
  10. microSD click (25487 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: 2957 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

LED Driver 11 click

0

LED Driver 11 Click is a compact add-on board that simplifies the control of multiple LEDs. This board features the WLMDU9456001JT (172946001), a fully integrated constant current LED driver with the buck switching regulator and inductor in a single package from Würth Elektronik.

[Learn More]

Stepper 3 click

0

Stepper 3 click is designed to drive unipolar stepper motors, with a supply voltage applied to the common wire. The current flows through the common wire and the motor coil, via the activated current sink driver, to the ground. This Click board™ uses the ULN2003A, a high voltage and current Darlington transistors array IC, as the sink driver. This IC is an ideal solution for this purpose, as it has seven high power Darlington output stages, activated by TTL/CMOS logic level signals, applied to the control pins. This allows driving unipolar stepper motors with up to 30V and 500mA per coil.

[Learn More]

Proximity 5 click

5

Proximity 5 click is a very accurate and reliable proximity sensing (PS) and ambient light sensing (ALS) device, equipped with the state-of-the-art PS and ALS sensor.

[Learn More]