Inductive sensor aways OPEN April 14, 2015 05:33AM |
Registered: 9 years ago Posts: 51 |
Re: Inductive sensor aways OPEN April 14, 2015 08:43AM |
Registered: 10 years ago Posts: 869 |
Re: Inductive sensor aways OPEN April 14, 2015 09:26AM |
Registered: 9 years ago Posts: 51 |
Re: Inductive sensor aways OPEN April 14, 2015 11:24AM |
Registered: 10 years ago Posts: 1,401 |
Re: Inductive sensor aways OPEN April 14, 2015 11:27AM |
Registered: 9 years ago Posts: 51 |
Re: Inductive sensor aways OPEN April 14, 2015 11:36AM |
Registered: 10 years ago Posts: 1,401 |
Re: Inductive sensor aways OPEN April 14, 2015 11:40AM |
Registered: 9 years ago Posts: 51 |
Re: Inductive sensor aways OPEN April 14, 2015 12:08PM |
Registered: 9 years ago Posts: 51 |
Re: Inductive sensor aways OPEN April 14, 2015 12:17PM |
Registered: 9 years ago Posts: 51 |
Re: Inductive sensor aways OPEN April 14, 2015 12:28PM |
Registered: 10 years ago Posts: 1,401 |
Re: Inductive sensor aways OPEN April 14, 2015 12:32PM |
Registered: 10 years ago Posts: 869 |
Re: Inductive sensor aways OPEN April 14, 2015 12:40PM |
Registered: 10 years ago Posts: 1,401 |
Re: Inductive sensor aways OPEN April 14, 2015 12:41PM |
Registered: 9 years ago Posts: 51 |
Quote
ggherbaz
That's why I don't use resistors, they are less than accurate, I use a 5 volts regulator (LM7805) to secure a 5 volts signal. If you didn't fry the board you are still ok.
For testing, untill you get it working will be best to use the 5 volts from ramps endstop pins.
Brown to pin 3 or +, blue to pin 2 or - and black to pin 1 or signal. Remove the pullup resistor for Z min in the firmware and test. If doesn't work that way, you might have to change it to an NPN sensor.
Re: Inductive sensor aways OPEN April 14, 2015 12:43PM |
Registered: 9 years ago Posts: 51 |
Quote
cdru
Did you ever have the sensor output connected directly to the endstop sense pin without a voltage divider? A 12V fed PNP sensor will output nearly 12V and would fried that pin as it's only ~5V safe. Your 100k and 150k resistors create a voltage divider dropping the voltage to ~4.8 volts, if you have them located in the correct spot. Post a picture of your divider.
Since you have a RAMPS board, if you did fry one of the endstops, you have 2 more you can use. Switch the Z axis with one of the (most likely) unused X or Y endstops. Just swap the pin numbers in the pins.h file if indeed the pin is bad (you can test by shorting S to ground and checking the endstop status using M119.
Re: Inductive sensor aways OPEN April 14, 2015 12:57PM |
Registered: 9 years ago Posts: 51 |
Re: Inductive sensor aways OPEN April 14, 2015 01:08PM |
Registered: 9 years ago Posts: 51 |
Re: Inductive sensor aways OPEN April 14, 2015 02:00PM |
Registered: 10 years ago Posts: 869 |
Re: Inductive sensor aways OPEN April 14, 2015 02:05PM |
Registered: 9 years ago Posts: 51 |
Re: Inductive sensor aways OPEN April 14, 2015 02:07PM |
Registered: 9 years ago Posts: 51 |
Re: Inductive sensor aways OPEN April 14, 2015 02:20PM |
Registered: 10 years ago Posts: 869 |
Re: Inductive sensor aways OPEN April 14, 2015 02:22PM |
Registered: 9 years ago Posts: 51 |
Re: Inductive sensor aways OPEN April 14, 2015 02:26PM |
Registered: 10 years ago Posts: 869 |
Way higher for what? Anything over about 3V is considered high by the microcontroller. Even if the supply voltage monetarily dropped down a few volts it still would be high enough to be considered high. Sure with a higher precision resistor you could get a bit closer. But it's not that necessary when close enough will do.Quote
ggherbaz
That is true as long as he used gold banded resistors, if silver, that 4.8 could be way higher.
Why do you think that it can't work with a PNP sensor? The 150k Ohm resistor very weakly pulls down the pin to low. When the sensor is triggered, it causes the pin to go high. Low. High. That's what an input pin is designed to detect. Now depending on if the sensor is NC or NO will change whether the logic should be inverted. You'd want to disable the pullup resistor though for a PNP sensor.Quote
The main problem is that I don't think the mega can work with PNP sensors, if it does something needs to be change it in the firmware.
Re: Inductive sensor aways OPEN April 14, 2015 03:08PM |
Registered: 9 years ago Posts: 51 |
Re: Inductive sensor aways OPEN April 15, 2015 07:38AM |
Registered: 9 years ago Posts: 51 |
Re: Inductive sensor aways OPEN April 15, 2015 09:55AM |
Registered: 10 years ago Posts: 869 |
Re: Inductive sensor aways OPEN April 15, 2015 10:04AM |
Registered: 9 years ago Posts: 51 |
Re: Inductive sensor aways OPEN April 15, 2015 10:47AM |
Registered: 10 years ago Posts: 1,401 |
Re: Inductive sensor aways OPEN April 15, 2015 10:50AM |
Registered: 9 years ago Posts: 51 |
Re: Inductive sensor aways OPEN April 15, 2015 10:53AM |
Registered: 9 years ago Posts: 51 |
Re: Inductive sensor aways OPEN April 15, 2015 11:31AM |
Registered: 10 years ago Posts: 1,401 |