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 07: Scoping Out the Autostand -- Episode 309
  • 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: tariq.ahmad
  • Date Created: 23 Jul 2017 12:44 AM Date Created
  • Last Updated Last Updated: 22 Sep 2017 7:24 AM
  • Views 1164 views
  • Likes 4 likes
  • Comments 4 comments
Related
Recommended

Super Glue Gun 07: Scoping Out the Autostand -- Episode 309

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

Community Feedback
Featured Bonus Content
See All Episodes

 

 

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

The team is working on a touch control stand for the Super Glue Gun build. To do this they will need to figure out how to mechanically make the stand pop in and out, figure out how to actuate that either with a DC motor or a servo, and then make some code for the microcontroller, if it’s a servo for instance they need to create a timer library with interrupts, and then figure out how to put a capacitive touch sensor on the trigger that can be read by the microcontroller.

 

 

Ben and Felix work on a mock up for the stand.  Following a suggestion from Felix, they need to figure out placement of a rod.  Ben does a mock up that includes an elongated rectangular piece with teeth, a rack and pinion with a motor, and a gear that would drive the teeth.  You’d have this on a linear slide which makes it go forward and back, as well as, some sort of limit switch so you know where it is. The mock up that includes a guitar string hooked up to a brass piece that represents the stand. They have it hooked up to really small servo. A stranded steel cable could go underneath the motor and all the extruders.  This would allow them to put the servo motor further back for more space and prevent it from getting overheated by the hot end.  They could still control the stand in the front using a cable.

They make a second mockup with a stiffer rod. The servo is making noise when it’s not moving. This means it’s trying to achieve a position that cannot reach and it will eventually burn itself up. A servo is like a motor with a potentiometer in it.  It knows where it’s at in degrees, knows where it has to be, and has to get there.  Little servos like the one they are using are not smart enough to know when they’re under strain. They’ll just try to keep getting there until they burn up their motor or their circuits. To solve this, Ben remakes the brass stand and rigs up a smaller radius piece.

Ben goes to work on the coding.  He’s looking for a servo library for the servo used with the ATtiny20.  The library he uses calls an interrupt and every time the interrupt is called it does a counter to see if the timer is past the point where the servo should be on or off and then it turns it on or off.  To get the library working it was necessary to decipher the address registers described in the datasheet to set the proper bits.  After modifying the code Ben uses an oscilloscope to analyze the pin output and verify the program.    The variable pulse state is used to iterate through the state machine.

 

Disclaimer

  • hack
  • super_glue_gun
  • episode 309: super glue gun 07
  • scoping out the autostand
  • heck
  • ben
  • tbhs_ep
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • cliffgoniea
    cliffgoniea over 7 years ago +2
    Project suggestion: A light to illuminate what you are gluing.
  • Sean_Miller
    Sean_Miller over 7 years ago +1
    Thanks for the exposure to the Atmel studio. I haven't explored this at all and have a lot of catching up to do. Just when I thought I caught up, too. Darn it. One thought, would a solenoid be a leaner…
  • Sean_Miller
    Sean_Miller over 7 years ago

    Another thought...

     

    Consider prototyping with High Impact Poly Styrene (HIPS) and Weld-on.  HIPS is sold in sheets online and can be scored and snapped, routed, band sawed, and possibly laser cut.  Weld-on is a solvent that gives an instant solvent weld similar to PVC plumbing.  You can make some ridiculously sturdy structures of various shapes in minutes.

     

    The Star Wars astromech club builders use this to build entire droids.  Movie prop guys use it as well.

     

    -Sean

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Sean_Miller
    Sean_Miller over 7 years ago

    Thanks for the exposure to the Atmel studio.  I haven't explored this at all and have a lot of catching up to do.

     

    Just when I thought I caught up, too.  Darn it.

     

    One thought, would a solenoid be a leaner solution than the servo to stroke the stand?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 7 years ago

    Nice episode.

     

    My only critique would be that Ben spends a lot of time designing while writing code.

    It would be more efficient to sit down and design the code first and then implement the actual code.  I know, I come from the old school where software is engineered not artistically created as you go.image

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • cliffgoniea
    cliffgoniea over 7 years ago

    Project suggestion: A light to illuminate what you are gluing.

    • Cancel
    • Vote Up +2 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