element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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
Ben Heck Featured Content
  • Challenges & Projects
  • element14 presents
  • element14's The Ben Heck Show
  • Ben Heck Featured Content
  • More
  • Cancel
Ben Heck Featured Content
Documents Super Glue Gun 04: Hold Me Closer, ATTiny -- Episode 290
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Ben Heck Featured Content to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: pchan
  • Date Created: 18 May 2017 7:51 PM Date Created
  • Last Updated Last Updated: 12 May 2017 7:24 AM
  • Views 1175 views
  • Likes 6 likes
  • Comments 2 comments
Related
Recommended

Super Glue Gun 04: Hold Me Closer, ATTiny -- Episode 290

image

element14's The Ben Heck Show

Join the Ben Heck team every week for amazing hacks! Watch them build and mod community-inspired projects using electronics!

Back to The Ben Heck Show homepage image

Super Glue Gun
Featured Bonus Content
See All Episodes

 

 

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

Previously, the team worked on the triac to control the hot end, extruding glue through the hot end, and finding the best DC motor and drive gear to push the glue to the hot end. In this episode, the team is going to make another test rig using a slightly faster DC gear motor and get started on programming the ATtiny microcontroller that will drive everything in the glue gun.

 

Check out more Super Glue Gun Episodes

Ben finds a DC motor with the same form factor as the one he used before, but its 50 rpm instead of 3 rpm. The mounting is different so he goes into Autodesk Fusion 360 to design a 3D Printed mount.  Ben exports his design as a DXF (Drawing Exchange Format) so he can cut a paper pattern on the laser, make sure the holes are correct, and once that done he can print it. The paper pattern is way off so it was good thing he started this way than with a 3D print. It takes many tests to get the right dimensions.

After 3D the part and measuring the distance, the latest revision to the motor mount is a little loose so another revision is made on the 3D printed part. Once the part is dialed in, they’re going to take the glue stick and get its center point, and use that to make their guide shaft. That will get them close enough to do a test with the hot end again. 50 rpm motor gives them a lot more speed than the 3 rpm motor, however more speed means less torque so hopefully it has enough power to push the glue through the hot end. Once it seems to work, it’s time to make the next revision to the 3D printed part so they can push it through the hot end.

Ben has a new board he made for ATtiny development.  It’s got a larger socket on it for the ATtiny20.  He’s also working on a sub socket for the ATtiny4 to give him a couple of options for what he can use. The ATtiny20, is the most likely candidate for use with the Super Glue Gun, as it gives him 6 IO. The board gives him a way to program these little chips as well, especially as they use the TPI – Tiny Programming Interface – instead of the SPI (Serial Peripheral Interface).  Once the board is wired up they can get to work on some code.

Ben goes on Atmel Studio to do some programming for various ATtiny chips. AtmelStudio is based off of VisualStudio and is well integrated with Atmel microcontrollers. Ben goes over logic for programming an ATtiny chip. The PWM pin is set to be an output. On this a 1 is an output and a 0 is an input.  He sets up a timer to drive the PWM. Ben does all the code in AtmelStudio, so they can be develop it on a low level, have a file that’s easy to program, and they can make the device.

An H-bridge is a circuit for reversing the direction of a motor. Ben explores making his own H-bridge on the PCB. He looks for some MOSFETs to make a full H-bridge.  He interested in finding out what that would cost vs. a dedicated, integrated circuit. He goes with a Duel MOSFET, N and P Channel.  Once he finds some power MOSFETs to make his own H-bridge, he’ll wire it up manually so he knows exactly what’s going on and can low level control it with a microcontroller.  They will also need to figure out auto stand that kicks out. They could possibly use a servo, use a timer on the ATtiny and have some PWM running at 50 hertz. For now he’s looking for the cheapest way to possibly drive a motor.

Disclaimer

  • hack
  • attiny
  • heck
  • ben
  • episode 290: super glue gun 04: hold me closer
  • tbhs_ep
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • DAB
    DAB over 8 years ago +1
    Great episode with lots of detail on how you go about bringing an idea to product. DAB
  • DAB
    DAB over 8 years ago

    Great episode with lots of detail on how you go about bringing an idea to product.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • tm14
    tm14 over 8 years ago

    Liked the wrap-up discussion of design alternatives and reasons you decided for or against.

     

    Liked that Ben is considering costs early and looking for simplest/leanest parts alternatives.

     

    Liked the bottom of the screen notes to define tech acronyms.

     

    Liked that a faster motor was used.  You'll need if for factory packaging applications.  Have you decided what applications the glue gun can support?  You can see various types here:  https://www.gluegun.com/

     

    Not sure why it took so many attempts on paper to get the right positioning of the motor screws.  In the past, Ben took a photo with his camera and resized it to actual dimensions in CAD system.  I thought that was very efficient.  Would this method had worked better here?

     

    If you run the motor too fast, does the glue not melt fast enough and cause slipping/jamming?  The temperature of the heater chamber may not be able to be raised fast enough to keep up with the motor.  There's a finite amount of pre-melted glue in the heater chamber.  Once that is pushed out, the cold glue needs time to melt.  So if the motor has not been used in a few minutes, the glue in the chamber is all melted and can be pushed out quickly.  But if you continue beyond this, the output rate cannot be maintained without additional heat.  So the motor speed may need to be reduced in the software for continuous feeds and keep track how long the motor has not been used so it knows it can blast out fast for a short duration.  Additionally, the heater temperature could be regulated depending on the motor speed.

    • 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