Measuring Magnetic Fields With A Robotic Arm

MagneticArm

Learning how magnets and magnetic fields work is one thing, but actually being able to measure and see a magnetic field is another thing entirely! [Stanley’s] latest project uses a magnetometer attached to a robotic arm with 3 degrees of freedom to measure magnetic fields.

Using servos and aluminium mounting hardware purchased from eBay, [Stanley] build a simple robot arm. He then hooked an HMC5883L magnetometer to the robotic arm. [Stanley] used an Atmega32u4 and the LUFA USB library to interface with this sensor since it has a high data rate. For those of you unfamiliar with LUFA, it is a Lightweight USB Framework for AVRs (formerly known as MyUSB). The results were plotted in MATLAB (Octave is free MATLAB alternative), a very powerful mathematical based scripting language. The plots almost perfectly match the field patterns learned in introductory classes on magnetism. Be sure to watching the robot arm take the measurements in the video after the break, it is very cool!

[Stanley] has graciously provided both the AVR code and the MATLAB script for his project at the end of his write-up. It would be very cool to see what other sensors could be used in this fashion! What other natural phenomena would be interesting to map in three dimensions?

Continue reading “Measuring Magnetic Fields With A Robotic Arm”

AVR Atmega Based PID Magnetic Levitator

[Davide] saw our recent post on magnetic levitation and quickly sent in his own project, which has a great explanation of how it works — he’s also included the code to try yourself!

His setup uses an Atmega8 micro-controller which controls a small 12V 50N coil using pulse-width-modulation (PWM). A hall effect sensor (Allegro A1302) mounted inside the coil detects the distance to the magnet and that data is used by a PID controller to automatically adjust the PWM of the coil to keep the magnet in place. The Atmega8 runs at 8Mhz and the hall effect sensor is polled every 1ms to provide an updated value for the PWM. He’s also thrown in an RGB LED that lights up when an object is being levitated!

So why is there a kid with a floating balloon? [Davide] actually built the setup for his friend [Paolo] to display at an art fair called InverART 2013!

After the break check out the circuit diagram and a short demonstration video of the device in action!

Oh yeah, those of you not impressed by magnetic levitation will probably appreciate acoustic levitation.

Continue reading “AVR Atmega Based PID Magnetic Levitator”

Levitating Wireless LED Ring

magnetic levitation

Here’s an impressive example of a completely home built magnetic levitation setup… with wireless power transmission to boot!

[Samer] built this from scratch and it features two main sub-systems, a electromagnet with feedback electronics and a wireless power transfer setup.

The ring of LEDs has a stack of neodymium magnets which are levitated in place by a varying magnetic field. This levitation is achieved by using a Hall effect sensor and a PID controller using a KA7500 SMPS controller.

The wireless power transmission uses a Class E DC/AC inverter that operates at 800KHz. Two coils of wire pass the current between the stand and the LEDs.

It’s very similar to a build we featured last year, but it’s a great hack, so we had to share it! Check out the video after the break.

Continue reading “Levitating Wireless LED Ring”

EM Brace For Sensing Magnetic Fields


We’ve discussed the notion of using machines to add or improve sensory input to the body before, and we’ve found another project with the same idea. [Nick Hasty] has developed an object he calls the EM Brace, which allows the user to sense electromagnetic fields with a wave of the hand.

The device works by connecting two antennas to an enclosure that contains a speaker. The enclosure is intended to be worn on the back with a harness securing it in place and wrapping the arms around the wearer’s body. The antennas are incorporated into a pair of gloves. When the antennas pick up electromagnetic radiation, the speaker emits a low frequency sound waves. They vibrate the enclosure and the arms, which in turn vibrate the body, signaling to the wearer that he or she is in an electromagnetic field, also referred to as hertzian space. A good deal of detail about the project can be found on his blog, or if you prefer, download his thesis paper in(PDF).

[via Make]