This wiki has been archived and made read-only.
For up-to-date information about TkkrLab and it's projects please visit our main website at tkkrlab.nl.

Arduino KY-033 Hunt sensor module

From

Jump to: navigation, search

WARNING this page is a copy/past of a bad google translation so it might contain errors. If you see a error help us to make it better and log in and change it. Big thanks!


Arduino KY-033 Hunt sensor module Sku 118057 2.jpg

Buy this sensor or kit.

analog Hall magnetic sensor module

Analog 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 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);
  Serial.println (sensorValue, DEC);
}