Linear Magnetic Hall Sensor
Product DescriptionUse 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 sensorInt Val; / / define digital variable valSetup void (){PinMode (Led, OUTPUT); / / LED was defined as the output interfacePinMode (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 valIf (val==HIGH) / / when the linear magnetic Holzer sensor detect a signal, LED is flashing{DigitalWrite (Led, HIGH);}Else{DigitalWrite (Led, LOW);}
Other supplier products
|
|
MT3608 DC to DC Voltage Regulator Step Up Power Supply Board Boost Converter Module 2-24V to 5-28V 2ASpecifications:Input Voltage:2-24V Output Volt... |
|
|
51 MCU development board learning board 51 single-chip microcomputer system learning board test board KitExperimental plate kitLearning boardSmall ... |
|
|
E3D V6 Break for 1.75mm Filament· Material: stainless steel· For Reprap 3D Printer Extruder End 3mm· Inner diameter: 2mm for 3 mm filament· 1PCSx S... |
|
|
Product DescriptionFeatures: 1.It's to be used for detecting the sound intensity of ambient. 2. Adjustable sensitivity (adjusted by the blue digita... |
|
|
8232 AD8232 Ecg physiological measurement Ecg Physiological Measurement Heart Pulse Ecg Monitor Sensor Module Application:- Fitness and sports hear... |
供应产品
Same products