Description
Hall magnetic sensor module
The KY-003 is a magnetic switch. If no magnetic field is present, the signal line of the sensor is HIGH (3.5 V). If a magnetic field is presented to the sensor, the signal line goes LOW, at the same time the LED on the sensor lights up. The polarity of the magnetic field is of influence to the switching action. The front side of the sensor needs the opposite polarity as the back of the sensor to switch on.
In the example program the led on the Arduino (pin 13) will be turned on when a magnetic field is present.
Connecting to the Arduino
- Pin – = GND, connect to GND of the Arduino
- Pin (middle pin) +5 v, connect to Arduino +5
- Pin S signal, connect to Arduino pin 10
- Power consumption, 3 mA in rest, 8 mA when switched on
Example code
/* KY-003 Hall magnetic switch */ int Led = 13 ; // define LED Interface int SENSOR = 10 ; // define the Hall magnetic sensor interface int val ; // define numeric variables val void setup () { pinMode (Led, OUTPUT) ; // define LED as output interface pinMode (SENSOR, INPUT) ; // define the Hall magnetic sensor line as input } void loop () { val = digitalRead (SENSOR) ; // read sensor line if (val == LOW) // when the Hall sensor detects a magnetic field, Arduino LED lights up { digitalWrite (Led, HIGH); } { digitalWrite (Led, LOW); } }
Additional information
Weight | 0.02 kg |
---|
You must be logged in to post a review.
Delta Kossel 3d printer Circular Heated Bed
STEM Toys Circuit Lab Electronics Exploration Kit 100 in 1 STEAM Projects
Smd Chip Ceramic Capacitor size 0603 1.6PF
Refund Policy for UGE Electronics “Https://uge-one.com “
1. Returns and Refunds
Thank you for shopping at UGE Electronics “Https://uge-one.com “. If you are not entirely satisfied with your purchase, we’re here to help.
2. Eligibility for Refund
To be eligible for a refund, please make sure that:
– The item was purchased in the last 14 days.
– The item is in the original packaging.
– The item isn’t used or damaged.
3. How to Initiate a Refund
To initiate a refund, please contact our customer support at [[email protected]] or [01066552125]. Provide your order number and details about the product you would like to return.
4. Refund Processing Time
Once we receive your item, we will inspect it and notify you that we have received your returned item. We will immediately notify you on the status of your refund after inspecting the item.
If your return is approved, we will initiate a refund to your credit card (or original method of payment). You will receive the credit within a certain amount of days, depending on your card issuer’s policies.
5. Shipping Costs
Shipping costs are non-refundable. If you receive a refund, the cost of return shipping will be deducted from your refund.
6. Exchanges
If you wish to exchange an item, please contact our customer support. You will be responsible for the return shipping costs, and we will cover the shipping costs of the replacement item.
7. Damaged or Defective Items
If you received a damaged or defective product, please contact us immediately for assistance. We will work with you to resolve the issue promptly.
8. Contact Information
If you have any questions about our Refund Policy, please contact us at [[email protected]].
Important Note: This Return & Refund Policy is applied only for Orders invoiced VIA UGE Electronics, and regarding any Orders has been invoiced VIA any Other Vendor you can check the Return & Refund Policy of this Vendor VIA the Vendor Stroe Page, and it’s not our responsibility for any issue between you and the Vendor.
Reviews
There are no reviews yet.