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
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 1315 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
Parents
  • 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
Comment
  • 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
Children
No Data
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