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
|
|
Power Supply 400W 12V 33A |
Power Supply 400W 12V 33A S-400-12Input Voltage: AC 100V~120V 60HZ; 200-220V 50HZOutput Voltage: 12V DCOutput Current: 20AShell Material: Iron ca... |
|
|
8 Road/Channel Relay Module (with Light Coupling)24V |
Four way Solid State Relay Module For Arduino Description: 5V Omron solid state relays 240V / 2A, output with resistive fuse 240V / 2A. Dimensions:... |
|
|
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 . |
|
|
Sanguinololu V1.3A |
Product name:Sanguinololu V1.3AProduct Features· Supports multiple communication configurations.· Supports multiple power configurations· Small des... |
|
|
DS18B20 Digital Temperature Sensor Module + Cable |
Product DescriptionFeatures:100% brand new and high qualitySmall size, high efficiencyResolution adjusting range:with installing hole,easy to insta... |
All supplier products
Same products