CooCox CooperKit Button
  • CooCox CooperKit Button
  • CooCox CooperKit Button
  • CooCox CooperKit Button
  • CooCox CooperKit Button

DWM-CooCox CooperKit Button

DWM14121902
Cooperkit Button is finger-sized, which can be connected to I/O port of main board or externally disconnected to check the switch state so as to control ON/OFF of LED lamp.
 

Volume discounts

Quantity Unit discount You Save
10 $0.50 $5.00
50 $0.90 $45.00
$2.90
Quantity
100 Items

  Security policy

Your payment information is processed securely. We never store credit card details.

  Delivery policy

Orders are dispatched within 1-2 business days with tracking where available.

  Return policy

30-day return policy for unused items in original packaging. Contact us first.

Description

Features

  • 1. Plug and play, easy to use. Compatible with the mainstream 2.54 interfaces and 4-Pin Grove interfaces in the market.
  • 2. With use of M4 standard fixed holes, compatible with M4-standard kits such as Lego and Makeblock.
  • 3. Hardware with debouncing function for more stable output

 

Specifications

PCB size

36.0mm X 14.0mm X 1.6mm

Working voltage

3.3 or 5V DC

Operating voltage

3.3 or 5V DC

Compatible interfaces

2.54 3-pin interface and 4-pin Grove interface(1)

Note 1: S for digital output port, V and G for voltage at the common collector and ground respectively. Generally speaking, digital output is VCC; when the button is pressed down, the digital output is 0V.

Demo for CoX Library

#include "CooperKit_Button.h"
#include "CooperKit_RGBLed.h"

/*
 * Connect the S port of CooperKit button switch to D0 Pin of Connect shield,
 * and we will use the following program to read the digital value. When the
 * digital value is high level, RGBLED R lamp(whicn is connected to sD1) will
 * be ON; when pressed down the digital value is low level, LED lamp will be
 * OFF.
 */

void Button_Led_Init(void);

void Button_Led(void)
{

       
unsignedchar ucButtonRead;
        Button_Led_Init
();

       
while(1)
       
{
                ucButtonRead
= CooperKit_Button_Read();

               
if(1== ucButtonRead )
               
{
                        CooperKit_RedLed_On
();
                       
//Delay(10);
               
}
               
else
               
{
                        CooperKit_RedLed_Off
();
                       
//Delay(10);
               
}

       
}

}

void Button_Led_Init(void)
{
       
//
       
// Before call this funciton, Configure the pin as PA1 (D0) which connect to CooperKit Button
       
// signal first.
       
//
        CooperKit_Button_Init
();

       
//
       
// Before call this funciton, Configure the pin as PA0 (D1) which connect to CooperKit RGBLed
       
// R signal first.
       
//
        CooperKit_RGBLed_Init
();
}

How to Port

This demo is based on CoX M051 library, if you want to port to other CoX library, Just do the simple step below.
The Button driver is commucate with GPIO pin, so in the CooperKit_Button.h file, the port configuration group provides the gpio pin connection Macro to user for port.  For example your Button signal pin is connect to GPIOA PIN1, you should modify the Macro as: 

//*****************************************************************************
//
//! \addtogroup CooperKit_Button_Config
//! CooperKit Button configurator
//! @{
//
//*****************************************************************************
//
//! Configure the pin connection of CooperKit Button
//
#define CooperKit_Button_PIN  PA1
//
//! Set the effective output level of CooperKit Button when key is pressed down
//
#define CooperKit_Button_EFFECTIVE_LEVEL                   \
               
0
//*****************************************************************************
//
//! @}
//
//*****************************************************************************
Product Details
DWM14121902
100 Items
Attachments
Download
Comments (0)
Grade
4 other products in the same category:
RAK8211-NB iTracker combines NB-IoT+BLE+GPS+ 5 Sensors Development Board

Reference: DWM18011601

RAK8211-NB iTracker combines NB-IoT+BLE+GPS+ 5 Sensors Development Board

(0)
RAK8211-NB iTracker combines NB-IoT+BLE+GPS+ 5 Sensors Development Board has BLE GPRS GPS three in one module perfectly solves the problem of data interaction and control in the outdoor environment and the three party platform.
$85.00
More RAK8211-NB iTracker combines NB-IoT+BLE+GPS+ 5 Sensors Development Board
CooCox CooperKit DHT11

Reference: DWM14121904

DWM-CooCox CooperKit DHT11

(0)
CooperKit DHT11 digital temperature & humidity sensor features a digital temperature & humidity sensor complex with a calibrated digital signal output. Its single-bus operation, extremely small size and low consumption enable it to be used in HVAC, automotive, weather stations, dehumidifier and other applications.
$7.99
More DWM-CooCox CooperKit DHT11
CooperKit Buzzer

Reference: DWM14121903

DWM-CooperKit Buzzer

(0)
Cooperkit Buzzer is connected to the digital I / O port, when the output is low, buzzer will give a long sound. If it is connected to an analog pulse width modulation (PWM) output , the buzzer can produce a variety of tones, which can be made into the speaker of electronic organ.
$3.90
More DWM-CooperKit Buzzer

Follow us on Facebook