3D-printed "Smart Cap" Uses Electronics to Sense Spoiled Food
July 20, 2015 | UC BerkeleyEstimated reading time: 4 minutes
It might not be long before consumers can just hit “print” to create an electronic circuit or wireless sensor in the comfort of their homes. UC Berkeley engineers created a 'smart cap' using 3D-printed plastic with embedded electronics to wirelessly monitor the freshness of milk.
UC Berkeley engineers, in collaboration with colleagues at Taiwan’s National Chiao Tung University, are expanding the already impressive portfolio of 3D printing technology to include electrical components, such as resistors, inductors, capacitors and integrated wireless electrical sensing systems. They have put the new technology to the test by printing a wireless “smart cap” for a milk carton that detected signs of spoilage using embedded sensors.
Major advances over the past 10 years have enabled the creation of a wide array of 3D-printed products, including prosthetics, medical implants, toys, vehicle parts, building materials and even food. What had been missing from the repertoire until now was the ability to produce sensitive electronic components.
“Our paper describes the first demonstration of 3D printing for working basic electrical components, as well as a working wireless sensor,” said senior author Liwei Lin, a professor of mechanical engineering and co-director of the Berkeley Sensor and Actuator Center. “One day, people may simply download 3D-printing files from the Internet with customized shapes and colors and print out useful devices at home.”
Polymers are attractive materials in the world of 3D printing because their flexibility allows them to be formed into a variety of shapes. However, such materials are poor conductors of electricity, and thus bad candidates for electronic devices. To get around this, the researchers started off by building a system using polymers and wax. They would then remove the wax, leaving hollow tubes into which liquid metal – in their experiments they used silver – was injected and then cured.
The shape and design of the metal determined the function of different electrical components. For instance, thin wires acted as resistors, and flat plates were made into capacitors. But the question remained: Do the pieces of metal actually do anything useful?
UC Berkeley engineers created a range of 3D-printed electrical components, including an electrical resistor, inductor, capacitor and an integrated inductor-capacitor system (the penny is used for scale). The foreground shows the various shapes that can be created with the 3D printer, including a model of Sather Tower, the word 'Cal,' and the acronym 'BSAC' for Berkeley Sensor and Actuator Center.
UC Berkeley engineers created a range of 3D-printed electrical components, including an electrical resistor, inductor, capacitor and an integrated inductor-capacitor system (the penny is used for scale). The foreground shows the various shapes that can be created with the 3D printer, including a model of Sather Tower, the word ‘Cal,’ and the acronym ‘BSAC’ for Berkeley Sensor and Actuator Center. (Photo by Sung-Yueh Wu)
To answer that, the researchers integrated the electronic components into a plastic milk carton cap to monitor signs of spoilage. The “smart cap” was fitted with a capacitor and an inductor to form a resonant circuit. A quick flip of the carton allowed a bit of milk to get trapped in the cap’s capacitor gap, and the entire carton was then left unopened at room temperature (about 71.6 degrees Fahrenheit) for 36 hours.
The circuit could detect the changes in electrical signals that accompany increased levels of bacteria. The researchers periodically monitored the changes with a wireless radio-frequency probe at the start of the experiment and every 12 hours thereafter, up to 36 hours. The property of milk changes gradually as it degrades, leading to variations in its electrical characteristics. Those changes were detected wirelessly using the smart cap, which found that the peak vibration frequency of the room-temperature milk dropped by 4.3 percent after 36 hours. In comparison, a carton of milk kept in refrigeration at 39.2 degrees Fahrenheit saw a relatively minor 0.12 percent shift in frequency over the same time period.
“This 3D-printing technology could eventually make electronic circuits cheap enough to be added to packaging to provide food safety alerts for consumers,” said Lin. “You could imagine a scenario where you can use your cellphone to check the freshness of food while it’s still on the store shelves.”
As 3D printers become cheaper and better, the options for electronics will expand, said Lin, though he does not think people will be printing out their own smartphones or computers anytime soon.
“That would be very difficult because of the extremely small size of modern electronics,” he said. “It might also not be practical in terms of price since current integrated circuits are made by batch fabrication to keep costs low. Instead, I see 3D-printed microelectronic devices as very promising for systems that would benefit from customization.”
Lin said his lab is working on developing this technology for health applications, such as implantable devices with embedded transducers that can monitor blood pressure, muscle strain and drug concentrations.
The co-lead authors of the study are UC Berkeley research specialist Chen Yang and visiting Ph.D. student Sung-Yueh Wu, both working in Lin’s lab. Wu is also a student of study co-author Wensyang Hsu, a professor of mechanical engineering at National Chiao Tung University.
Testimonial
"In a year when every marketing dollar mattered, I chose to keep I-Connect007 in our 2025 plan. Their commitment to high-quality, insightful content aligns with Koh Young’s values and helps readers navigate a changing industry. "
Brent Fischthal - Koh YoungSuggested Items
Knocking Down the Bone Pile: Best Practices for Electronic Component Salvaging
09/17/2025 | Nash Bell -- Column: Knocking Down the Bone PileElectronic component salvaging is the practice of recovering high-value devices from PCBs taken from obsolete or superseded electronic products. These components can be reused in new assemblies, reducing dependence on newly purchased parts that may be costly or subject to long lead times.
ICAPE Group Unveils Exclusive Report on Sustainability in Electronics Manufacturing
09/15/2025 | ICAPE GroupICAPE Group, a global leader in printed circuit boards (PCBs) and custom electronics manufacturing, today announces the launch of its 2025 Industry Outlook & Innovation Report: Sustainability in Electronics Manufacturing. This exclusive report is accompanied by fresh insights from a dedicated Statista survey of 100 electronics manufacturing professionals, commissioned by ICAPE Group.
Advanced Packaging-to-Board-Level Integration: Needs and Challenges
09/15/2025 | Devan Iyer and Matt Kelly, Global Electronics AssociationHPC data center markets now demand components with the highest processing and communication rates (low latencies and high bandwidth, often both simultaneously) and highest capacities with extreme requirements for advanced packaging solutions at both the component level and system level. Insatiable demands have been projected for heterogeneous compute, memory, storage, and data communications. Interconnect has become one of the most important pillars of compute for these systems.
Smart Automation: Odd-form Assembly—Dedicated Insertion Equipment Matters
09/09/2025 | Josh Casper -- Column: Smart AutomationLarge, irregular, or mechanically unique parts, often referred to as odd-form components, have never truly disappeared from electronics manufacturing. While many in the industry have been pursuing miniaturization, faster placement speeds, and higher-density PCBs, certain market sectors are moving in the opposite direction.
Talking with Tamara: Floor Planning Policies
09/04/2025 | Andy Shaughnessy, Design007 MagazineTamara Jovanovic is an electrical engineer with Masimo, a medical equipment manufacturer. She’s been designing PCBs for seven years and earned a master’s degree in electrical engineering in 2022. I asked Tamara to share her thoughts on floor planning—the challenges, techniques, and advice for designers setting up floor planning strategies.