A1302 Hall Effect Sensor (Hall Effect 49E)

A1302 Hall Effect Sensor (Hall Effect 49E)
A1302 Hall Effect Sensor (Hall Effect 49E)A1302 Hall Effect Sensor (Hall Effect 49E)A1302 Hall Effect Sensor (Hall Effect 49E)A1302 Hall Effect Sensor (Hall Effect 49E)A1302 Hall Effect Sensor (Hall Effect 49E)
รหัสสินค้า AS00194
หมวดหมู่ IC Sensor
ราคา 5.00 บาท
สถานะสินค้า พร้อมส่ง
จำนวน
ชิ้น
หยิบลงตะกร้า
หนังสือรับรองบริษัท
บุ๊คแบ๊งค์
คุ้มครองโดย LnwPay
A1302 Hall Effect Sensor (Hall Effect 49E)

Description

A Hall effect device produces a voltage when placed in a magnetic field. Here is some simple code to use an A1301 or A1302 Hall effect sensor, which give output proportional to field strength. (Other Hall effect sensors may be simpler and just switch on or off when the field exceeds a certain value).

If there is no magnetic field applied the sensor outputs approximately half of the supply voltage, typically 2.5V, assuming the supply is 5V. The output drops towards 0V or rises towards 5V, according to magnetic polarity, at a rate of 2.5mv / Gauss for the A1301, or 1.3mV / Gauss for the A1302.

These devices come in LH and UA packages; beware that the pinouts depend on the package (see sample code for details). No other components are needed for the example.

The device has a specific orientation; the magnet should be on the logo side of the device. (It works quite well on the other side too but the logo side is probably more accurate).

Note that these sensors are relatively inaccurate (their sensitivity to magnetic field can vary within 20% or so), so there is probably not much point in using a precise 5V voltage reference.

On the other hand, you probably do expect a reading of zero when no magnet is near the device. So, before trying to measure any fields, you need to find the voltage output by the device when no magnet is near it, as this voltage varies slightly from device to device. This can be done by uncommenting the lines in the code which print the raw reading. For the particular sensor I used, this raw value was 505.

The strength of the field around a magnet depends on the distance in a complicated way according to the type of magnet - see http://en.wikipedia.org/wiki/Magnet to get started. :)






Example (ไม่เกี่ยวข้องกับ clip ด้านบน)

/*
* FILE: MM01
* AUTHOR: Rob van den Tillaart; modified Ralph Martin
* DATE: 2012 06 10
* ORIGINAL URL: http://playground.arduino.cc/Code/HallEffect
*
* PURPOSE: use an A1301 or A1302 as magnetometer
*
* Pin Layout LH Package
* =====================
* 1 VCC 5V
* 2 signal connected to Analog 0
* 3 GND
*
* Pin Layout UA Package
* =====================
* 1 VCC 5V
* 2 GND
* 3 signal connected to Analog 0
*
*/

#define NOFIELD 505L // Analog output with no applied field, calibrate this

// Uncomment one of the lines below according to device in use A1301 or A1302
// This is used to convert the analog voltage reading to milliGauss
#define TOMILLIGAUSS 1953L // For A1301: 2.5mV = 1Gauss, and 1024 analog steps = 5V, so 1 step = 1953mG
// #define TOMILLIGAUSS 3756L // For A1302: 1.3mV = 1Gauss, and 1024 analog steps = 5V, so 1 step = 3756mG

void setup()
{
Serial.begin(9600);
}

void DoMeasurement()
{
// measure magnetic field
int raw = analogRead(0); // Range : 0..1024

// Uncomment this to get a raw reading for calibration of no-field point
// Serial.print("Raw reading: ");
// Serial.println(raw);

long compensated = raw - NOFIELD; // adjust relative to no applied field
long gauss = compensated * TOMILLIGAUSS / 1000; // adjust scale to Gauss

Serial.print(gauss);
Serial.print(" Gauss ");

if (gauss > 0) Serial.println("(South pole)");
else if(gauss < 0) Serial.println("(North pole)");
else Serial.println();
}

void loop()
{
delay(1000);
DoMeasurement();
}

วิธีการชำระเงิน

ชำระเงินค่าสินค้าโดยการโอนเงินเข้าบัญชีธนาคาร KBANK, SCB, BBL,TMB

กรุณาเก็บหลักฐานการโอนเงินของท่านไว้เพื่อแจ้งการชำระเงินด้วยค่ะ

 

ท่านสามารถแจ้งการชำระเงินผ่านระบบอัตโนมัติได้โดย Click Link ข้างล่างค่ะ

https://www.arduitronics.com/informpayment

 

บมจ. ธนาคารกสิกรไทย สาขาเซ็นทรัล แจ้งวัฒนะ ออมทรัพย์
ธนาคารไทยพาณิชย์ จำกัด (มหาชน) สาขาเซ็นทรัล แจ้งวัฒนะ ออมทรัพย์
ธนาคารกรุงเทพ จำกัด (มหาชน) สาขาเซนทรัล พระราม 3 สะสมทรัพย์
ธนาคารทหารไทยธนชาต จำกัด (มหาชน) สาขาเซนทรัล พระราม 3 กระแสรายวัน

เพิ่มเพื่อน

@rfm0967y

ติดต่อสอบถาม

เพิ่มเพื่อน

CATEGORY

Sensors / Modules [1702]

CONTACT US

มือถือ 0887823467 แฟกซ์ 02-0153201

Join เป็นสมาชิกร้านค้า

ร้านArduitronics
ร้านArduitronics
/www.arduitronics.com/
Join เป็นสมาชิกร้าน
2129
สมัครสมาชิกร้านนี้ เพื่อรับสิทธิพิเศษ

STATISTICS

หน้าที่เข้าชม15,393,408 ครั้ง
ผู้ชมทั้งหมด5,896,486 ครั้ง
เปิดร้าน21 พ.ค. 2556
ร้านค้าอัพเดท16 ก.ย. 2568

MEMBER

พูดคุย-สอบถาม