TOP Contributors

  1. MIKROE (2657 codes)
  2. Alcides Ramos (354 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 (136892 times)
  2. FAT32 Library (70029 times)
  3. Network Ethernet Library (56003 times)
  4. USB Device Library (46308 times)
  5. Network WiFi Library (41934 times)
  6. FT800 Library (41224 times)
  7. GSM click (29020 times)
  8. PID Library (26434 times)
  9. mikroSDK (26401 times)
  10. microSD click (25386 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

OOK TX click

Rating:

5

Author: MIKROE

Last Updated: 2018-05-17

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Sub-1 GHz Transceivers

Downloaded: 4702 times

Not followed.

License: MIT license  

OOK TX click is a simple wireless transmitter 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 transmitter and compatible receiver, such as the OOK RX click.

No Abuse Reported

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

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

Do you want to report abuse regarding "OOK TX click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal 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
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal 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
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

OOK TX click

OOK TX click

Native view of the OOK TX Click board.

View full image
OOK TX click

OOK TX click

Front and back view of the OOK TX Click board.

View full image

Library description

This library contains functions required to setup OOK communication.

Key functions

uint8_t ooktx_communicationInit(uint8_t calibration, uint8_t configuration, uint16_t configurationSettings) - Initializes communication with the click

uint8_t ooktx_communicationTransmit(uint8_t transmitData) - Transmits data via OOK

uint8_t ooktx_communicationStop() - Sends a stop condition

The application is composed of three sections :

  • System Initialization - Initializes output pins.
  • Application Initialization - Initializes click driver.
  • Application Task - Code snippet - Sends a data byte that is incremented after every transmission. Data byte is prefixed by preambule bytes and start packet bytes that help the receiver to differentiate received data from glitches.
void applicationTask()
{
    uint8_t i;
    uint8_t j;

    i = 1;
    while(1)
    {
        //Signals the device to start ook communication
        ooktx_communicationInit(_OOKTX_CALIBRATION_ENABLE, 
        _OOKTX_CONFIGURATION_ENABLE, _OOKTX_CFG_DEFAULT);

        //Sends a sufficiently long preambule - 8 bytes of "01010101" sequence
        for (j = 0; j < 8; j++)
        {
            ooktx_communicationTransmit(_OOKTX_PREAMBULE);
        }

        /*
         * Sends 2 "Start packet" bytes - To help the receiver to differentiate
         * actual data packages from signal glitches. These bytes can be any
         * random number, as long as receiver knows what to expect.
         */
        ooktx_communicationTransmit(0xCE);
        ooktx_communicationTransmit(0x35);

        //Data byte to be transmitted
        ooktx_communicationTransmit(i);

        //Stops ook communication
        ooktx_communicationStop();
        delay_ms(1000);
        i ++;
    }

}

ALSO FROM THIS AUTHOR

Stepper 13 click

5

Stepper 13 Click is a bipolar step motor driver. It features an H-bridge bipolar step motor driver, which supports full-, half-, quarter-, or eighth-step modes.

[Learn More]

EEPROM 2 Click

5

EEPROM 2 click carries ST’s M95M02 DIP-8 socket EEPROM chip with 256 KB of memory. The board communicates with the target MCU through the mikroBUS SPI interface (CS, SCK, MISO and MOSI pins) with speeds up to 5 MHz. This example demonstrates how the EEPROM 2 click works.

[Learn More]

Vibro Motor 4 click

0

Vibro Motor 4 Click is a compact add-on board that makes an ideal solution for adding simple haptic feedback in any design. This board features the G1040003D, a coin-sized linear resonant actuator (LRA) that generates vibration/haptic feedback from Jinlong Machinery & Electronics, Inc. Driven by a flexible Haptic/Vibra driver, the DRV2605, G1040003D vibrates in the Z-axis, which is perpendicular to the face of the vibration motor. It draws a maximum of 170mA while producing the highest G force/vibration energy of 2 GRMS. This Click board™ makes an excellent choice for devices with limited battery capacity and for users who require crisp haptic feedback and low power consumption.

[Learn More]