Building a Magnetometer
The parts needed to build this magnetometer include two linear Hall-effect chips (Allegro 3515, 3516, 3517, 3518, 1321, 1322, or 1323 will all work), a 7805 voltage regulator, an LED, a 1000 W resisitor, a junction box, a single-pole light switch, a telephone jack, a faceplate to hold the switch and jack to the junction box, four-conductor telephone wire, a 9V battery holder and connector, heat shrink tubing, and a cable with alligator clips on each end. Finally, you'll need a voltmeter to read the output from the sensor.
The Hall-effect chips have three legs; when looking at the printed side of the package, the left leg is the power source (5 V), the middle leg is the ground connection, and the right leg is the signal. With no magnetic field present, the signal will be at a 2.5 V potential relative to ground (or the 5 V power leg). Actually, the signal will be 1/2 of whatever voltage you use to power the chip, but it's 5 V for this. The presence of a north or south pole will change the voltage from a low of 0 V to a high of 5 V. In an effort to make a more sensitive meter, we will combine two of these chips back-to-back. The middle legs will be connected to each other and ground, and the left leg of each will be connected to 5 V. We can measure the voltage between the two right legs, and this will give us twice the sensitivity. (Varying sensitivities of chip are available, but a 1 Gauss field will generally produce a change of at least 2.5 mV. When the two chips are back-to-back, one chip's signal will go up by 2.5 mV while the other one drops by 2.5 mV, for a net voltage difference of 5 mV).
The two chips are super-glued together and then heat-shrink tubing is applied to the middle legs to keep them insulated from the other legs. While all the chips should ideally put out the same voltage (1/2 the supply voltage) in the absence of a magnetic field, in reality there are small differences between them. The chips can be individually examined and chosen so that they are paired with another chip which has a similar output voltage. Several chips are being tested in the photos below.
Once the two chips have been chosen and glued together, you can start drilling holes in the faceplate of the junction box. As you can see in the picture below, you'll need to drill 6 holes. (The sixth hole can't be seen in this view, but it should be just on the opposite side of the light switch. It needs to be large enough to hold an LED, and it's a good idea to keep it close enough to the switch to still fit inside the junction box.) The leftmost and rightmost holes provide a way to attach the assembly to the junction box. The lowest hole is for the alligator cables to pass through to the outside, and the two holes in the middle of the faceplate are to anchor the battery holder and 7805 chip (#4 machine screws work well for this).
Cut the alligator cable in half and strip the wire from the ends, feeding them through the hole from the outside. At this point, you can add heat shrink tubing to them, mainly for mechanical support. They can then be connected to the screw terminals of the phone jack. The alligator clips will be connected to the voltmeter leads when you're finished.
You can now cut the modular phone cord in half and strip the ends of the four wires inside it (not easy!). Once you have them, you should plug the cord into the jack and do a continuity test to see what color wire is connected to what color terminal (it probably won't be as simple as red wire = red terminal).
It's a good idea to put some heat-shrink tubing on each individual wire, as well as a larger piece on the entire wire. The pieces on the individual wires below ended up being too small and were later replaced.
You're just about ready to connect the dual-chip assembly to the phone wire. Before you do, make sure the legs of the two chips are well insulated from each other! This is the most likely place for a serious problem to develop. Although it isn't shown on this model, it might be a good idea to apply heat shrink to the signal legs as well. (This is easier than trying to apply it to the power legs, as they're on opposites sides of the chips and don't really need any more mechanical stress.) It takes some careful bending to get the two power legs together without contacting either signal leg.
When they're all securely soldered and covered with heat-shrink, put a large piece on the whole thing. (This is mainly for mechanical support since the individual phone wires are very small). To review, the four wires are connected to the 6 legs of the chip assembly as follows: one wire to the two ground legs, one wire to the two power legs, and one wire (each) to each signal leg. The phone terminals provide an easy way for us to make the power, ground, and signal connections from the sensor wire to the outside world.
Back to the faceplate. You can run the red wire from the battery clip to one of the light switch terminals, and then a wire from there to the left leg of the 7805 chip (left as seen looking at the numbers). Solder this in place and use more heat-shrink. The black wire from the battery clip can go directly to the middle leg of the 7805, but you should add another wire so that you'll have an available ground connection. Solder & heat-shrink again.
Finally, connect a single wire to the right leg of the 7805. This is your 5 volt supply line. Connect this wire and the ground wire to two of the telephone terminals. (This is why it's so important to know which terminal goes to which color of wire. If this is screwed up, it's not impossible to fix; you just have to remove the wires that were already attached to the phone terminals and move them around until you get the connections correct.) Also, you should add one more wire to each of the two terminals above (power and ground). These two wires will power your LED. This means that two of the phone terminals should have their original connections plus connections to the alligator clips, and the remaining two terminals should have their original wires plus two extra wires each (+5V in and +5V out for one, ground in and ground out for the other).
Now connect the +5 V "extra" wire from one of the phone terminals to the long leg of the LED. Connect the other leg of the LED to a 1000 W resistor and connect the other end of the resistor to your "extra" ground wire. You may want to use more heat-shrink here. (The resistor and LED are shown at the bottom of the picture below).
That's it! You should now be able to add the battery, plug in the phone cord/sensor, and screw the face plate to the junction box. As you can see below, the voltage output will change sign as the magnetic poles are switched.
Idea adapted from http://my.execpc.com/~rhoadley/magmeter.htm
AASU Chemistry Department Home Page
AASU
Physics Department Home Page
AASU
Home Page
All Pages Copyright 2005
