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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • 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
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • 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
Project Videos
  • Challenges & Projects
  • element14 presents
  • Project Videos
  • More
  • Cancel
Project Videos
Documents DIY Shapeoko CNC Pendant -- Episode 420
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Project Videos to participate - click to join for free!
Related
Recommended
Engagement
  • Author Author: tariq.ahmad
  • Date Created: 11 Nov 2019 10:04 PM Date Created
  • Last Updated Last Updated: 15 Nov 2019 8:24 AM
  • Views 14876 views
  • Likes 10 likes
  • Comments 88 comments

DIY Shapeoko CNC Pendant -- Episode 420

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

One of the great joys of being able to design with electronics is the ability to make your own custom tools. DJ recently picked up a CNC router and in order to make his life a wee bit easier, he’s designed and built a pendant that will allow him to more comfortably, and accurately set up his parts in the machine. Follow along as he tinkers his way to new gadget that, hopefully, will be of use or inspiration for fellow makers and CNC enthusiasts.

Bill of Material:

Product Name Manufacturer Quantity Buy Kit
Panel Mount Push Button Grayhill 7 Buy Now
5mm LED Multicomp 7 Buy Now
680R Resistor Multicomp Pro 7 Buy Now
3D Filament Verbatim 1 Buy Now
Rotary Encoder Bourns 1 Buy Now

 

Additional Parts:

 

Product Name
Teensy LC
Attachments:
Resources_DIY Shapeoko CNC Pendant.zip
image
DIY Shapeoko CNC Pendant

element14 Presents  |  DJ Harrigan's VCP Profile  |  Project Videos

  • shapeoko
  • carbide 3d
  • digital fabrication
  • fusion 360
  • cnc
  • 3D Printing
  • cad
  • usb hid
  • element14 presents
  • xxl
  • rotary encoder
  • microcontroller
  • multicomp
  • dj
  • cam
  • bourn
  • arduino
  • router
  • dj harrington
  • friday_release
  • woodworking
  • e14presents_djharrigan
  • Share
  • History
  • More
  • Cancel
Actions
  • Share
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • rogo
    rogo over 6 years ago +2
    The project is very nice but a cabling scheme would not be refused!
  • thomasvdd
    thomasvdd over 6 years ago +1
    Awesome project! I'm definitely building this, it solves exactly the annoyance I encounter when milling. Could you share the file for the front plate which includes the text?
  • DAB
    DAB over 6 years ago +1
    Nice build. DAB
  • thomasvdd
    thomasvdd over 6 years ago in reply to wildmack

    Print screens are also fine for me. Put them together in paint for example

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • wildmack
    wildmack over 6 years ago in reply to thomasvdd

    Hi Thomas, I can't figure out how to copy and paste that data, is there a trick to it?  Dave........................

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • thomasvdd
    thomasvdd over 6 years ago in reply to wildmack

    Don't think so, I already checked the differences and none are major dealbreakers.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • thomasvdd
    thomasvdd over 6 years ago in reply to wildmack

    When did you get the

    "ENC A HIGH TRIGGERED" and
    "ENC B HIGH TRIGGERED" ?

    If that happens when the encoder is turned, the encoder is connected correctly.

    In that case, the problem lies with the encoder library.

     

    I would like to see the output of this window when compiling and uploading. All of it image

     

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • wildmack
    wildmack over 6 years ago in reply to thomasvdd

    Hi Thomas, could the pin configuration between the Teensy 3.2 and LC cause the issue?

     

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • wildmack
    wildmack over 6 years ago in reply to thomasvdd

    Don't give up on me LOL

     

    OK, I put the text after this:

    long newScrollPos = encoderScroll.read();

     

    I don't see what checking the two boxes did?

    Here are the screen shots, it changed based on turning the encoder.  But, it was always printing something even when I wasn't pushing a button or turning the encoder??

     

    imageimageimage

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • thomasvdd
    thomasvdd over 6 years ago in reply to wildmack

    I'm running out of ideas...

     

    Include those lines and upload of picture of the serial monitor when turning the encoder:

     

      if (digitalRead(PIN_ENC_A) == LOW){

         Serial.println("ENC A LOW TRIGGERED");
      }

      if (digitalRead(PIN_ENC_A) == HIGH){

         Serial.println("ENC A HIGH TRIGGERED");
      }

      if (digitalRead(PIN_ENC_B) == LOW){

         Serial.println("ENC B LOW TRIGGERED");
      }

      if (digitalRead(PIN_ENC_B) == HIGH){

         Serial.println("ENC B HIGH TRIGGERED");
      }

     

    Also, in File>Preferences, enable these settings:

    image

    Share a screenshot of the output.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • wildmack
    wildmack over 6 years ago in reply to thomasvdd

    Nope, still no change??

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • thomasvdd
    thomasvdd over 6 years ago in reply to wildmack

    The Serial.begin(9600); is needed for the serial monitor, just leave it uncommented.

     

    Since nor the buttons, nor the encoder trigger the encoderScroll.read(); function, I suspect you might be using the wrong library.

    This is the one I am using: https://github.com/PaulStoffregen/Encoder

     

    Normally, Arduino stores the libraries under Document/libraries/

    Remove all existing encoder libraries from this folder (if any) and replace with the one from the link above.

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • wildmack
    wildmack over 6 years ago in reply to thomasvdd

    OK, connected the two buttons and add the code.  It sends out a continuous series of zeros to the right.  Nothing changes if I ground pins 9 or 10.  I used the same encoder as the one in the project from Element14  Attached are the specs.

     

    Just seems like it's not reaching the keyboard commands.  It's a brand new teensy, but I guess it could be bad, but even changing the pin assignments I get the same results.  In the program, should the  //Serial.begin(9600);  not be commented out?  I did change it, but got the same results.   ???

     

     

    for (int ii = 2; ii < 11; ii++) pinMode(ii, INPUT_PULLUP);

      for (int ii = 14; ii < 21; ii++) pinMode(ii, OUTPUT);

      digitalWrite(PIN_LED_X, HIGH);

      digitalWrite(PIN_LED_FAST, HIGH);

      //Serial.begin(9600);

     

     

    imageimage

    • 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 © 2026 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.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube