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);}Send product request
Other supplier products
16 In 1 TL866CS Universal Programmer | MiniPro V6.1 TL866CS Prgrammer USB Universal Programmer + 6 PCS ADAPTERS +SOP8 TEST CLIPPackage Included: 1* TL866CS Programmer with package 1* USB... | |
Correlation Photoelectric Sensor Infrared Correlation Counting Sensor | Product features1,size: 32mm(length) *11mm(width)*20mm(height)2,the main chip: LM393, the opposite type infrared head3,working voltage: 5V DC4,with... | |
Direct PEEK Tube | Product name :Direct PEEK TubeProduct Details:Material: PEEK,Website:: 1 piecesThis item has two models available: for 1.75mm and 3mm Filament . | |
3D Printer Filament PETG | Product name :3D Printer Filament PETG 1.75mm/3mmProduct Description3D Printer Filament PETG 1.75mm/3mm1.75mm/3mm for Makerbot/Reprap/Mendel/UP Mac... | |
51 Microcontroller Development Board 51 Singlechip Processor System Learning Board Experiment Suite | 51 MCU development board learning board 51 single-chip microcomputer system learning board test board KitExperimental plate kitLearning boardSmall ... |
Same products
Top Bend 15*12mm Ip68 Flex Neon Strip Illuminated On Three Sides | Seller: PANERALUX LIGHTING(NINGBO) CO.,LTD | Arc & linear strip for pool, with 24Vdc safety voltage, neon flex IP68 protection level, UV r... | |
China manufacturer Pressure Gauge HS75668 for power generation | Seller: DONGFANG YOYIK (DEYANG) ENGNIEERING CO; LTD | "China manufacturer Pressure Gauge HS75668 for power generation It is YOYIK special sale. Deyang ... | |
"China factory Vacuum Switch HS70595 for power station | Seller: DONGFANG YOYIK (DEYANG) ENGNIEERING CO; LTD | "China factory Vacuum Switch HS70595 for power station Our company mainly serves thermal power pl... | |
China made TSI Preamplifier CON021/916-240 for power plant | Seller: DONGFANG YOYIK (DEYANG) ENGNIEERING CO; LTD | China made TSI Preamplifier CON021/916-240 for power plant Dongfang Yoyik has advanced technology... | |
China manufacturer Preamplifier for power generation | Seller: DONGFANG YOYIK (DEYANG) ENGNIEERING CO; LTD | "China manufacturer Preamplifier for power generationIs to use the generator sets of professiona... |