Skip to content

pcarew/101Hero-Marlin-Config

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

101Hero-Marlin-Config

Marlin 1.1.0rc8 Config files for the 101Hero

Notice

While I did my best to create this, I will warn you that you should use this at your own risk. The pinouts were mapped by someon other then myself (see thanks below) and I cannot guarantee that they are correct. Using this config and related Marlin modifications may cause irreparable damage to you or your printer or harm to yourself.

Uploading the board

Arduino Software

You will need to use the arduino software from https://www.arduino.cc. This has been tested with 1.6.13, but may work with other 1.6.x or 1.8.x packages.

Addon Software

Once the Arduino IDE is installed, you will want to add the Sanguino board libraries. You can review the instructions at [https://dustsreprap.blogspot.com/2015/06/better-way-to-install-sanguino-in.html] (https://dustsreprap.blogspot.com/2015/06/better-way-to-install-sanguino-in.html)

The quick and dirty instructions are

  • Start up Arduino IDE
  • Open up the menu File > Preferences
  • Add the following to the "Additional Boards Manager URLs:
  • Click OK
  • Open the menu Tools > Board > Boards Mananger
  • Find or search for Sanguino
  • Click Install
  • Close the Board Mananger
  • You may need to restart the Arduino IDE

NOTE: You may need to make a change to a file before restarting the Arduino ISP. See below for the stk500_getsync() error.

Selecting the board

Once the Sanguino board is isntalled, Click on Tools > Board > and select "Sanguino" (should be at the bottom, might need to scroll down). Click on Tools > Processor and select "ATmega1284 or ATmega1284P (16MHz)" If the board is plugged in via USB, select the Port. Tools > Port.

Initial upload to the board

You will need to unlock or reflash the chip to unlock the board. This needs to be done with a seperate ISP programmer. You can make a custom one with another arduino chip (Aruidno as ISP). Or you can use a hardware programmer, such as a USBasp or AVRISP. The only caviot needed is it needs to support writing to large chips such as an ATMEGA.

Plug in the ISP programmer to the 6 pin ISP header (where the SD card plugs in. the top right pin is pin #1). Within the Arduino IDE, choose Tools > Programmer > and select your programmer. Plug in the ISP programmer and the LED for the 101hero board should come on. Click on Tools > Burn bootloader. Cross your fingers and pray.

If there are no errors, congratulations, you just erased your 101hero. Its broken peice of hardware...JK you will get to flash the firmware back on it in a minute!

From this point onward, you can unplug the ISP and plug the 101hero directly into your PC and program it using the Arduino IDE's upload function.

Reflashing the board

Download the correct Marlin version. As of 3/6/2017, this configuration is known to work for [Marlin 1.1.0rc8-BugFix] (https://github.com/MarlinFirmware/Marlin/tree/RCBugFix). Later on, this should just be any 1.1.x version. Copy the Configuration.h and Configuration_adv.h to the Marlin folder, and load Marlin.ino into the Arduino IDE.

Disconnect and close any software which may be using the serial interface (such as the printer control application you are using) except the Ardino IDE. Follow the information above on selecting the board. Choose the correct USB port.

Click Upload, and wait. If no errors, you should not have a new firmware on the board. If you have an LCD screen attached, you will also see it come to life with text.

I keep getting a stk500_getsync() error!

You may need to make a change to a file to fix this. DO NOT MAKE THIS CHANGE UNLESS YOU ARE GETTING THIS PROBLEM! In a windows 7/8/10 environment, this is under your AppData/Local path. You can open this by clicking on start and typing in %LOCALAPPDATA% followed by . This will open a window. From here, open the following folders: Arduino15 > Packages > Sanguino > hardware > avr > 1.0.2. Copy the "boards.txt" to a new file, such as "old_boards.txt". Edit boards.txt with a text editor which supports UNIX line breaks (VIM/gVIM/Notepad++/WordPad). Look for a line containing: sanguino.menu.cpu.atmega1284p.upload.speed and change the value from 115200 or 57600. Save the file, and restart the Arduino IDE. Try the upload again.

Making changes to the confiuration

Feel free to make changes to the configuration as suited for your needs. Most of the values came from either a stock delta configuration or the original 101Heros configuration, using an attached LCD screen.

I did have to guess on a few settings (below), which may need to be tweaked or changed.

Guessed Settings

#define TEMP_SENSOR_0 1
#define DELTA_DIAGONAL_ROD 142.5
#define DELTA_SMOOTH_ROD_OFFSET 115.0
#define DELTA_EFFECTOR_OFFSET 23.5
#define DELTA_CARRIAGE_OFFSET 15.0
#define DELTA_PRINTABLE_RADIUS 50.0
#define HOMING_FEEDRATE_Z  (15*60)

Printing

It should be noted that this firmware will NOT automatically print files named "101hero" on the SD card. If you do not have an LCD screen, you can instead use the filename "auto0.g". This file will work exactly the same as the "101hero" file.

Thanks

I would like to mention and thank all the people at user101.com for work on looking at and figuring out some variables for the marlin configuration. While I measured pretty close to the values they are using, I ended up using the values that workshoptinkerers listed. Granted I was using these settigns for my RAMPS 1.4 board, they moved over to the 101hero board with no issues. [This is the forum post that got me in the right direction] (http://101user.com/index.php/topic,126.0.html)

I would also like to thank Gábor Héja from the 101 Hero (Unofficial) facebook group. Without his help, I would not have been able to take the pin mappings he found and map them to the arduino pins. [I used this image for the conversion] (http://openhardware.ro/wp-content/uploads/ATmega1284_Arduino_Pinout.jpg)

The mappings he found, with my changes are as follows:

D21 - pc5 - x dir
D15 - pd7 - x step
D23 - pc7 - y dir
D22 - pc6 - y step
D2  - pb2 - z dir
D3  - pb3 - z step
D0  - pb0 - e dir
D1  - pb1 - e step
D24/A7 - pa7/adc7 - connector "E" // 100k Thermistor
D7  - pb7 - transistor gate for connector "G" // Extruder 0
D18 - pc2 - x end stop
D19 - pc3 - y end stop
D20 - pc4 - z end stop
D14 - PD6 - X,Y,E enable
D26/A5 - PA5 - Z enable

As a side note, it seems that something is weird with the mapping of Connectors E and G. When testing, these pins did NOT work as expected. However a standard pinout for the Sanguinolou 1.2 does in fact work.

And finally, I would like to thank the 101hero team for making this cheap 3D printer that enabled a large number of people to get togeather and hack the crap out of it to make it better!

Known Problems

  • If you cannot get your ISP to erase the 101hero board, double check your wiring and make sure it can support writig to an ATMEGA chip. TinyISP programmers to NOT work on ATMEGA chips!
  • When the printer is first booted, it may display garbled text on the screen. This might be a firmware issue. Simply click on the button and go back and it should now display correctly.
  • If using an LCD, the reset button nor does the beeper NOT work. This is a limitation from the Sanguinolou board.

Other

But I want to run a RAMPS board!

If using the stock steppers, heat core and the like, simply change your motherboard type!

#define MOTHERBOARD BOARD_RAMPS_14_EFB

Also you may need to make sure your stepper drivers are set within a good range. My drivers were ranging (stock from 101hero) between 0.84v to 0.97v. To check the voltage. Take a multimeter to any GND point and VERY CAREFULLY touch the metal screw terminal on near the stepper drivers with the POS lead. Make sure your multimeter is at the correct setting.

What ISP did you use?

A cheap USBasp programmer from Amazon. [Something like this should help] (https://www.amazon.com/USBasp-Programming-Quadcopter-Atomic-Market/dp/B00V42E8JC) I was also abot to get a AVRISP mkII working. [I used this one from amazon] (https://www.amazon.com/gp/product/B00C7VV6E4/). NOTE: you will need to install the libusb drivers for this in windows!. I was also able to get an Arduino as ISP working. The simplest way to wire this up is take a 6 pin heater from the Arduino UNO ISCP pins to the 101hero ISCP pins, but move ISCP pin 5 on the UNO side to PIn 10. (This is a decent image for the wiring)[https://i.stack.imgur.com/XQHMD.jpg]

About

Marlin 1.1.0rc8 Config files for the 101Hero

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%