-
NPI: A How To Guide for Engineers & Their Leaders
-
Leading from the Front
-
Marcel Tremblay: The Olympic Mindset & Engineering Leadershippopular
-
Anurag Gupta: Framework to Accelerate NPI
-
Kyle Wiens on Why Design Repairability is Good for Business
-
Nathan Ackerman on NPI: Do The Hard Thing First
-
JDM Operational Excellence in NPI
-
Building the Team
-
Quality is Set in Development & Maintained in Production
-
3 Lessons from Tesla’s Former NPI Leader
-
Maik Duwensee: The Future of Hardware Integrity & Reliability
-
Reject Fake NPI Schedules to Ship on Time
-
Leadership Guidance for Failure to Meet Exit Criteria
-
-
Screws & Glue: Getting Stuff Done
-
Choosing the best CAD software for product design
-
Screws vs Glues in Design, Assembly, & Repair
-
Best Practices for Glue in Electronics
-
A Practical Guide to Magnets
-
Inspection 101: Measurements
-
OK2Fly Checklists
-
Developing Your Reliability Test Suite
-
Guide to DOEs (Design of Experiments)
-
Ten Chinese phrases for your next build
-
-
NPI Processes & Workflows
-
-
Production: A Primer for Operations, Quality, & Their Leaders
-
Leading for Scale
-
Proven Strategies for Collaborating with Contract Manufacturers
-
Greg Reichow’s Manufacturing Process Performance Quadrants
-
8D Problem Solving: Sam Bowen Describes the Power of Stopping
-
Cut Costs by Getting Your Engineers in the Field
-
Garrett Bastable on Building Your Own Factory
-
Oracle Supply Chain Leader Mitigates Risk with Better Relationships
-
Brendan Green on Working with Manufacturers
-
Surviving Disaster: A Lesson in Quality from Marcy Alstott
-
-
Ship It!
-
Production Processes & Workflows
-
Failure Analysis Methods for Product Design Engineers: Tools and Techniques
-
-
Thinking Ahead: How to Evaluate New Technologies
-
How to Buy Software (for Hardware Leaders who Usually Don’t)
-
Adopting AI in the Aerospace and Defense Electronics Space
-
Build vs Buy: A Guide to Implementing Smart Manufacturing Technology
-
Leonel Leal on How Engineers Should Frame a Business Case for Innovation
-
Saw through the Buzzwords
-
Managed Cloud vs Self-Hosted Cloud vs On-Premises for Manufacturing Data
-
AOI, Smart AOI, & Beyond: Keyence vs Cognex vs Instrumentalpopular
-
Visual Inspection AI: AWS Lookout, Landing AI, & Instrumental
-
Manual Inspection vs. AI Inspection with Instrumentalpopular
-
Electronics Assembly Automation Tipping Points
-
CTO of ASUS: Systems Integrators for Manufacturing Automation Don't Scale
-
-
ROI-Driven Business Cases & Realized Value
-
-
Webinars and Live Event Recordings
-
Build Better 2024 Sessions On Demand
-
Superpowers for Engineers: Leveraging AI to Accelerate NPI | Build Better 2024
-
The Motorola Way, the Apple Way, and the Next Way | Build Better 2024
-
The Future of Functional Test: Fast, Scalable, Simple | Build Better 2024
-
Build Better 2024 Keynote | The Next Way
-
Principles for a Modern Manufacturing Technology Stack for Defense | Build Better 2024
-
What's Next for America's Critical Supply Chains | Build Better 2024
-
Innovating in Refurbishment, Repair, and Remanufacturing | Build Better 2024
-
Leading from the Front: The Missing Chapter for Hardware Executives | Build Better 2024
-
The Next Way for Reducing NPI Cycles | Build Better 2024
-
The State of Hardware 2025: 1,000 Engineers on Trends, Challenges, and Toolsets | Build Better 2024
-
Scaling Manufacturing: How Zero-to-One Lessons Unlock New Opportunities in Existing Operations | Build Better 2024
-
-
Design for Instrumental - Simple Design Ideas for Engineers to Get the Most from AI in NPI
-
Webinar | Shining Light on the Shadow Factory
-
How to Prepare for Tariffs in 2025: Leaders Share Lessons and Strategies
-
Tactics in Failure Analysis : A fireside chat with Dr. Steven Murray
-
Chris Li is a former Product Design Manager at Amazon, where he led Product Design on Kindle Products.
This guide will explore how magnets are used in electronic products and accessories today and how you can incorporate them into your designs. Almost every electronic device today relies on electromagnetism in common modules like speakers, vibration motors, and rotary or linear actuators. Some of the most delightful interactions with magnets are with custom accessories like cases and chargers -- we'll explore both.
Most consumer electronics devices use neodymium magnets. These magnets allow engineers to achieve a high attractive force while using less space in an enclosure.
How magnets are made
Neodymium magnets are made of an alloy of the rare-earth metal neodymium along with iron, and boron. The alloy is usually crushed into a fine powder and then compressed into a block. At the same time, the block is exposed to a magnetic field to align the small particles in the desired magnetic orientation. This block is then sintered at high temperatures. Once the block cools and shrinks to its final size, the material can be sliced into smaller pieces. Some post-processing is typically required to grind the magnets to their final size and shape which is what dictates their dimensional tolerances of about +/- 0.1mm.While there are many off-the-shelf magnet sizes in round or rectangular shapes, the designs can be customized to a certain extent. You can tweak the shape of the initial block and the thickness of each slice. Because this material tends to be brittle and subject to corrosion, neodymium magnets should not be cut much thinner than 0.4mm and are usually plated in nickel.
The iPhone 12 uses a set of custom magnets in its new MagSafe wireless charger. Eighteen arc-shaped magnets are glued to the back glass. They are the same thickness as the inner stamped sheet metal frame.
Neodymium Magnet Grades
Neodymium magnets can range from grades N28 to N52, with the highest being N52. The number in these grades refers to the maximum energy density of the magnet. However, just because a magnet has a higher strength doesn’t mean it will be the right choice for every application. The composition of the magnet varies slightly with each grade, and N52 magnets are much more expensive for only an incremental gain in strength. The most used neodymium magnets are typically N42, though you may want to use even lower-grade magnets if you are worried about creating too strong of a magnetic field.
Design considerations for magnets in electronics
Knowing how magnets are made allows you to consider some of their limitations and the opportunities to customize them to best incorporate them into your design.
Single vs multiple magnets
A single magnet is useful with limited space and low force requirements. Multiple matched magnets on the device and the accessory add force to the assembly and drive a positive location effect where the device and accessory try to align and snap into place. This positive alignment is useful for aligning charging pins on a charger or perfectly lining up a device and its cover. You can also use this property to your advantage to prevent the charger from being assembled in the incorrect orientation. Using magnets of the same polarity can cause the accessory to misalign intentionally. If you can’t use multiple magnets, you may want to introduce physical locating features like an embossed or recessed region to guide the two sides together.
Exposed or embedded
There are a few ways to design magnets in an assembly. You can expose the magnets on the surface or hide them underneath an external housing.
Surface-to-surface magnets will exert the most force between the device and accessory, but they also run the risk of popping loose over time or breaking. Because they are on the outside surface of a product, surface magnets need to be pressed or glued into place. These magnets will then be under load every time a magnet or ferrous surface comes near, which can wear over time. Because these magnets are brittle, you should be careful to assemble them so they are flush or sub-flush to reduce the incidence of the magnet surfaces slamming into one another.
You can assemble magnets behind a housing to protect them from crashing into one another. This protects the magnet from surface impacts and the magnet will pull itself into the adhesive or glue used to attach it to the housing. At the same time, the magnetic force decreases at the inverse square of the distance between two magnets, meaning the force will be reduced. Many products are designed with a very thin material over the surface of the magnets to ensure the magnets are protected, but still provide a good amount of force.
Using steel
While there is no such thing as shielding magnets, materials with a higher magnetic permeability will redirect the magnetic flux. This can be useful in thin devices where a cover might fold over 180 degrees.
Kindles use Hall effect sensors in the device to detect a magnet in the cover. The device wakes up when the magnet is removed because the cover is opened. In some thinner devices, sometimes the cover would flip 180 degrees around and the magnet in the cover would end up in about the same location and turn off the device. To counter this, a small piece of steel was added behind the magnet to redirect the magnetic field away from the device. Steel can also be used in situations where there is a physical locating feature. For example, the original MagSafe designs on Apple laptops used magnets in the laptop with a large steel housing on the charging connector. The magnets in the device would attract the steel on the connector into the designed recess, making for a positive locating feature.
Architectural decisions
If you plan on having a magnetic accessory or experience in your product, you must consider a few things as you architect your new product.
Getting the right force
While we think of magnetic force as something obvious, it can be difficult to design well. The magnetic force needs to be strong enough to hold the accessory or attachment in place reliably and during use but not so strong that separating the components is difficult. For example, the 11” and 12.9” iPad Pros have more than 90 magnets to attach to accessories like the magic keyboard and Apple pencil seamlessly. You can see all the little black squares and rectangles in the x-ray and green magnetic viewing film images below.
In addition, the best placement for magnets is not always in an ideal location for the other components in your device. The product's architecture needs to be designed with magnets early on. Otherwise, key components like the battery or circuit boards might lie directly on or above where you want the magnets placed.
You need to know what force is required to maintain the connection between the device and the accessory. Not only do you need to be able to support the weight of the accessory, but you will likely need to support the weight of the device. You want to maintain the charging connection for a magnetic charger even if the user holds the assembly by the cable only. If you have spring contacts, you must ensure the magnetic force can also overcome the maximum force exerted by those springs.
Of course, you don’t want it to be so strong that you cannot separate them easily. Provide an easy way for the user to introduce a shear or separation force to reduce the strength of the magnetic field.
Product family considerations
In the example of the iPad Pro, there are two sizes, the 11” and 12.9” devices. The 12.9” device will be much heavier than the 11” and require more magnets. To guarantee that both devices can work with the magic keyboard or other accessories, Apple designers needed to ensure that their magnet configuration would support the weight of the larger device. At the same time, they also needed to ensure there was enough space in the smaller device to fit all the magnets it would require.
When I worked on the Kindle Voyage, we wanted a magnetic cover family for all the tablets and e-readers. However, because the battery requirements for an e-reader are much less than similar-sized tablets, we had plenty of space for magnets in our device, but the tablets did not. We worked with our accessories team to create a slim and exciting cover, but the same design was not feasible for the tablets. Ultimately, we moved to a more traditional cover with a magnetic assist.
Magnetic accessory interactions
You must also consider how the magnetic attachment will work and how the user might attach or detach the accessory. For charging cables like on Fitbit’s smartwatches, the charger attaches magnetically. Because the charging pins are not reversible, the magnets need to be polarized a certain way to ensure the pins line up when in the correct orientation and cannot make contact when in the wrong orientation.
Other considerations include which orientation a cable should point once attached. If the device can still be used while charging, you may want the cable to point away from the user.
Also, since magnets are more easily separated by shear or slowly expanding the distance between, consider how the user will want to disconnect the accessory. Make it easy to break the magnetic connection, but only when they want to do so.
Magnetic interference
Magnets often have to be placed at or near the product's surface to get the right force to retain and attract an accessory. This means that the device can exert a strong magnetic field close to the magnets embedded in the device. Medical devices like pacemakers can be affected by strong magnetic fields. Often these medical devices, which regulate heartbeats by exerting small electrical impulses when necessary, are designed to be programmed and updated by magnets to avoid having to physically access them once implanted.
Many products with magnets carry warnings to ensure users don’t bring them close to the pacemaker. That said, it’s easy to imagine someone reading on a Kindle or their phone, falling asleep, and having those magnets fall directly onto their chest, potentially affecting the pacemaker!
When the iPad 2 was released with the magnetic smart cover, it had an ingenious spring-loaded mechanism that pulled the magnets away from the edge of the product until a strong enough magnet from the cover came close. Then the magnets would move closer to the edge and attach to the cover. More recent devices, though, have just moved the magnets to the surface and incorporated warnings in the user guides.
Magnets from devices are also blamed for scrambling magstripes on things like hotel keycards or credit cards. Often hotel staff will warn you against putting keycards against your phone or other credit cards for this reason. However, it is unclear whether your devices are causing the demagnetization or if it is simply a cheap, worn-out magstripe on the keycard itself.
The impact of magnets in the electronics manufacturing process
Once you have decided on incorporating magnets into your product and where the optimal placement will be, you still need to assemble them into your device. Magnets can be tricky to work with on production lines because they are attracted to every ferrous object in the assembly and on the line. Magnets can also jump and move, which can cause them to crack or break due to their brittle nature.
Magnets are usually glued in place to prevent them from attracting one another. Work with your manufacturing teams to optimize your designs and create jigs and fixtures to help with assembly. Incorporate locating features in your product to help guide the magnet placement where possible. You can make shallow recesses in the enclosures to get the magnets closer to the surface and serve as locating features.
You can design jigs with embedded magnets to ensure the polarity is correct before fixing them. Once assembled and the adhesive or glue is cured, you should check each device with a reference accessory to ensure the magnets are oriented correctly on every device. Some vendors will etch the magnet with an N or S into the plating to provide another visual cue for assembly. A vision inspection system can pick up these markings for another check before final assembly.
While magnets are not easy to incorporate into products, when done well, they create a fun and magical user experience.