Linear Magnetic Hall Sensor

Product Description Use linear magnetic Holzer module and digital interface 13 with LED to build a simple circuit, making a magnetic field indicating light. Make use of the LED built in digital interface 13 to connect the linear Holzer magnetic sensor to digital interface 3. When linear magnetic...

Send InquiryChat Now
Product Details

Product Description

Use linear magnetic Holzer module and digital interface 13 with LED to build a simple circuit, making a magnetic field indicating light.

Make use of the LED built in digital interface 13 to connect the linear Holzer magnetic sensor to digital interface 3. When linear magnetic Holzer sensor senses a button signal, the LED is on; otherwise, it will be off.

Sample Code:

Int Led=13; / / define LED interface 

Int buttonpin=3; / / define the interface of linear magnetic Holzer sensor

Int Val; / / define digital variable val

Setup void ()

{

PinMode (Led, OUTPUT); / / LED was defined as the output interface

PinMode (buttonpin, INPUT); / / define linear magnetic Holzer sensor as output interface

}

Loop void ()

{

Val=digitalRead (buttonpin); / / read the value of digital interface 3 and assign it to val

If (val==HIGH) / / when the linear magnetic Holzer sensor detect a signal, LED is flashing

{

DigitalWrite (Led, HIGH);

}

Else

{

DigitalWrite (Led, LOW);


Kuongshun Electronic, one of the international well-known manufacturers and suppliers of linear magnetic hall sensor which is situated in China, now has quality products for sale. We are equipped with a group of professional and experienced workers, as well as advanced equipment. You can rest assured to buy discount and low price linear magnetic hall sensor made in China from us and check the pricelist with us.

Hot Tags: linear magnetic hall sensor suppliers China, manufacturers, low price, buy discount, pricelist, price, made in China
Related Products
Inquiry