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);}
Другие товары поставщика
|
|
|
Product DescriptionSODIAL(R) HC-SR501 Human Sensor Module Pyroelectric Infrared BlueColor: BlueDelay time: 5-200S (adjustable) the range is (0.xx s... |
|
|
|
Description:Code disk Technical parameters:Brand new and high quality.Number of lines: 100 linesOuter diameter: 22mmBore Diameter: 3.5mmThickness: ... |
|
|
|
RP5 Crawler Chassis Tanks ,Smart Car Power Tracking Tracing Obstacle Avoidance Driver ModuleThe performance parameters:Or: 180 mm * 135 mm*58 mm(l... |
|
|
|
Product DescriptionSize: 15.5 * 16 * 15.5 mmThe module features:1, 2 channels of logic and high voltage low voltage logic two-way transformation2, ... |
|
|
|
Power Supply 400W 12V 33A S-400-12Input Voltage: AC 100V~120V 60HZ; 200-220V 50HZOutput Voltage: 12V DCOutput Current: 20AShell Material: Iron ca... |
Все товары поставщика
Похожие товары