Code Monkey home page Code Monkey logo

teensycnc's Introduction

TeensyCNC, CNC controller using a Teensy 3.x!

Currently only 2 axis, but easily expanded. Made to hack my Wife's Cricut Mini, because Provo Craft sucks and wants you to pay them to be creative (and now that they've discontinued it and basically bricked it!) I want to cut/draw what I want, not something that's in THEIR clipart library AND have to pay for it as well!!!

Besides that, it's also a fun project! :D

Connection information:

Original PIC24FJ64GB002 (Master PIC - handles USB interface, command queing/excution, motion control):

Description Pin Pin Description
--- 1 28 ---
--- 2 27 Ground
--- 3 26 motorYb
--- 4 25 motorXb
--- 5 24 motorXa
motorYa 6 23 ---
--- 7 22 USB Data -
Ground 8 21 USB Data +
--- 9 20 ---
Power button 10 19 ---
Head solenoid 11 18 ---
Load button 12 17 ---
--- 13 16 ---
--- 14 15 ---

Original PIC16LF1823 (Slave PIC - handles counting quadratic motor encoder pulses, passes the data to master PIC via SPI): Note: this is a 14 pin chip, and the board has a 20 pin location.

Description Pin Pin Description
--- 1 14 Ground
encoderXb 2 13 ---
encoderXa 3 12 ---
--- 4 11 encoderYa
--- 5 10 ---
--- 6 9 ---
LED enable 7 8 encoderYb

Connections to the Teensy:

Connection at Cricut Connection at Teensy
motorXa Teensy pin 21 (PTD6, PWM output)
motorXb Teensy pin 20 (PTD5, PWM output)
motorYa Teensy pin 23 (PTC2, PWM output)
motorYb Teensy pin 22 (PTC1, PWM output)
encoderYa Teensy pin 17 (PTB1, interrupt input)
encoderYb Teensy pin 16 (PTB0, interrupt input)
encoderXa Teensy pin 11 (PTC6, interrupt input)
encoderXb Teensy pin 12 (PTC7, interrupt input)
Load button Teensy pin 14 (PTD1, interrupt input)
Head solenoid Teensy pin 13 (PTC5, Output)
LED Enable Teensy +3.3v
Ground Teensy Ground (may be grounded via USB B connector)

Note: Power button is currently unused and unconnected. Future use?

For USB connection, I used a chopped off USB MicroB cable and soldered the wires to the pins on the bottom of the board.

Motor connection (from left to right, looking at the connector - not needed, just for reference):

Pin Description
1 motor -
2 motor +
3 sensor com
4 A
5 LED +
6 B

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.