1 (edited by GasmanR 2015-08-30 12:05:00)

Topic: SD2 Endstops not responding after updating firmware

Hi All

Desperate plea for help here.

I decided to add a cooling fan to the extruder of my venerable SD2 (Sanguinololu 1.3a ATMega644P) .

Following the instructions here and on Ian's blog  - https://solidoodletips.wordpress.com/20 … ruder-fan/  I reached the stage where I had to update the firmware to change the pins.h file so as to able to control the fan using Repeater host.

This is where the fun began, I soon worked out that no boot loader had been installed on my Mega - a little fiddling around with a spare Aduino Nano being used as an ISP and we had a boot loader onboard. Successfully updated the firmware using the firmware found here https://github.com/mlaws/solidoodle2-marlin.

Now however I am unable to set home in all three axis X,Y,Z. The M119 code shows the that the endstop switches are not registering as triggered when activated resulting in the print head motors and platform motor trying to advance beyond the endstop point. (and yes all the connections for the microswitches are intact and correctly connected)

I assume it simply a matter of changing a setting in the configuration or configuration adv files but where? I can  find segments of code defining endstops ( and the endstops are only defined for homing) but what changes need to be made?

I know this is a long shot but looking through this site reveals that others have had similar problems.

Can anyone help?

Chris

2

Re: SD2 Endstops not responding after updating firmware

Start by reflashing the firmware to this version.
https://github.com/ozadr1an/Solidoodle- … in_v1_beta

Printit Industries Model 8.10 fully enclosed CoreXY, Chamber heat
3-SD3's & a Workbench all fully enclosed, RH-Slic3r Win7pro, E3D V6, Volcano & Cyclops Hot End
SSR/500W AC Heated Glass Bed, Linear bearings on SS rods. Direct Drive Y-axis, BulldogXL
Thanks to all for your contributions

3

Re: SD2 Endstops not responding after updating firmware

Thanks for the reply.

I have uploaded the firmware from https://github.com/ozadr1an/Solidoodle- … in_v1_beta

However it has made no difference. The M119 comand still shows the endstop microswitch status as open - no matter whether the switch is activated or not. The home position is still unable to be set.

Does anyone else have any suggestions?

Chris

4

Re: SD2 Endstops not responding after updating firmware

That rules out it being on the firmware side of things.  That only leave the switches and connections, which is easy to troubleshoot.  The endstops tend to be opposite of what you'd think.  When the switch is depressed it is in the "open" position and read as "triggered".
I'd start with a continuity tester to verify that's what each switch is doing.  In other words, continuity when the switch is not depressed.

Printit Industries Model 8.10 fully enclosed CoreXY, Chamber heat
3-SD3's & a Workbench all fully enclosed, RH-Slic3r Win7pro, E3D V6, Volcano & Cyclops Hot End
SSR/500W AC Heated Glass Bed, Linear bearings on SS rods. Direct Drive Y-axis, BulldogXL
Thanks to all for your contributions

5

Re: SD2 Endstops not responding after updating firmware

Thanks again for the reply.

While I had my doubts that it was a physical problem with the switches ( after all 3 switches on 3 different circuits should not all fail simultaneously with the same fault) I never the less tested all switches. I can report that all switches are working perfectly. With the rocker arm open the switches are in the normally closed state upon the pressing the rocker the switches become open state.

Also there are no shorts on the board with connectors that the switches plug into.

The only conclusion I can reach is that this is a firmware error of some sort.

Could it be possible that I have uploaded the wrong bootloader to the AtMega644P which is then scrambling pin assignments ? One would assume that would not be possible have loaded the wrong bootloader but stranger things have happened.  As I understand it the bootloader is just a small segment of code that allows you to load the firmware which then runs the microprocessor. It is the firmware which allocates pin function and controls the output to the various inputs.

Would swapping out the 644 for a 128 (whatever...) make a difference?

Chris

6

Re: SD2 Endstops not responding after updating firmware

You are right, anything is possible but I doubt the bootloader is causing your problems.
I like to troubleshoot by eliminating the simple stuff first.  What I've learned about the Sang is one thing will mess with several.  So although it may seem redundant to double check things like switches.  It's a whole lot quicker and easier than switching a chip.
That being said what are you getting for temp readings and control? Is all that working properly?
I'm going to have to think on this one for a bit.

Printit Industries Model 8.10 fully enclosed CoreXY, Chamber heat
3-SD3's & a Workbench all fully enclosed, RH-Slic3r Win7pro, E3D V6, Volcano & Cyclops Hot End
SSR/500W AC Heated Glass Bed, Linear bearings on SS rods. Direct Drive Y-axis, BulldogXL
Thanks to all for your contributions

7

Re: SD2 Endstops not responding after updating firmware

Sorry to be such a pain !

I have tried controlling the print head manually through Repetier.

The print bed moves up and down correctly, the y axis moves correctly. The x axis only moves in one direction - i.e. always moves towards the right side of the frame no matter whether a positive or negative movement direction is selected.  Very strange !

Both the print head and the print bed heat up and maintain their temperature.  I have no way of externally verifying that the temperature is correct but the bed temp feels about right to my hand and the print head is obviously hot enough to melt filament.

While I enjoy tinkering this is driving me nuts - I might be in the market for a new printer sooner than I thought!

Chris

8

Re: SD2 Endstops not responding after updating firmware

The x axis endstop isn't working correctly if it'll only move one direction.

Printit Industries Model 8.10 fully enclosed CoreXY, Chamber heat
3-SD3's & a Workbench all fully enclosed, RH-Slic3r Win7pro, E3D V6, Volcano & Cyclops Hot End
SSR/500W AC Heated Glass Bed, Linear bearings on SS rods. Direct Drive Y-axis, BulldogXL
Thanks to all for your contributions

9

Re: SD2 Endstops not responding after updating firmware

^what he said...

Each axis needs to have a home position established to function properly.  At this point, what happens when you hit the "Home" button?

SD2 - Stock - Enclosure - Heated Bed - Glass Plate - Auto Fire Extinguisher
Ord Bot Hadron - RAMPS 1.4 - Bulldog XL - E3D v6 - 10" x 10" PCB Heated Build w/SSR - Glass Plate
Thanks for All of Your Help!

10

Re: SD2 Endstops not responding after updating firmware

IronMan wrote:

^what he said...

Each axis needs to have a home position established to function properly.  At this point, what happens when you hit the "Home" button?

As I said in the original post - the print head and print bed moves towards the home position but fails to respond to the endstop micro switches and grinds itself into the corner unless I hit the emergency stop on the Repetier print control panel.

This whole event seems to be some karmic reminder that perfection is the enemy of good - I was making prints good enough for my purposes but in the quest for perfection I decided to add the cooling fan.  Now the wheels have fallen off!

Has anyone tried this firmware ? http://blog.solidoodle.com/wp-content/u … -frame.zip

Chris

11

Re: SD2 Endstops not responding after updating firmware

That firmware seems to be set up for a PrinterBoard, not the Sang...

When you checked the switches, did you check at the terminal plugs where they plug into the board or at the switch itself?

SD2 - Stock - Enclosure - Heated Bed - Glass Plate - Auto Fire Extinguisher
Ord Bot Hadron - RAMPS 1.4 - Bulldog XL - E3D v6 - 10" x 10" PCB Heated Build w/SSR - Glass Plate
Thanks for All of Your Help!

12

Re: SD2 Endstops not responding after updating firmware

IronMan wrote:

That firmware seems to be set up for a PrinterBoard, not the Sang...

When you checked the switches, did you check at the terminal plugs where they plug into the board or at the switch itself?

13

Re: SD2 Endstops not responding after updating firmware

GasmanR wrote:
IronMan wrote:

That firmware seems to be set up for a PrinterBoard, not the Sang...

When you checked the switches, did you check at the terminal plugs where they plug into the board or at the switch itself?

Both.

The SD2 was fully functional until I soldered some new header pins onto the board to attach the fan (and yes I checked there are not solder crosslinks or dry joints) and upgraded the fimware.

While far more expensive the Cubicon 3DP-110F is looking more and more appealing. (and it's print quality is superb!)

Chris

14

Re: SD2 Endstops not responding after updating firmware

Sent you a PM...

SD2 - Stock - Enclosure - Heated Bed - Glass Plate - Auto Fire Extinguisher
Ord Bot Hadron - RAMPS 1.4 - Bulldog XL - E3D v6 - 10" x 10" PCB Heated Build w/SSR - Glass Plate
Thanks for All of Your Help!

15

Re: SD2 Endstops not responding after updating firmware

Ironman

Email sent as requested - thanks

Chris