TOP Contributors

  1. MIKROE (2642 codes)
  2. Alcides Ramos (348 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 (136223 times)
  2. FAT32 Library (69492 times)
  3. Network Ethernet Library (55711 times)
  4. USB Device Library (45994 times)
  5. Network WiFi Library (41639 times)
  6. FT800 Library (40801 times)
  7. GSM click (28789 times)
  8. PID Library (26332 times)
  9. mikroSDK (26059 times)
  10. microSD click (25146 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: 2825 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

I2C Isolator 6 click

0

I2C Isolator 6 Click is a compact add-on board that offers completely isolated bidirectional communication. This board features the ADUM2250, a two-channel, 5kVRMS I2C digital isolator from Analog Devices. The ADUM2250 provides two bidirectional channels, supporting a completely isolated I2C interface that eliminates the need for splitting I2C signals into separate transmit and receive signals for use with standalone optocouplers. It supports data rates from DC up to 1MHz and has a hot swap circuitry to prevent data glitches.

[Learn More]

UPS 3 click

0

UPS 3 Click is a compact add-on board that represents a bidirectional active charge/balancing solution. This board features the LTC3110, a bidirectional buck-boost DC/DC regulator/charger combination with selectable operation modes for charging and system backup from Analog Devices. It can autonomously transition from Charge to Backup mode or switch modes based on an external command. A proprietary low noise switching algorithm optimizes efficiency with capacitor/battery voltages above, below, or equal to the system output voltage. Additional features include voltage supervisors for direction control and end of a charge and a general-purpose comparator with open-collector output for interfacing with MCU. This Click board™ is suitable for a backup power source for a wide range of battery-operated embedded applications.

[Learn More]

Scanner click

0

Scanner Click as his name said, is an optical scanner expansion board for building optical cost-sensitive scanners and printers.

[Learn More]