Re-ARM

From RepRap
Jump to: navigation, search

Template:Re-ARM


Crystal Clear action run.png
Re-ARM

Release status: Working

[[Image:|center|190px]]

Description
LPC1768 for use with RAMPS 1.4
License
Author
Contributors
Based-on
[[]]
Categories
CAD Models
none
External Link
none



Summary

Re-ARM is a R3 form factor NXP LPC1768 based controller. It is meant to replace an Arduino mega260.

Software

Smoothieware - see the Panucatt quick start guide.

Marlin - supported in Marlin 2.0

Compatible Shields

RAMPS1.4 is the only known compatible shield.

RAMPS-FD has a mechanical interference problem.

Pinout when used with RAMPS1.4

The LPC1768 has fewer I/O pins than the mega2560 which results in some logical pins no longer available and some logical pins being available on two different pins.

The logical pin numbers in the gallery are Marlin.

/**

*  The following pins are NOT available in a Re-ARM system
*  7
*  17
*  22
*  23
*  25
*  27
*  29
*  32
*  39
*  40
*  42
*  43
*  44
*  45
*  47
*  64
*  65
*  66
*/
/**
 * special pins
 *   D37 - not 5V tolerant
 *   D49 - not 5V tolerant
 *   D57 - open collector
 *   D58 - open collector
 *
 */
*  PWMS
*
*  There are 6 PWMS. They do NOT share resources with the system so all 6 are available. 
*
*  SERVO2 does NOT have a PWM assigned to it.
*
 
 
 

Analog inputs - there are 8 analog inputs on the Re-ARM compared with 16 on the mega2560.

  • A0 (T0) - D67 - TEMP_0_PIN
  • A1 (T1) - D68 - TEMP_BED_PIN
  • A2 (T2) - D69 - TEMP_1_PIN
  • A3 - D63
  • A4 - D37 - BUZZER_PIN
  • A5 - D49 - SD_DETECT_PIN
  • A6 - D0 - RXD0
  • A7 - D1 - TXD0

D63, D67, D68 & D69 still have analog inputs assigned to them.

D67, D68 & D69 are the only analog inputs that don't require external signal conditioning. All the others have huge (25% & more) spikes.

D67, D68 & D69 are available on the RAMPS board or on the Re-ARM board. The ones on the Re-ARM board have less noise on them. Solder jumpers J7, J9 & J10 select which pins are active. The board comes with the RAMPS pins enabled.

When configured as an analog input, the pins are NOT 5V tolerant. The useable range is 0 - 3.3V.

LCDs

Most LCDs are expected to use the J3 & J5 connectors on the Re-ARM board. J3 is pinned out for the 12 pin Viki2 LCD flat ribbon cable.

The standard SMART LCD adapter can be used to interface RepRap Discount Full Graphic type of controllers. The pinout is different than when used with a mega2560.

  • If your LCD requires +5V then you'll need a special EXP1 cable.
  • If your LCD uses any of the following signals then you must use J3 & J5:
  • - LCD_PINS_D5, LCD_PINS_D6 & LCD_PINS_D7
  • - DOGLCD_A0 & DOGLCD_CS
  • Starting with MKS, a lot of the LCD displays have the shrouds on the EXP1 & EXP2 connectors rotated 180 degrees from those on the RepRap display. To use the Smart LCD Adapter you'll either need to use a custom cable or CAREFULLY pry up and reverse the connectors on either the adapter (preferred) or the display.

NOTE - The mega2560 pinout used two SPI channels but the Re-ARM only routes one to this adapter. The result is garbage/lines appearing on the RepRap Discount Full Graphic display when the SD card is accessed. Sometimes the garbage/lines remains on the "Print from SD card" submenu screen after the SD card accesses are finished. Marlin 2.0 starting in late 2017 has a software work around for this issue.

Schematic


CROSS REFERENCE: Arduino logical pin & port_pin

/**

* Sorted by      Sorted by
* Arduino        port and then
* logical pin    by pin
* 0_3  D0        0_0  D20
* 0_2  D1        0_1  D21
* 1_25 D2        0_2  D1
* 1_24 D3        0_3  D0
* 1_18 D4        0_4  D24
* 1_19 D5        0_5  D28
* 1_21 D6        0_6  D80
* 2_7  D8        0_7  D81
* 2_4  D9        0_8  D82
* 2_5  D10       0_9  D83
* 1_20 D11       0_10 D38
* 2_12 D12       0_11 D55
* 4_28 D13       0_15 D52
* 1_26 D14       0_16 D16
* 1_27 D15       0_17 D50
* 0_16 D16       0_18 D51
* 1_29 D18       0_19 D56
* 1_28 D19       0_20 D61
* 0_0  D20       0_21 D62
* 0_1  D21       0_22 D48
* 0_4  D24       0_23 D67
* 2_0  D26       0_24 D68
* 0_5  D28       0_25 D69
* 4_29 D30       0_26 D63
* 3_26 D31       0_27 D57
* 3_25 D33       0_28 D58
* 2_13 D34       1_0  D78
* 2_11 D35       1_1  D79
* 2_8  D36       1_4  D77
* 1_30 D37       1_8  D76
* 0_10 D38       1_9  D74
* 1_22 D41       1_10 D75
* 2_3  D46       1_14 D73
* 0_22 D48       1_15 D72
* 1_31 D49       1_16 D70
* 0_17 D50       1_17 D71
* 0_18 D51       1_18 D4
* 0_15 D52       1_19 D5
* 1_23 D53       1_20 D11
* 2_1  D54       1_21 D6
* 0_11 D55       1_22 D41
* 0_19 D56       1_23 D53
* 0_27 D57       1_24 D3
* 0_28 D58       1_25 D2
* 2_6  D59       1_26 D14
* 2_2  D60       1_27 D15
* 0_20 D61       1_28 D19
* 0_21 D62       1_29 D18
* 0_26 D63       1_30 D37
* 0_23 D67       1_31 D49
* 0_24 D68       2_0  D26
* 0_25 D69       2_1  D54
* 1_16 D70       2_2  D60
* 1_17 D71       2_3  D46
* 1_15 D72       2_4  D9
* 1_14 D73       2_5  D10
* 1_9  D74       2_6  D59
* 1_10 D75       2_7  D8
* 1_8  D76       2_8  D36
* 1_4  D77       2_11 D35
* 1_0  D78       2_12 D12
* 1_1  D79       2_13 D34
* 0_6  D80       3_25 D33
* 0_7  D81       3_26 D31
* 0_8  D82       4_28 D13
* 0_9  D83       4_29 D30
*/