Все популярные товары
  • Banner

CooCox CooperKit Hall
  • CooCox CooperKit Hall
  • CooCox CooperKit Hall
  • CooCox CooperKit Hall
  • CooCox CooperKit Hall

DWM-CooCox CooperKit Hall

DWM14121905

CooperKit Hall Sensor measures the Hall Effect with A3144, the output of the Hall sensor turns on when a magnetic field (south polarity) perpendicular to the Hall sensor exceeds the BOP threshold, and it switches low and turn off when the magnetic field disappears.

Оптовые скидки

Количество Скидка Вы экономите
10 0,50 $ До 5,00 $
50 0,90 $ До 45,00 $
4,90 $
Без НДС
Количество

Описание

Featrues

  • 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.

 

Specifications

PCB size

36.0mm X 17.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_Hall.h"
#include "CooperKit_RGBLed.h"
/*
 * Connect the S port of CooperKit Hall 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(which is connected to D1) will
 * be ON; when the digital value is low level, LED lamp will be OFF.
 */

void Hall_Led_Init(void);

void Hall_Led(void)
{

       
unsignedchar ucHallRead;
        Hall_Led_Init
();

       
while(1)
       
{
                ucHallRead
= CooperKit_Hall_Read();

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

       
}

}

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

       
//
       
// Before call this funciton, Configure CooperKit_LED_RGB as 1 to Open Red LED only mode
       
// and configure the pin as PA0 (D1)which connect to the RGBLed R signal.
       
//
        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 Tilt driver is commucate with GPIO pin, so in the CooperKit_Hall.h file, the port configuration group provides the gpio pin connection Macro to user for port. For example your Hall signal pin is connect to GPIOA PIN2, you should modify the Macro as:

//*****************************************************************************
//
//! \addtogroup CooperKit_Hall_Config
//! CooperKit Hall configurator
//! @{
//
//*****************************************************************************

//
//! Configure the pin connection of CooperKit Hall
//
#define CooperKit_Hall_PIN         PA2

//*****************************************************************************
//
//! @}
//
//*****************************************************************************
Подробнее о товаре
DWM14121905
100 штук
Вложения
Скачать
Возможно, вам понравится

Код: DWM14121903

DWM-CooperKit Buzzer

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 $
Еще
По наличию
В этой категории 9 товаров:

Код: DWM14121904

DWM-CooCox CooperKit DHT11

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 $
Еще
По наличию

Код: DWM14121903

DWM-CooperKit Buzzer

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 $
Еще
По наличию

Reviews

Write your review

DWM-CooCox CooperKit Hall

CooperKit Hall Sensor measures the Hall Effect with A3144, the output of the Hall sensor turns on when a magnetic field (south polarity) perpendicular to the Hall sensor exceeds the BOP threshold, and it switches low and turn off when the magnetic field disappears.

Write your review

Присоединяйтесь к нам в Facebook