You are not logged in.

#1 2019-01-15 13:50:09

serkanc
Member
Registered: 2019-01-15
Posts: 2

Change Trigger State of Endstop

Hi,

I'm using nanodlp shield v2.1 with a optical endstop switch. How can change triggered state of endstop? Now the endstop works inverted....
Thanks

Offline

#2 2019-01-16 22:12:53

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,546

Re: Change Trigger State of Endstop

You can change it using Default state on the machine settings page.

Offline

#3 2019-02-08 19:47:44

MrAntza
Member
Registered: 2019-02-07
Posts: 11

Re: Change Trigger State of Endstop

Shanin, can you tell more specified tip for this like with picture, because it seems pretty often problem, or is there already somekind of "usermanual" for setupping? smile

Offline

#4 2021-04-22 12:10:19

Oleksii
Member
From: Ukraine
Registered: 2020-08-10
Posts: 6
Website

Re: Change Trigger State of Endstop

The same problem with NanoDLP controller board.
My Z_min endstop triggered normally and open if I place an object in the lightbeam of the endstop.
So how can I make it to work opposite?

Offline

#5 2021-04-23 10:16:33

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,546

Re: Change Trigger State of Endstop

Offline

#6 2021-04-23 11:16:57

Oleksii
Member
From: Ukraine
Registered: 2020-08-10
Posts: 6
Website

Re: Change Trigger State of Endstop

Default NanoDLP controller board support NPN and not PNP, using PNP require firmware change.

Yes exactly it's all clear, but how to change NO to NC in the firmware?
How to change the line
Z_MIN_ENDSTOP_INVERTING = true

That's my question.

P.S. On CNC machines(Mach3) it's simple to invert. But I don't get how it work's here and why it's so complicated.

Last edited by Oleksii (2021-04-24 14:05:59)

Offline

#7 2021-04-26 17:17:14

matt3o
Member
Registered: 2021-04-02
Posts: 47

Re: Change Trigger State of Endstop

Oleksii wrote:

P.S. On CNC machines(Mach3) it's simple to invert. But I don't get how it work's here and why it's so complicated.

have you sorted it out? I'm on the same boat

Offline

#8 2021-04-27 06:17:35

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,546

Re: Change Trigger State of Endstop

I can provide hex file to flash it but to flash it you will need to both make sure driver being recognized on your os and use arduino tools or avrdude.

Offline

#9 2021-04-27 06:52:43

Oleksii
Member
From: Ukraine
Registered: 2020-08-10
Posts: 6
Website

Re: Change Trigger State of Endstop

Shahin wrote:

I can provide hex file to flash it but to flash it you will need to both make sure driver being recognized on your os and use arduino tools or avrdude.

This board with simple atmega 2560 so it's no problem to flash it.
But how it's possible to invert z_min in hex file?
As I understand that I need configuration.h file to adjust this or not?

Offline

#10 2021-04-27 06:55:50

matt3o
Member
Registered: 2021-04-02
Posts: 47

Re: Change Trigger State of Endstop

Oleksii wrote:
Shahin wrote:

I can provide hex file to flash it but to flash it you will need to both make sure driver being recognized on your os and use arduino tools or avrdude.

This board with simple atmega 2560 so it's no problem to flash it.
But how it's possible to invert z_min in hex file?
As I understand that I need configuration.h file to adjust this or not?

he is making the modification for you and sending the compiled hex file that you just need to flash. I find this process cumbersome, all we need is the source code. Marlin is under GNU GPL license, so he is actually required to release the code.

Offline

#11 2021-04-27 07:10:54

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,546

Re: Change Trigger State of Endstop

Marlin source code is intact you can use it, if you do not need help to compile it.

Offline

#12 2021-04-27 07:18:26

matt3o
Member
Registered: 2021-04-02
Posts: 47

Re: Change Trigger State of Endstop

can you share your configuration at least? and pin config I guess?

Offline

#13 2021-04-27 12:28:17

Oleksii
Member
From: Ukraine
Registered: 2020-08-10
Posts: 6
Website

Re: Change Trigger State of Endstop

matt3o wrote:

he is making the modification for you and sending the compiled hex file that you just need to flash. I find this process cumbersome, all we need is the source code. Marlin is under GNU GPL license, so he is actually required to release the code.

Okay! It's great to get hex file with inverted z_min. For now it's all I need to finish my printer.

Last edited by Oleksii (2021-04-29 12:12:25)

Offline

#14 2021-05-06 21:37:33

Oleksii
Member
From: Ukraine
Registered: 2020-08-10
Posts: 6
Website

Re: Change Trigger State of Endstop

And this thread is dead? No miracle ? hex file with inverted z_min, configuration.h file, pin config or something ?

Offline

#15 2021-05-07 05:37:11

matt3o
Member
Registered: 2021-04-02
Posts: 47

Re: Change Trigger State of Endstop

Oleksii wrote:

And this thread is dead? No miracle ? hex file with inverted z_min, configuration.h file, pin config or something ?

the board is basically a standard ramps with the D8 pin set to -1.

Offline

Board footer

Powered by FluxBB