It is designed for 5mA current and has an input resistance of 67 ohms. You have far too much current flowing through the Hall sensor. I attached another document with limited info on the HHP-SU 696 Hall Sensor. I assume it would be easier to just develop my own filter and keep all the code in Arduino. I was considering using something like the Matlab function “iirnotch”. How would I determine the frequency to use a low pass notch filter (I assume this would be around 15 Hz?) So maybe it is electromagnetic field causing the background noise (I am in a mechatronics lab)? I thought magnetic field doesn’t have a frequency. The Hall sensor is reading magnetic field and returning an analog value. I am having difficulty understanding this. I was advised to use a notch filter to handle the background “noise” in the lab. I am not sure how I would do this with a digital hall sensor. My current approach is to sense a Gauss value that is in between the South pole and the North pole by using an analog sensor in addition to more conditional statements to determine if a change in position has occurred. I have been directed to use this sensor for my project due to small size, high sensitivity and large range requirements so unfortunately I cannot use a different one unless absolutely necessary.Įven better, if you are just trying to sense the bipolar magnetic strip going past, use a digital Hall switch such as US1881. PS - it sounds to me that you have a raw Hall sensor, and you will need a precision amplifier before you can use it with an Arduino. It is from the Arduino Mega 5 supply to analog pin A0. How have you connected the Hall sensor to the Arduino? Int breakCount = 1 // used to determine how many samples to calibrate over Int index = 0 // the index of the current reading Int readings // the readings from the analog input use this value to determine the size of the readings array. Using a constant rather than a normal variable lets the more the readings will be smoothed, but the slower the output will Define the number of samples to keep track of. If I forgot to add any necessary details please let me know. Question: How do I accurately scale down the analog to gauss conversion factor? See “analog_to_Gauss” for my conversion calculations. Because the Hall sensor’s extreme sensitivity (29.2 ) one jump in analog value is a far too large jump in Gauss because the poles on the magnetic strip I am working with are approx 150 to 200 Gauss and -150 to -200 Gauss.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |