Help with a sensor
Hi, Guys,
I'm new to electronics, and I have two questions, if someone would be kind enougth to help someone new![:) :)](https://forums.parallax.com/resources/emoji/smile.png)
1. How do most sensors interact with the outside world? Is it like a transistor? Where the emiter allows voltage through depending on the base. In this case the sensor controls the base?
2. I really want to integrate these type of sensors:
http://www.nve.com/Downloads/analog_catalog.pdf (The AA Series)
I was hoping someone could give me some information how they would wrire them up, and how they think they would work.
Thank you for your help,
Please try and explain in simple terms.
I'm new to electronics, and I have two questions, if someone would be kind enougth to help someone new
![:) :)](https://forums.parallax.com/resources/emoji/smile.png)
1. How do most sensors interact with the outside world? Is it like a transistor? Where the emiter allows voltage through depending on the base. In this case the sensor controls the base?
2. I really want to integrate these type of sensors:
http://www.nve.com/Downloads/analog_catalog.pdf (The AA Series)
I was hoping someone could give me some information how they would wrire them up, and how they think they would work.
Thank you for your help,
Please try and explain in simple terms.
Comments
John Abshier
Which pins are for power, and which pins are for output do you know?
Cheers,
Cam.
Page 3 (marked 14) of the datasheet you linked to has a pin diagram.
Thank you for the information. I notice that it says input between 1 and 24 volts. Is that not a crazy amount of voltage for a small chip? I've always seen things that need 3.3 or 5 volts. Also, is it asking for DC or AC voltage?
Cheers,
Cam.
This device is "ratiometric", meaning the output changes proportionally with the power supply. In other words, for any given magnetic field, if you double the power supply, you double the output. Notice also that the output voltage is pretty small. The maximum sensitivity, according to the datasheet, is 4.2 mV/V-Oe, and the maximum magnetic field is 15 Oersteds (equal to 15 gauss in air. To give some idea of how much that is, the earth's magnetic field is roughly 0.4 gauss). So if your chip has the maximum sensitivity and you put it in the maximum field, you will see 63 millivolts of output per volt of power supply. So if the supply voltage is one volt, in the conditions I described the output will be 63 mV. If you double the supply to 2 volts, the output also doubles to 126 mV. If you use the maximum supply voltage of 24 volts, the output rises to about 1.5 volts. So even with the supply as high as you can go, and the magnetic field as high as this device can measure, you still only get about 1.5 volts out so you're still in the range of typical A/D converters. You will probably be using this with the same voltage as whatever other devices are in your circuit (5V for example) so the output will be much less and you'll want some sort of amplifier to scale the output up so you can measure it with an A/D converter. Note also that the 15 Oersteds (gauss) is the saturation level, which means at or above that field you get the same output even if you increase the magnetic field. To the extent possible you should stay within the linear range the datasheet gives which is 1.5 - 10.5 Oe. In that range, doubling the field doubles the output. Outside that range (e.g. less than 1.5 Oe), the relationship between output and field isn't strictly proportional and if you want if to be accurate you'll have to calibrate it against a known field, which can be done but is a pain in the neck.
Notice also that the chip is directional, with the max sensitivity parallel to the long axis of the chip. If the field is parallel to that you'll see maximum output. If you rotate the chip to be perpendicular to the field, the output will be zero. In between the output will scale as the cosine of the angle between the chip and the field.
Bob
I'm guessing here, but it looks like the chip doesn't have a digital component so it can handle the higher voltage. It's just a Wheatstone bridge where a couple of the segments of the bridge are affected by the magnetic field. My guess is it's asking for DC voltage.
You might want to tell us your ultimate goal. Someone around here may know of a better sensor for your application.
Kwinn, thank you for the info. I have two questions:
1. Why would AC make it more accurate, and how would you go about creating an AC single to this chip? I was thinking of using a transistor and placing the voltage on and off on the base very quickly would this do the trick?
Cheers,
Cam.
Using AC gives better results because it tends to cancel out any offset voltages that affect accuracy. Think of it as being similar to differential signalling (one wire positive, the other negative and vice-versa) versus ground referenced signalling. Any noise affects both differential signals equally but since you are looking at the difference between them the noise cancels out. Of course nothing is free, so you pay for using AC with a more complex circuit.
Using a transistor as you described would not work. You need an opamp and an adc to make any use of this device. The opamp would amplify the signal to a level the adc could use, and the resulting measurement could be displayed or used by a micro.
Thank you so much for this information
BTW: I'm a full-time software developer.
Thank you for your help.
Cam
Magnetic fields have direction. If you google "magnetic field" you'll see the classic diagrams showing the lines of flux that run between the north and south poles. Those flux lines show the orientation of the field at that location and if you want maximum sensitivity the long axis of the chip should be parallel to the flux lines. Depending on what is creating the field sometimes it's obvious what orientation would provide maximum sensitivity and sometimes it's not, and if the sensor is moved over a magnet the field direction will change depending on the relative positions.
What is it that you're trying to do?
Yes, I think between those books and asking for help on the forum you can get this sensor to work. The input and output signals for this sensor are very similar to what is used in load cells for measuring force/weight so there are schematics, chips, and articles on the web that could be used as a starting point.
Have a great day,
Cam.