Difference between revisions of "MakerBot Replicator 1 Adapting A4988 Replacement Driver"

From ivc wiki
Jump to navigationJump to search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Image:MakerBot Replicator digipot schematic.png|400px|right|thumb|MCP4018T-502E/LT 7-bit 5K Digital Potentiometer provides Vref for each stepper]]
[[Image:MakerBot Replicator BotStep17 schematic.png|400px|right|thumb|BotStep17 A4982, Rsense 0.27 Ohm, Vref set via digipot]]
[[Image:MakerBot Replicator BotStep17 schematic.png|400px|right|thumb|BotStep17 A4982, Rsense 0.27 Ohm, Vref set via digipot]]
[[Image:MakerBot Replicator Polulu A4988 schematic.png|400px|right|thumb|Polulu A4988, Rsense 0.05 Ohm, Rpot 10k]]
[[Image:MakerBot Replicator Polulu A4988 schematic.png|400px|right|thumb|Polulu A4988, Rsense 0.05 Ohm, Rpot 10k]]
Line 14: Line 15:
* A4982 boards has a better thermal design with exposed copper surface
* A4982 boards has a better thermal design with exposed copper surface
* All A4988 board set the current limit by turning a trimpot, while A4982 on MakerBot is done digitally
* All A4988 board set the current limit by turning a trimpot, while A4982 on MakerBot is done digitally
== Digipot values ==
The Vref is adjusted by changing the lower-side of a voltage divider.
Vref = 5V*(0..5k/(10k+0..5k))
Where 0..5k is adjusted in steps via software (MakerWafe prefs) between 0 to 127 (7-bit)
For example, N is set to 118:
Vref = 5V*(5k*(118/127)/(10k+(5k*(118/127)))) = 1.59V


== Adapting A4988 boards ==
== Adapting A4988 boards ==
Line 36: Line 49:
=== Adjusting trimpot current limit ===
=== Adjusting trimpot current limit ===


# Check what the Rsense resistor value is on the board (or schematic), usually either 0.27/0.2/0.05 Ohms - the MakerBot sets the current limit to 830mA (0.830A)
# Check what the Rsense resistor value is on the board (or schematic), usually either 0.27/0.2/0.05 Ohms - the MakerBot sets the current limit to 830mA (0.830A) and driven by 24V for good amount of torque.
# Find the Vref you need using this equation Vref=(8*Rsense)*0.830, for instance 0.2 Ohm gives (8*0.2)*0.833=1.33V
# Find the Vref you need using this equation Vref=(8*Rsense)*0.830, for instance 0.2 Ohm gives (8*0.2)*0.833=1.33V
# Use a multimeter to measure the total resistance of the trimpot between the pads opposite of the third pad, Rpot
# Use a multimeter to measure the total resistance of the trimpot between the pads opposite of the third pad, Rpot
Line 42: Line 55:
# Use the multimeter to measure the resistance between ground and the top of the trimpot, adjust the screw until it matches the calculated value
# Use the multimeter to measure the resistance between ground and the top of the trimpot, adjust the screw until it matches the calculated value
# Done, insert into the Mightyboard with the DIR and GND pins facing the stepper motor connector
# Done, insert into the Mightyboard with the DIR and GND pins facing the stepper motor connector
=== Calculating current ===
To check, the Imax will be:
Imax = Vref/(8 x Rsense)
And using Vref 1.33V and 0.2Ohm:
Imax = 1.33/(8 x 0.27) = 0.831A (831mA)
The A4982 and A4988 can handle approx. 1A without any heatsink or active cooling, and up to 2A with cooling.

Latest revision as of 18:46, 14 February 2017

MCP4018T-502E/LT 7-bit 5K Digital Potentiometer provides Vref for each stepper
BotStep17 A4982, Rsense 0.27 Ohm, Vref set via digipot
Polulu A4988, Rsense 0.05 Ohm, Rpot 10k
HoekDrive17 A4982, Rsense 0.27 Ohm, Vref set via digipot

The BotStep17 driver board on the MakerBot Replicator 1 (and 2/2X) uses the A4982 stepper drive IC. It is hard to get replacement driver boards for this model. An popular alternative which is used by many other 3D printers is the A4988. It can be adapted to work with the MakerBot 3D printers.

Differences

  • A4988 includes 1/8th step resolution, although the MakerBot firmware utilizes 1/16th resulution
  • A4982 boards has the Vref pin exposed on the pin headers
  • Most A4988 boards has the pin-out flipped-around, so the pins stick out the other way from what the MakerBot is using
  • A4982 boards has a better thermal design with exposed copper surface
  • All A4988 board set the current limit by turning a trimpot, while A4982 on MakerBot is done digitally

Digipot values

The Vref is adjusted by changing the lower-side of a voltage divider.

Vref = 5V*(0..5k/(10k+0..5k))

Where 0..5k is adjusted in steps via software (MakerWafe prefs) between 0 to 127 (7-bit)

For example, N is set to 118:

Vref = 5V*(5k*(118/127)/(10k+(5k*(118/127)))) = 1.59V

Adapting A4988 boards

MakerBot Replicator MightyBoard expects:

  • VDD 5.0V supply voltage
  • Imax 833mA per coil
  • Stepper resolution 1/16th
  • Fixed Time-Off to 30uS / Mixed decay

Flipping around the pin headers

The pin header is on the opposite side of what the Makerbot expects.

  1. Unsolder all the pins from the driver board
    • Do this by carefully removing the plastic shoulder and removing the solder using a solder sucker pump
  2. Clean all the vias and widen them using a small drill bit if necessary
  3. Prepare two new 8-pin 2.54mm pin header strips
  4. Remove the MS3-pin on all the headers
  5. Solder the pin header on with the pins sticking out from the component side, like on the BotStep17
  6. Use a short piece of wire and solder it between MS3 and VDD pin on the flat surface of the driver board

Adjusting trimpot current limit

  1. Check what the Rsense resistor value is on the board (or schematic), usually either 0.27/0.2/0.05 Ohms - the MakerBot sets the current limit to 830mA (0.830A) and driven by 24V for good amount of torque.
  2. Find the Vref you need using this equation Vref=(8*Rsense)*0.830, for instance 0.2 Ohm gives (8*0.2)*0.833=1.33V
  3. Use a multimeter to measure the total resistance of the trimpot between the pads opposite of the third pad, Rpot
  4. Calculate the desired Radjust resistance to tune for by putting the Rpot value into the equation Radjust=(20+Rpot)*1.33/5, for instance 8.2k gives (20+8.2)*1.33/5=7.5 or 7.5k Ohms to adjust for
  5. Use the multimeter to measure the resistance between ground and the top of the trimpot, adjust the screw until it matches the calculated value
  6. Done, insert into the Mightyboard with the DIR and GND pins facing the stepper motor connector

Calculating current

To check, the Imax will be:

Imax = Vref/(8 x Rsense)

And using Vref 1.33V and 0.2Ohm:

Imax = 1.33/(8 x 0.27) = 0.831A (831mA)

The A4982 and A4988 can handle approx. 1A without any heatsink or active cooling, and up to 2A with cooling.