类比霍尔磁性传感器 KY-035
英文描述:
Makers.13 comes with digital interfaces of the LED, the analog magnetic sensor connected to the power board analog 5 Interfaces, when analog magnetic sensor to a signal, LED lights,otherwise the lights out.
With reference program:
int sensorPin = A5; // select the input pin
int ledPin = 13; // select the pin for the LED
int sensorValue = 0; // variable to store the value coming from the sensor
void setup ()
pinMode (ledPin, OUTPUT);
Serial.begin (9600);
void loop ()
sensorValue = analogRead (sensorPin);
digitalWrite (ledPin, HIGH);
delay (sensorValue);
digitalWrite (ledPin, LOW);
delay (sensorValue);
1 X KY-035 Class Bihor Analog Hall Magnetic Sensor Module
图片展示:
发货清单:1pcs 类比霍尔磁性传感器
수입신고 1USD |
구매/결제대행 1CNY |
TT송금 1CNY |
---|---|---|
6.81 CNY | 203.62 KRW | 0.149 USD |