[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-700540-105":3,"doc-detail-700540-en":81,"detail-sidebar-cat-0-en-105":115,"doc-similar-700540":161},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","hall-magnetic-field-sensor-ky-003-user-guide","Hall Magnetic Field Sensor - KY-003 - User Guide","","Hall Magnetic Field Sensor KY-003 user guide explaining how to commission and use the module. Covers an overview of the Hall effect transistor/switch behavior and how magnetic presence is converted to an analog voltage output. Provides Arduino and Raspberry Pi pin assignments plus complete code examples for LED switching on signal detection. Includes support contact options and mandatory information on electrical and electronic equipment take-back and return obligations.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/hall-magnetic-field-sensor-ky-003-user-guide/700540/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/hall-magnetic-field-sensor-ky-003-user-guide/700540.png","ImageObject",300,407,{"name":42,"@type":43},"FajarTechTalk","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-27","2026-11-12",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",5,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What is the function of the Hall Magnetic Field Sensor KY-003 module?","Question",{"text":63,"@type":64},"The module uses a Hall effect transistor/switch. When held in a magnetic field, it switches through and the signal can be read out at the output as an analog voltage value.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How should the sensor be connected when using Arduino?",{"text":68,"@type":64},"Connect LED+ to Pin 13, LED- to Pin GND, Signal to Pin 10, +V to Pin 5V, and GND to Pin GND.",{"name":70,"@type":61,"acceptedAnswer":71},"How does the Raspberry Pi example detect the sensor signal and trigger output?",{"text":72,"@type":64},"The code sets GPIO24 as an input with pull-up enabled and registers a falling-edge event. On detection, the callback prints a message, and the program runs in a loop with cleanup on exit.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},700540,1794519263,{"code":4,"msg":82,"data":83},"success",{"doc_id":79,"user_id":84,"nickname":42,"user_avatar":85,"doc_module":4,"category_id":86,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":87,"file_id":88,"file_url":89,"file_type":90,"file_size":91,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":92,"language":93,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":94,"faqs":95,"seo_title":96,"seo_description":12,"update_tm":80,"read_time":97,"preview_page_count":33,"preview_urls":98},962094249465,"https://ap-avatar.wpscdn.com/davatar_29158cc5080c5b710cf443261637dec0",6,"3  \nHall Magnetic Field Sensor  \nKY-003  \nHall Magnetic Field Sensor  \nTABLE OF CONTENTS  \n1. Overview  \n2. Pin-Assignment  \n3. Code Example Arduino  \n4. Code Example Raspberry Pi  \n5. Information and take-back obligations  \n6. Support  \nPublished: 27.08.2018 Copyright by Joy-IT 2  \nHall Magnetic Field Sensor  \n1. OVERVIEW  \nDear customer,  \nThank you for choosing our product.  \nIn the following, we will show you what to observe during commissioning and use. Should you encounter any unexpected problems during use, please do not hesitate to contact us.  \n\n| Chipset | A3141 |\n| --- | --- |\n| Sensor Type | Hall Effect Transistor/Switch |\n\nThe transistor switches through if the module is held in a magnetic field. This can then be read out at the signal output as an analog voltage value.  \n2. PIN-ASSIGNMENT  \n| Pin Assignment Arduino |  |\n| --- | --- |\n| LED + | Pin 13 |\n| LED- | Pin GND |\n| Signal | Pin 10 |\n| +V | Pin 5V |\n| GND | Pin GND |\n\n\n| Pin Assignment Raspberry Pi |  |\n| --- | --- |\n| Signal | GPIO24 [Pin 18] |\n| +V | 3,3V [Pin 1] |\n| GND | Masse [Pin 6] |\n\nPublished: 27.08.2018 Copyright by Joy-IT 3  \nHall Magnetic Field Sensor  \n3. CODE EXAMPLE ARDUINO  \nThis is an example program that lights up an LED when a signal is detected on the sensor. The KY-011, KY- 016 or KY-029 modules can also be used as LEDs, for example.  \nYou can download the code example here, or copy the following example:  \nint Led = 13 ;// Declaration of the LED output pin int Sensor = 10; // Declaration of the sensor input pin int val; // Temporary Variable  \nvoid setup (){  \npinMode (Led, OUTPUT) ; // Initialization of output pin pinMode (Sensor, INPUT) ; // Sensor pin initialization  \ndigitalWrite(Sensor, HIGH); // Activation of internal pull-up resistor}  \nvoid loop (){  \nval = digitalRead (Sensor) ; // The current signal at the sensor is read out  \nif (val == HIGH) // If a signal could be detected, the LED is switched on.{  \ndigitalWrite (Led, LOW);}  \nelse  \n{  \ndigitalWrite (Led, HIGH);}  \n}  \nPublished: 27.08.2018 Copyright by Joy-IT 4  \nHall Magnetic Field Sensor  \n4. CODE EXAMPLE RASPBERRY PI  \nYou can download the code example for Raspberry Pis here or copy and paste the following section.  \n\\# Required modules are imported and set up  \nimport RPi.GPIO as GPIO  \nimport time  \nGPIO.setmode(GPIO.BCM)  \n\\# The input pin to which the sensor is connected is declared here. In addition, the PullUP resistor at the input is also activated  \nGPIO_PIN = 24  \nGPIO.setup(GPIO_PIN, GPIO.IN, pull_up_down = GPIO.PUD_UP)  \nprint \"Sensor-Test [druecken Sie STRG+C, um den Test zu beenden]\"  \n\\# This output function is executed on signal detection def ausgabeFunktion(null):  \nprint(\"Signal erkannt\")  \n\\# When a signal is detected (falling signal edge), the output function is triggered  \nGPIO.add_event_detect(GPIO_PIN, GPIO.FALLING, callback=ausgabeFunktion, bouncetime=100)  \n\\# main loop try:  \nwhile True:  \ntime.sleep(1)  \n\\# Cleanup after the program is finished except KeyboardInterrupt:  \nGPIO.cleanup()  \nPublished: 27.08.2018 Copyright by Joy-IT 5  \nHall Magnetic Field Sensor  \n5. INFORMATION AND TAKE-BACK OBLIGATIONS  \nSymbol on electrical and electronic equipment  \nThis crossed-out dustbin means that electrical and electronic equipment does not belong in household waste. You must return the old devices to a collection point. Before disposal, you must separate old batteries and accumulators which are not enclosed in the old device from it.  \nReturn options  \nAs an end user, you can dispose of your old device (which essentially fulfils the same function as the new one purchased from us) free of charge when purchasing a new device. Small appliances where no external dimensions are larger than 25 cm can be delivered in normal household quantities, irrespective of the purchase of a new appliance.  \nPossibility of return at our company location during opening hours  \nSimac Ltd, Pascalstr. 8, 47506 Neukirchen-Vluyn, Germany  \nPossibility of return in your area ","cbCairxYSkG7Y0oy","https://ap.wps.com/l/cbCairxYSkG7Y0oy","pdf",396999,7,"English","# Overview\n# Pin-Assignment\n# Code Example Arduino\n# Code Example Raspberry Pi\n# Information and take-back obligations\n# Support","[{\"question\":\"What is the function of the Hall Magnetic Field Sensor KY-003 module?\",\"answer\":\"The module uses a Hall effect transistor/switch. When held in a magnetic field, it switches through and the signal can be read out at the output as an analog voltage value.\"},{\"question\":\"How should the sensor be connected when using Arduino?\",\"answer\":\"Connect LED+ to Pin 13, LED- to Pin GND, Signal to Pin 10, +V to Pin 5V, and GND to Pin GND.\"},{\"question\":\"How does the Raspberry Pi example detect the sensor signal and trigger output?\",\"answer\":\"The code sets GPIO24 as an input with pull-up enabled and registers a falling-edge event. On detection, the callback prints a message, and the program runs in a loop with cleanup on exit.\"}]","Hall Magnetic Field Sensor - KY-003 - User Guide | PDF",18,[99,103,107,111],{"page_no":22,"url":100,"width":101,"height":102},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/5344b6a761d8480b90e8c127fb72ac4f.webp",983,1390,{"page_no":26,"url":104,"width":105,"height":106},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/531ffabcc30ba41ee3f07fe2ad56a143.webp",982,1388,{"page_no":30,"url":108,"width":109,"height":110},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/5eec4c7e986902ef583042fd82861a85.webp",981,1387,{"page_no":33,"url":112,"width":113,"height":114},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/22dfb165aa518e65cbaf176eabf095ff.webp",980,1385,{"code":4,"msg":82,"data":116},[117,121,125,129,133,136,140,145,150,153,157],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":118,"show_sort_weight":119,"slug":120},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":122,"show_sort_weight":123,"slug":124},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":126,"show_sort_weight":127,"slug":128},"Exam",70,"exam",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":130,"show_sort_weight":131,"slug":132},"Comic",60,"comic",{"id":86,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":134,"slug":135},50,"technology",{"id":92,"doc_module":4,"doc_module_name":25,"category_name":137,"show_sort_weight":138,"slug":139},"Healthcare",40,"healthcare",{"id":141,"doc_module":4,"doc_module_name":25,"category_name":142,"show_sort_weight":143,"slug":144},8,"Research & Report",30,"research-report",{"id":146,"doc_module":4,"doc_module_name":25,"category_name":147,"show_sort_weight":148,"slug":149},9,"Religion & Spirituality",20,"religion-spirituality",{"id":148,"doc_module":4,"doc_module_name":25,"category_name":151,"show_sort_weight":148,"slug":152},"World Cup","world-cup",{"id":154,"doc_module":4,"doc_module_name":25,"category_name":155,"show_sort_weight":154,"slug":156},10,"Lifestyle","lifestyle",{"id":158,"doc_module":4,"doc_module_name":25,"category_name":159,"show_sort_weight":55,"slug":160},19,"General","general",{"list":162,"token":11},[163,170,176,182,189,195,201,207,213,219],{"doc_id":164,"doc_title":165,"file_type":90,"home_preview_img_url":166,"slug":167,"view_count":168,"category_name":29,"create_tm":169},562374,"ACS712 - datasheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947808383/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=BbUFLCiTWm32q2%2F3Ksal%2BfX84Mc%3D","acs712-datasheet",11,1791808469,{"doc_id":171,"doc_title":172,"file_type":90,"home_preview_img_url":173,"slug":174,"view_count":86,"category_name":29,"create_tm":175},719871,"LM35 Temperature Sensor - TS2151 - Product Details - Features and Applications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024373915/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=qMzD2Qs%2Bw%2BlUlNqARLKXlG5l%2ByM%3D","lm35-temperature-sensor-ts2151-product-details-features-and-applications",1795032668,{"doc_id":177,"doc_title":178,"file_type":90,"home_preview_img_url":179,"slug":180,"view_count":141,"category_name":29,"create_tm":181},720632,"MAX7218 8x8 Dot Matrix Display Module - User Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024401663/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=nzDZWlIj0PuGZTxgg%2BlcnfIfKfE%3D","max7218-8x8-dot-matrix-display-module-user-guide",1795038537,{"doc_id":183,"doc_title":184,"file_type":90,"home_preview_img_url":185,"slug":186,"view_count":187,"category_name":29,"create_tm":188},43021,"Hacking Electronics Learning Electronics with Arduino and Raspberry Pi","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229796207513/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=ocEutYxCxPvGmAtlDjvyFH05KwQ%3D","hacking-electronics-learning-electronics-with-arduino-and-raspberry-pi",28,1783376076,{"doc_id":190,"doc_title":191,"file_type":90,"home_preview_img_url":192,"slug":193,"view_count":86,"category_name":29,"create_tm":194},720459,"AZ-Delivery DHT22 Temperature module - Setup and use guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024396557/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=Ah5KmijkC4y%2Bitdcp5VDtfp3Bg4%3D","az-delivery-dht22-temperature-module-setup-and-use-guide",1795037445,{"doc_id":196,"doc_title":197,"file_type":90,"home_preview_img_url":198,"slug":199,"view_count":168,"category_name":29,"create_tm":200},560255,"55100 Miniature Flange Mounting Proximity Sensor - Hall Effect Sensors - Specifications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947612564/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=3BsOI%2Fv%2BXeT%2FxzESscb8C8iNFJA%3D","55100-miniature-flange-mounting-proximity-sensor-hall-effect-sensors-specifications",1791802546,{"doc_id":202,"doc_title":203,"file_type":90,"home_preview_img_url":204,"slug":205,"view_count":92,"category_name":29,"create_tm":206},691520,"Adafruit MLX90640 IR Thermal Camera - Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002048763/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=a5tizSCJl6A%2FaAqy%2FyUe8D5n0Oc%3D","adafruit-mlx90640-ir-thermal-camera-guide",1794174824,{"doc_id":208,"doc_title":209,"file_type":90,"home_preview_img_url":210,"slug":211,"view_count":55,"category_name":29,"create_tm":212},721117,"Adafruit MAX98357 I2S Class-D Mono Amp","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024420271/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=fp1LrV%2Buq2ZkxG%2BWZSCbUhXRFzQ%3D","adafruit-max98357-i2s-class-d-mono-amp",1795041909,{"doc_id":214,"doc_title":215,"file_type":90,"home_preview_img_url":216,"slug":217,"view_count":141,"category_name":29,"create_tm":218},560529,"DRV5053 Analog-Bipolar Hall Effect Sensor - Features & Applications Data Sheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229947621427/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=vhEq%2BwttNUFi0rnR4FcDxu7CVUw%3D","drv5053-analog-bipolar-hall-effect-sensor-features-applications-data-sheet",1791803448,{"doc_id":220,"doc_title":221,"file_type":90,"home_preview_img_url":222,"slug":223,"view_count":92,"category_name":29,"create_tm":224},691511,"Adafruit MLX90640 IR Thermal Camera","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002678685/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111399&Signature=9u1%2FE%2FavHT86Ab0DJ2%2BxKNxfymg%3D","adafruit-mlx90640-ir-thermal-camera",1794174814]