You are not logged in.

#1 2018-09-03 18:39:53

HencoReyneke
Member
Registered: 2018-08-06
Posts: 8

Inverting Endstop Logic in code

Hi all

I am currently building a direct control 15.6" 4K LCD printer with dual z-axis stepper motors but I am total noob when it comes to raspberry and Nanodlp.

So far I have managed to get all the electronics working flawlessly including the Nextion screen. However I didn't do my research thoroughly and assumed that the endstops should trigger with a high signal as apposed to triggering when the signal to the GPIO pin falls to 0V.

The issue is that the endstops have already been built and I really don't want to make new PCB's to activate the endstops on a LOW feedback.

I have searched the forum and have found a number of requests for a "invert" checkbox in the setup and understand the reasoning behind not adding the functionality as it may add more confusion during troubleshooting.

That being said, if someone can point me to the repository/file that needs altering to invert the triggering of the endstops it would be highly appreciated and I will figure out the rest myself.

Any help will be greatly appreciated and thank you in advance.

Offline

#2 2018-09-04 04:40:18

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

Re: Inverting Endstop Logic in code

We have such an option on the recent builds.

Offline

#3 2018-09-04 21:04:33

HencoReyneke
Member
Registered: 2018-08-06
Posts: 8

Re: Inverting Endstop Logic in code

Thank you Shanin, much appreciated and it works like a charm.

Keep up the good work!!

Offline

#4 2018-09-06 04:12:08

i9n0r
Member
Registered: 2018-07-25
Posts: 8

Re: Inverting Endstop Logic in code

This option had in beta build.

Last edited by i9n0r (2018-09-06 04:12:21)

Offline

Board footer

Powered by FluxBB