Giter Site home page Giter Site logo

cnc-pendant-firmware's Introduction

CNC-Pendant-Firmware

This is firmware to run on an Arduino Pro Micro (preferred) or Arduino Nano to interface a popular style of wired CNC pendant to the PanelDue port of Duet electronics. Build it using Arduino IDE.

For a full guide to building the pendant, see the Duet3D wiki here.

Wiring

Pendant to Arduino Pro Micro wiring:

Pro Micro Pendant Wire colours
VCC +5V red
GND 0V
COM
CN
LED-
black
orange/black
blue/black
white/black
D2 A green
D3 B white
D4 X yellow
D5 Y yellow/black
D6 Z brown
D7 4 brown/black
D8 5 pink (if present)
D9 6 pink/black (if present)
D10 LED+ green/black
A0 STOP blue
A1 X1 grey
A2 X10 grey/black
A3 X100 orange
NC /A
/B
violet
violet/black

Arduino Pro Micro to Duet 3 IO_0 connector or Duet 2 PanelDue connector wiring (3- or 4-core cable):

Pro Micro Duet
VCC +5V (red wire)
GND GND (yellow wire)
TXO
GND
Through 6K8 resistor to IO_0_IN (Duet 3) or URXD0 (Duet 2)
Also connect 10K resistor between GND and IO_0_IN (Duet 3) or URXD0 (Duet 2) (blue wire from resistor junction to Duet)

To connect a PanelDue as well (the Arduino Pro Micro passes the PanelDue commands through to the Duet):

PanelDue Pro Micro / Duet
+5V +5V/VCC (red wire to Ardiuno or Duet)
GND GND (yellow wire to Ardiuno or Duet)
DIN Duet IO_0_OUT (Duet 3) or UTXD0 (Duet 2) (green wire)
DOUT Pro Micro RXI (blue wire of PanelDue cable to green wire of pendant cable)

For wiring differences and hardware changes needed if using an Arduino Nano, see the comments at the start of the CNC-pendant.ino file.

Support requests

Please use the forum for support requests.

cnc-pendant-firmware's People

Contributors

chrishamm avatar dc42 avatar droftarts avatar t3p3 avatar x0rtrunks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cnc-pendant-firmware's Issues

Compile error on Arduino 1.8,13

Hi, getting a compile error on downloaded code 071c4fa
on 30 May 2020
as follows:
no idea what" attribute" is, so cannot move forward.

sketch\PassThrough.cpp: In member function 'unsigned int PassThrough::Check(HardwareSerial&)':
PassThrough.cpp:57:9: error: expected primary-expression before 'attribute'
attribute ((fallthrough));
^
exit status 1
expected primary-expression before 'attribute'

Regards, Robert.

Needs updating to use CRC16 instead of checksum

The current version is not compatible with PanelDue firmware versions that use a CRC16 instead of a checksum at the end of each command sent.

I have added tag last-release-using-checksums on the latest commit, for the benefit of anyone staying with RRF/PanelDueFirmware versions prior to 3.4. I suggest we amend this firmware to support only CRC16 from PanelDue, and to generate CRC16 when sending commands to the Duet. It would be possible to recognise checksums from PanelDue too (see the code in RRF for how to do this) but I think there is little point in doing this.

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.