KY-033 Hunt sensor module
Original price was: R$ 39,37.R$ 32,81Current price is: R$ 32,81.
Disponível por encomenda
Camila / Dúvidas sobre o produto? Precisa de ajuda? Fale comigo.Descrição
analog Hall magnetic sensor moduleAnalog magnetic sensor module and a digital interface, built-in 13 LED build a simple circuit to produce a magnetic flash Makers.13 comes with digital interfaces of the LED, the analog magnetic sensor connected to the power board analog 5 ARDUINO Interfaces, when analog magnetic sensor to a signal, LED lights, otherwise the lights out.————————————————————-Example Code————————————————————int sensorPin = A5; / / select the input pinint ledPin = 13; / / select the pin for the LEDint sensorValue = 0; / / variable to store the value coming from thesensorvoid setup () {pinMode (ledPin, OUTPUT);Serial.begin (9600);}void loop () {sensorValue = analogRead (sensorPin);digitalWrite (ledPin, HIGH);delay (sensorValue);digitalWrite (ledPin, LOW);delay (sensorValue);Serial.println (sensorValue, DEC);}
Informação adicional
Peso | 0,0000 kg |
---|---|
Dimensões | 0,0000 × 0,0000 cm |