• Part: KY-035
  • Description: Bihor magnetic sensor module
  • Manufacturer: Joy-IT
  • Size: 526.63 KB
Download KY-035 Datasheet PDF
Joy-IT
KY-035
KY-035 is Bihor magnetic sensor module manufactured by Joy-IT.
- Part of the KY-035-Joy comparator family.
description 1 3 Pinout 2 4 Code example Arduino 2 5 Code example Raspberry Pi 3 Pictures Technical data / Short description Chipset: AH49E The sensor measures the current magnetic field, near to the sensor. Export: 16.06.2017 Copyright by Joy-IT - Published under CC BY-NC-SA 3.0 Page 154 of 214 KY-035 Bihor magnetic sensor module Pinout Code example Arduino The program measures the current voltage value at the sensor, calculates with it and a known resistor the resistance from the sensor and shows the results via serial output. int sensor Pin = A5; // Declaration of the input pin // Serial OUT in 9600 baud void setup() { Serial.begin(9600); } // The program measures the current voltage at the sensor, // calculates the resistance with it and a known resistor // and outputs it via serial OUT void loop() { // Measuring of the current voltage... int raw Value = analog Read(sensor Pin); float voltage = raw Value - (5.0/1023) - 1000; float resitance = 10000 - ( voltage / ( 5000.0 - voltage) ); // ... output via serial interface Serial.print("Voltage:"); Serial.print(voltage); Serial.print("m V"); Serial.print(", Resistance:"); Serial.print(resitance); Serial.println("Ohm"); Serial.println("---------------------------------------"); delay(500); } Connections Arduino: Sensor GND Sensor +V = [Pin GND] = [Pin 5V] Export: 16.06.2017 Copyright by Joy-IT - Published under CC BY-NC-SA 3.0 Page 155 of 214 KY-035 Bihor...