Welcome! Log In Create A New Profile

Advanced

Clone(Melzi + Marlin + BLTouch) == Pain?

Posted by lhartmann 
Clone(Melzi + Marlin + BLTouch) == Pain?
May 08, 2018 07:19PM
Got a BLTouch clone, mounted it to my i3 clone, connected it to a Melzi clone, git cloned Marlin, and Dolly is not doing well.

The probe does not deploy when I try to use A1-A4, SDA or SCL as servo pins.

It works nicely with TX1 as servo pin, but I need if for TTL Serial (Octoprint on OrangePi).

I assume (from RAMPs schematic, but untested) it should also work with some of the SPI pins, but those are needed for SD card.

Am I missing something is is this really a dead end?
Re: Clone(Melzi + Marlin + BLTouch) == Pain?
May 08, 2018 09:14PM
Ext-A1 - A4 how did you select these pins?

Did you use their digital names? (if is still the same as [reprap.org] )

Ext-A1 is D25
Ext-A2 is D26
Ext-A3 is D27
Ext-A4 is D28

according to [www.flickr.com]

Edited 1 time(s). Last edit at 05/08/2018 09:17PM by Dust.
Re: Clone(Melzi + Marlin + BLTouch) == Pain?
May 08, 2018 10:10PM
Quote
Dust
Did you use their digital names? (if is still the same as [reprap.org] )

Your incredulity solved my issue. I was the first Google image for "atmega1284 arduino pins," which gave me a MightyCore pinout. It matches the pinout on RepRap wiki as you mentioned, so I guess it was compatible with arduino mega.

It turns out that Melzi is based on Sanguino (so, an arduino clone), and exploring the proper header files I found the very helpful ASCII art below, where I took the liberty of mark A1-A4.
// ATMEL ATMEGA644/ATMEGA1284 / SANGUINO
//
//                        +---\/---+
//            (D 0) PB0  1|        |40  PA0 (AI 0 / D31)
//            (D 1) PB1  2|        |39  PA1 (AI 1 / D30)   <==
//       INT2 (D 2) PB2  3|        |38  PA2 (AI 2 / D29)   <==
//        PWM (D 3) PB3  4|        |37  PA3 (AI 3 / D28)   <==
//     SS PWM (D 4) PB4  5|        |36  PA4 (AI 4 / D27)   <==
//       MOSI (D 5) PB5  6|        |35  PA5 (AI 5 / D26)
//       MISO (D 6) PB6  7|        |34  PA6 (AI 6 / D25)
//        SCK (D 7) PB7  8|        |33  PA7 (AI 7 / D24)
//                  RST  9|        |32  AREF
//                  VCC 10|        |31  GND
//                  GND 11|        |30  AVCC
//                XTAL2 12|        |29  PC7 (D 23)
//                XTAL1 13|        |28  PC6 (D 22)
//       RX0 (D 8)  PD0 14|        |27  PC5 (D 21) TDI
//       TX0 (D 9)  PD1 15|        |26  PC4 (D 20) TDO
//  INT0 RX1 (D 10) PD2 16|        |25  PC3 (D 19) TMS
//  INT1 TX1 (D 11) PD3 17|        |24  PC2 (D 18) TCK
//       PWM (D 12) PD4 18|        |23  PC1 (D 17) SDA
//       PWM (D 13) PD5 19|        |22  PC0 (D 16) SCL
//       PWM (D 14) PD6 20|        |21  PD7 (D 15) PWM
//                        +--------+

Changed the pin number to 27 for A4, and probing works.

For some weird reason, though, the probe is deployed correctly during homing (G28) and bed levelling (G29), but not when I explicitly tell it to deploy (M401).

And the clone wars continue! :-)
Re: Clone(Melzi + Marlin + BLTouch) == Pain?
May 08, 2018 11:05PM
Interesting, the two diagrams conflict a lot...

But glad I inspired something.
Sorry, only registered users may post in this forum.

Click here to login