element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Experimenting with Current Sense Amplifiers
  • Challenges & Projects
  • Design Challenges
  • Experimenting with Current Sense Amplifiers
  • More
  • Cancel
Experimenting with Current Sense Amplifiers
Challenge Blog Sensing Current for a Safer 3D Printer
  • Blog
  • Forum
  • Documents
  • Files
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: aspork42
  • Date Created: 19 Apr 2022 4:42 AM Date Created
  • Views 2366 views
  • Likes 7 likes
  • Comments 1 comment
  • 3d printer
  • Current 6 Click
  • MikroE Click Board
  • current sense amplifier
  • MAX40080
  • safety
Related
Recommended

Sensing Current for a Safer 3D Printer

aspork42
aspork42
19 Apr 2022

Sensing Current for a Safer 3D Printer

Today's consumer 3D printers have slowly become safer in terms of common problems like thermal runaway detection. They still use a relatively high-current heating element in the nozzle, bed, and possibly enclosed chamber. Thermal runaway protection is a software feature that is "free" meaning no additional hardware is required. It monitors the temperature of the device and ensures that it heats up when commanded and cools off only when current is removed. If the printer is commanding the nozzle to heat, but the nozzle is cooling, then the software can detect this mismatch and safely shut the printer down. This has likely saved many house from fires, but the risk is still present of broken or fatigued wires from causing problems before the software can kick in.

How can this be made better?

There would be a relatively simple way to detect problems much faster and react. This should be doable with a simple current sensor such as the MAX40080 which is the centerpiece of the Current6Click board included in this kit. The board boasts a high sample rate up to an advertised 1Msps.

Project Proposal

My proposal with this project is to develop a current sensor which can locate three potentially hazardous conditions:

  1. Shorted leads going to heating element
    1. This should be a simple over-current situation. Many printers don't have properly fused circuits specific to the heating elements; so a large amount of current could be pulled through the main circuit board leading to more damage. Current exceeding a certain threshold would trip a fault and disable the heater or open a relay/contactor to remove power from the heating element.
  2. Open circuits (aka wire fell out)
    1. This would also be a simple current detection circuit. When voltage is applied to the heating circuit, we expect to see a corresponding rise in consumed power via the current sense. If current is below threshold (or zero!) then there may be an open circuit present.
  3. Fatigued/broken wires or loose connection
    1. This is the most difficult to detect; both for someone performing a visual inspection; and also for a detection circuit. I will put this as more of a 'stretch' goal but in reality this is what I'd like to see working the most. 
    2. Printers use components that move and flex and require a decent amount of current to be pulled through wires going to these areas. If the individual strands of copper inside the wire flex too much, they will fatigue and start to break. Eventually a situation could exist where only a few remaining strands are carrying the full current and this causes a lot of excess heat that would be hard to detect in most scenarios since it is hidden inside the jacket. If enough break where continuity can be broken, then we have a situation we should be able to detect. 
    3. To detect this, we first consider the expected current consumption profile in a heater circuit - it should look like a basic square wave - rising up once to heat the nozzle; then dropping down cleanly once the heating cycle is complete. MOSFETs are most commonly used for this switching, so there should be a very clean rising/falling edge without jitter present (think contact bounce on a button). The pulse width of this cycle may be 5 seconds for a heated bed or as fast as 0.5 seconds for a nozzle with small thermal mass. If at any point during the active part of the heating cycle, the current consumption exhibits anything other than being even and steady, this could indicate fatigued wires. Again - think about contact bounce. There is very brief high-frequency noise on the trace.

imageThe scope trace shown here is a simulation of the expected output directly from a current sense amplifier when a wire breaks contact. The current starts off holding steady, but then a lot of high-frequency noise occurs as the current bounces between zero and full.

There is already some discussion on the main page for this contest talking about the sampling speed of the MAX40080. It appears (and this makes sense in certain applications) that this particular chip may be designed more for use in totaling up overall power consumption of a device. This means that it can internally sample at a high rate, but not report all the raw data. It would just accumulate the consumption data then report it out periodically. This chip doesn't have a raw analog output from the current sensor. I think I can achieve objectives 1 and 2 via software on the RaspberryPi but will have to list objective 3 as a stretch goal and may do some testing with other current shunt amplifiers towards the end as it seems that this could all be done via hardware in a relatively simple circuit.

One other note on my project is that the Current6Click board is rated up to 5 amps max. My 3D printer consumes about 3 amps for the nozzle (at 12V) and about 10 amps for the heated bed. So for this I will be only targeting the nozzle but the exact same principles would apply for the heated bed. 

This image shows the long cycles of the bed heater, and the much faster cycles of the nozzle (which are barely visible in this graph)

image

Here's a video showing the kit and giving another explanation of what I'm planning on doing.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

Will it work?

I sure hope so! I've had this idea rolling around in my head for a while and chose to enter this contest and use the Click board based on the lower hardware requirements. I'm still not sure I'll be able to achieve my objectives with this but will do as much as the hardware will allow. I may end up having to do some experimenting with raw hardware towards the end if I can't achieve objective #3 and time is still permitting. 

  • Sign in to reply
  • DAB
    DAB over 3 years ago

    Good test plan.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube