Einsy board 1.1a and Simple Metal

Talk about modifications to the printer

Einsy board 1.1a and Simple Metal

Postby cbxbiker61 » 2018-Jan-Tue-20-Jan

I just received my first Einsy board from Ultimachine. The Einsy is the board used in the Prusa MK3. It has TMC2130 stepper drivers that are quiet and have some pretty nifty new capabilities such as missed step detection/recovery and homing without endstops. It will also be capable of power fail recovery when printing from SD card after Marlin gets up to feature parity with the Prusa firmware. With the 2560 micro, there is enough flash to put a proper LCD control on it.

I've already built a test firmware for it, although I do need to go back and vet the configuration changes.

Now I just have to design and print an adapter plate since it's just a bit wider/longer than the PrintrBoard. I'll punch a couple of holes in the front of the Simple for the USB port and reset button.
  • 0

cbxbiker61
I'm an end stop.
 
Posts: 66
Joined: 2017-Jun-Wed-00-Jun
Reputation: 4

Einsy board 1.1a and Simple Metal

Sponsor

Sponsor
 

Re: Einsy board 1.1a and Simple Metal

Postby cbxbiker61 » 2018-Jan-Thu-21-Jan

A couple of photos of my adapter and Einsy board.
  • 0

You do not have the required permissions to view the files attached to this post.
cbxbiker61
I'm an end stop.
 
Posts: 66
Joined: 2017-Jun-Wed-00-Jun
Reputation: 4

Re: Einsy board 1.1a and Simple Metal

Postby TryTryAgain » 2018-Jan-Tue-18-Jan

So cool! What kind of changes did you have to make to the einsy firmware? Just change the build volume settings or was it more involved?
The feature I'm most interested in is the missed step detection. Have you had an opportunity to try it out?
  • 0

TryTryAgain
Waiting to connect to printer...
 
Posts: 4
Joined: 2016-Jul-Sat-15-Jul
Reputation: 0

Re: Einsy board 1.1a and Simple Metal

Postby cbxbiker61 » 2018-Feb-Thu-23-Feb

TryTryAgain wrote:So cool! What kind of changes did you have to make to the einsy firmware? Just change the build volume settings or was it more involved?
The feature I'm most interested in is the missed step detection. Have you had an opportunity to try it out?


Current Marlin doesn't have a pins header for the Einsy board, so I copied the pins header from the Prusa MK3 source tree. A few minor changes to the config file from the existing PrintrBoard config, i.e. adding on the Trinamic drivers and using the new pins header file. I have built the firmware, so I know it's pretty close. I'm just waiting for an opportunity to swap the board into place. I'll keep you posted.
  • 0

cbxbiker61
I'm an end stop.
 
Posts: 66
Joined: 2017-Jun-Wed-00-Jun
Reputation: 4

Re: Einsy board 1.1a and Simple Metal

Postby cbxbiker61 » 2018-Feb-Fri-14-Feb

I've got my Einsy connected to my computer running Marlin 1.1.8! I'm in test mode at the moment so it's not mounted in the PrintrBot yet.

1. fixed the common problem where the display ribbon cables are keyed on the wrong side, just grind the key off on one end and reverse the cables.
2. fixed an issue with the Full Graphics display (artifacts on the display):
In ultraldc_st7920_u8glib_rrd.h:
#pragma GCC optimize (0)

Marlin is not reading my SD card at the moment, I just finished testing the SD card on the graphics display by wiring it to an Arduino Mega and the Mega can read the SD card. I need to debug why Marlin can't read it. It does recognize the card detect pin though, I've double checked the pin definitions for SD/SPI and they seem to be correct. Might have to connect my scope to the SPI pins and see if the Marlin/Einsy is sending data correctly.

The buzzer doesn't seem to work at the moment, but while I've got it attached to the Mega, I'll test it out and go from there.

Once I get the SD card and buzzer sorted out, I'll use my scope to monitor the stepper motor pins and see if they're being triggered.

BTW, you want to get a couple of 40mm 5V 3pin fans for the Einsy, they're no longer "dumb" 12V. Marlin/Einsy can be configured to monitor fan RPM and pause/cancel a print if they're not spinning.

https://www.amazon.com/gp/product/B00NEMGCIA/

I'm also going to use a 90 degree usb cable so I don't have to punch a hole in the front of the PrintrBot.

https://www.amazon.com/gp/product/B00GURMTTC/
  • 0

cbxbiker61
I'm an end stop.
 
Posts: 66
Joined: 2017-Jun-Wed-00-Jun
Reputation: 4

Re: Einsy board 1.1a and Simple Metal

Postby cbxbiker61 » 2018-Feb-Sat-10-Feb

The buzzer is working, It was all along, I just expected the menu clicks to be a little louder.

I plugged a spare stepper motor into the board's X, Y, Z and E plugs. Initially the X and Y weren't interpolating steps. I speculated that configuring the stepper motors over SPI wasn't happening reliably, so I looked into the TMC2130Stepper library. I found that it was driving SPI at half the rate that I found in the Prusa MK3 firmware so I changed that. That seemed to do the trick and now the steppers all run interpolated. BTW, it's a beautiful thing to hear how much quieter/smoother the steppers sound in this mode..

The X and Y endstops trigger properly. I still need to test the Z endstop.

The outstanding issue is reading from the SD card. I'm speculating that there is an issue with sharing the SPI bus, since the TMC2130Stepper library is using SPI library calls and the SdCard functions are reading/writing registers directly. I see that the Arduino "official" SD card library is using SPI calls, rather than reading/writing registers directly so I'm patching the SdCard code to use SPI library calls. Wei'll see if that fixes it.
  • 0

cbxbiker61
I'm an end stop.
 
Posts: 66
Joined: 2017-Jun-Wed-00-Jun
Reputation: 4

Re: Einsy board 1.1a and Simple Metal

Postby cbxbiker61 » 2018-Feb-Sat-15-Feb

I've got it reading from the SD card now. I also found a better way (more official) of handling the graphics artifacts.

I figured out that the Einsy needs a different pins_arduino.h vs a standard Arduino Mega. It uses more pins.

One last issue to figure out...my Extruder stepper isn't working, all of the other stepper drivers are working.
  • 0

cbxbiker61
I'm an end stop.
 
Posts: 66
Joined: 2017-Jun-Wed-00-Jun
Reputation: 4

Re: Einsy board 1.1a and Simple Metal

Postby cbxbiker61 » 2018-Feb-Sun-03-Feb

Ahhh, PREVENT_COLD_EXTRUSION was preventing me from testing the extruder. So yeah it works.

I should be able to mount the Einsy in the PrintrBot about Thursday or Friday after I get my 5V 3 pin fans.
  • 0

cbxbiker61
I'm an end stop.
 
Posts: 66
Joined: 2017-Jun-Wed-00-Jun
Reputation: 4

Re: Einsy board 1.1a and Simple Metal

Postby cbxbiker61 » 2018-Feb-Tue-23-Feb

For anyone interested, I've put up my current patch. Everything seems to test out. I'm now waiting for some three pin connectors for my 5V fans and some spade connectors for the power input. I want to wire this up nicely so it's nice and reliable.

http://www.xilka.com/printrbot/marlin/1 ... ambo.patch
  • 0

cbxbiker61
I'm an end stop.
 
Posts: 66
Joined: 2017-Jun-Wed-00-Jun
Reputation: 4

Re: Einsy board 1.1a and Simple Metal

Postby RetireeJay » 2018-Feb-Wed-08-Feb

I'm curious - what are you using for your firmware development tools? And how do you configure them? Does Einsy come with its own IDE like Arduino does?

I got really frustrated with the Arduino IDE and gladly went over to PlatformIO when it became available (using Notepad++ for my editor). But I suspect if I wanted to implement your firmware on my Rev F6 board I'd need some other compiler. Microsoft's C++ compiler? I tend to get lost in all the dependencies of this file on that file which depends on that other file, which gets its pin assignments from that header except for some pins which come from another package entirely...
  • 0

Printrbot Plus operational January 2013
Brass threaded rods (5/16" X 18) & nuts for Z axis
GT2 belts & pulleys
Cable chain to reduce probability of fatigue failure in wires
E3D V5 Hot End, 0.4mm nozzle, also 0.8 and 0.25 in use occasionally
PB fan mount + 40mm fan -- using printed mount adapter, not the E3D supplied fan
Injection molded extruder gears
Optical Z "endstop" (custom designed and built)
Have used many pounds of T-Glase filament. Now also doing some work with Ninjaflex SemiFlex
Print on glass with Scotch Craft Stick or other glue stick
User avatar
RetireeJay
My next printer is...
 
Posts: 4864
Joined: 2013-Jan-Wed-13-Jan
Location: Greenville, SC
Reputation: 483

Re: Einsy board 1.1a and Simple Metal

Postby cbxbiker61 » 2018-Feb-Wed-11-Feb

In my case I use Linux with make. Marlin includes a Makefile, but it needs some tweaking to the the source code locations. I patch the Makefile for my setup and use a build-*.sh script to build the various versions.

PlatformIO can build it also, I think quite a few of the Marlin devs use it. I simplified the configuration options by moving the options that may be encountered on a PrintrBot to PrintrBotConfig.h. You can see how I set them for reference in build-printrbot.sh.

If you have the PrintrBoard F5/6, apply the Marlin-1.1.8-20171227.patch, then set the options in PrintrBotConfig.h. That should build you a firmware,
  • 0

cbxbiker61
I'm an end stop.
 
Posts: 66
Joined: 2017-Jun-Wed-00-Jun
Reputation: 4

Re: Einsy board 1.1a and Simple Metal

Postby cbxbiker61 » 2018-Feb-Wed-11-Feb

I finally have started the conversion. I had to redesign the adapter bracket. I made it shorter, put nut traps in the Einsy mount holes and offset the holes a bit to move the Einsy board about 4mm towards the front. I am going to punch a hole in the front of the PrintrBot base for the USB cable.

The existing stepper connectors will plug in to the Einsy without changing the end. They just wont have the locks to match the Einsy board's plugs. Other items, such as end-stops will require new connector ends. It looks like it will be pretty straight forward, just spending a bit of time changing connectors.
  • 0

cbxbiker61
I'm an end stop.
 
Posts: 66
Joined: 2017-Jun-Wed-00-Jun
Reputation: 4


Return to Mod talk

Who is online

Users browsing this forum: No registered users and 5 guests