gnea / grbl

An open source, embedded, high performance g-code-parser and CNC milling controller written in optimized C that will run on a straight Arduino
https://github.com/gnea/grbl/wiki
Other
4.04k stars 1.61k forks source link

Wiring optical endstop #1149

Closed ScottFal closed 2 years ago

ScottFal commented 2 years ago

when i wire up the optical endstop like the picture, it works the opposite as I would like, it gets detected with nothing blocking it, and isn't detected with something in the way, how would I go around changing it image

optical endstop used: https://www.amazon.co.uk/gp/product/B077X8XL56/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

langwadt commented 2 years ago

https://github.com/gnea/grbl/wiki/Grbl-v1.1-Configuration#5----limit-pins-invert-boolean