How to wire PNP proximity sensor to the smoothie Zmin

2,691 views
Skip to first unread message

Patryk Bonzanini

unread,
May 28, 2015, 8:29:06 AM5/28/15
to smoothiewa...@googlegroups.com
hello,
I have recently tested fsr sensor that worked great but now i need to implement an inductive z probe as i'm printing on aluminium.

im having problems as the probe state remains O (if i invert the pin with ! symbol then the state change to 1 and nevere change on sensor triggering)
  • the sensor is connected to the main 12v
  • the sensor led lights up when triggered
  • i managed with two resistor to get out 5V of the signal cable when triggered (source of schematics https://www.youtube.com/watch?v=EcGFLwj0pnA )
  • no matter how i connect the GND and SIG of the sensor to the Z MIN the state does not change (with M119)
  • testet sensor output (NOT TROGGERED 0v / TRIGGERED 5v)
can someone please help me on this? im sure is something very small that i'm missing
many thanks!
PB

Ed Boston

unread,
May 28, 2015, 8:44:15 AM5/28/15
to smoothiewa...@googlegroups.com
You can run the sensor on the 12v and then feed the output line of the sensor into a mosfet.  For an example, look at the Z-Stop on the Printrboard (http://reprap.org/mediawiki/images/5/5d/F4_Schematic.png).  You need to enable the internal pull-up or install and external one.  Using this circuit, the output goes low when the sensor is triggered.
--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Patryk Bonzanini

unread,
May 28, 2015, 8:57:58 AM5/28/15
to smoothiewa...@googlegroups.com
thank you for fast answer!
im a beginner in electronics, can you explain me better how to made this pullup resistor to make the sensor working on zmin?
rgds

To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

Mark Cooper

unread,
May 28, 2015, 9:12:20 AM5/28/15
to smoothiewa...@googlegroups.com
your PNP sensor is not compatible with an endstop port because Smoothieboard's endstop ports have a built in pull-up. you will need to use a different gpio pin than the endstops. Extra gpio pins such as p1.22, p1.23, p1.30, or p1.31 should work.



To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

Edward Boston

unread,
May 28, 2015, 9:23:21 AM5/28/15
to smoothiewa...@googlegroups.com

If I remember correctly, you can enable the internal pull-up by putting a ^ after the pin assignment in the configuration file. But the basic idea is to connect a 4.7K resistor to +5 (or 3.3v - not sure of the voltage the smoothieboard logic runs at) on the pin going to the processor.

To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

Patryk Bonzanini

unread,
May 28, 2015, 9:28:11 AM5/28/15
to smoothiewa...@googlegroups.com
So i can connect the SIG cable from the sensor to pin 1.22 then change the config and it should work? 
what about the GND that is also connected to the 12V?



Il giorno giovedì 28 maggio 2015 15:12:20 UTC+2, Logxen ha scritto:
your PNP sensor is not compatible with an endstop port because Smoothieboard's endstop ports have a built in pull-up. you will need to use a different gpio pin than the endstops. Extra gpio pins such as p1.22, p1.23, p1.30, or p1.31 should work.


On Thu, May 28, 2015 at 5:57 AM, Patryk Bonzanini <patryk.b...@gmail.com> wrote:
thank you for fast answer!
im a beginner in electronics, can you explain me better how to made this pullup resistor to make the sensor working on zmin?
rgds

Il giorno giovedì 28 maggio 2015 14:44:15 UTC+2, Edward Boston ha scritto:
You can run the sensor on the 12v and then feed the output line of the sensor into a mosfet.  For an example, look at the Z-Stop on the Printrboard (http://reprap.org/mediawiki/images/5/5d/F4_Schematic.png).  You need to enable the internal pull-up or install and external one.  Using this circuit, the output goes low when the sensor is triggered.

On 5/28/2015 5:29 AM, Patryk Bonzanini wrote:
hello,
I have recently tested fsr sensor that worked great but now i need to implement an inductive z probe as i'm printing on aluminium.

im having problems as the probe state remains O (if i invert the pin with ! symbol then the state change to 1 and nevere change on sensor triggering)
  • the sensor is connected to the main 12v
  • the sensor led lights up when triggered
  • i managed with two resistor to get out 5V of the signal cable when triggered (source of schematics https://www.youtube.com/watch?v=EcGFLwj0pnA )
  • no matter how i connect the GND and SIG of the sensor to the Z MIN the state does not change (with M119)
  • testet sensor output (NOT TROGGERED 0v / TRIGGERED 5v)
can someone please help me on this? im sure is something very small that i'm missing
many thanks!
PB
--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

Edward Boston

unread,
May 28, 2015, 9:31:14 AM5/28/15
to smoothiewa...@googlegroups.com

If the output of your sensor is 12v, you cannot hook it directly to a pin. I don't have the smoothieboard schematics in front of me to know for sure though.

To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

Patryk Bonzanini

unread,
May 28, 2015, 9:52:39 AM5/28/15
to smoothiewa...@googlegroups.com
the sensor output is near 5v when triggered, measured with tester.
please take a look at my diagram, thats how Loxgen proposed (or how i understood) before trying and frying my smoothie i want to be sure im doing it right.:)

To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.
smoothie_wiring_diagram_QUESTION.png

Edward Boston

unread,
May 28, 2015, 10:04:04 AM5/28/15
to smoothiewa...@googlegroups.com

Voltage dividers are not the best solution for something like this.  Using a mosfet is a simple solution. The output of the sensor connects to the mosfet gate. Connect the mosfet source to ground. And the mosfet drain can be connected to the signal line. You should be able to use the z stop pins with no issue since the signal line already has the pull-up resistor.

To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

Patryk Bonzanini

unread,
May 28, 2015, 10:11:24 AM5/28/15
to smoothiewa...@googlegroups.com
you mean the mosfet on the board?

ill try to draw a schematic based on what i understand
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

Edward Boston

unread,
May 28, 2015, 10:23:12 AM5/28/15
to smoothiewa...@googlegroups.com

The mosfet you have to add. Instead of the two resistors, you use a mosfet. A 2N7000 type would work.

To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

Patryk Bonzanini

unread,
May 28, 2015, 10:24:41 AM5/28/15
to smoothiewa...@googlegroups.com
can you explain it more in details as i really cant visualize that, have to buy something else or my problem can be solved with just a correct wiring?
what mofset can I use? i know the boards have some used for hotends, beds and fan, i have one unused.
for the OUTPUT of the sensor you mean the SIGNAL (black cable)?
what is the mosfet drain? (the negative line i think)
now the sensor is wired direclty to the power supply, is that ok?
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

Mark Cooper

unread,
May 28, 2015, 11:01:22 AM5/28/15
to smoothiewa...@googlegroups.com
Edward: a pull-up will not work with his sensor and the endstops have a discrete pull-up resistor on the board. he cannot use an endstop without either removing said resistor or using an extra transistor to invert the signal.

Patryk: yes your drawing is correct. the voltage divider is a good solution for lowering the signal voltage in this sort of case ... but it's also not needed as the mcu has 5V tolerant gpio. I'd leave the in-line resistor there though just for safety.

To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

Patryk Bonzanini

unread,
May 28, 2015, 11:08:02 AM5/28/15
to smoothiewa...@googlegroups.com
after some thinking i figured out your solution, i ordered this mosfet right after your answer.
please take a look at the schematics, is that correct? where to connect the GND of the z min connector?

thanks again!!
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.
smoothie_wiring_diagram_QUESTION_MOSFET.png

Edward Boston

unread,
May 28, 2015, 11:08:13 AM5/28/15
to smoothiewa...@googlegroups.com

The pull-up does not go on the sensor. It goes on the drain of the mosfet and since there is already one on the board, it doesn't need to be added. The sensor goes on the gate of the mosfet.

Edward Boston

unread,
May 28, 2015, 11:11:50 AM5/28/15
to smoothiewa...@googlegroups.com

Get rid of the two resistors as they are not needed. Other than that, that should work. The mosfet acts as a switch, opening and closing a connection to ground. You may have to invert the pin in the configuration.  Not sure if a high or low voltage triggers the firmware.

To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

Patryk Bonzanini

unread,
May 28, 2015, 11:12:44 AM5/28/15
to smoothiewa...@googlegroups.com
you mean i can have this up and running without any new components? i know thats simple but cant figure it out as i dont have black magic skills :)
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

Patryk Bonzanini

unread,
May 28, 2015, 11:14:44 AM5/28/15
to smoothiewa...@googlegroups.com
ok, perfect !! I will try it.

last question: the GND connector of ZMIN has to be connected, if yes, where?
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

Edward Boston

unread,
May 28, 2015, 11:15:10 AM5/28/15
to smoothiewa...@googlegroups.com

The only new component is the mosfet.

To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

Edward Boston

unread,
May 28, 2015, 11:17:42 AM5/28/15
to smoothiewa...@googlegroups.com

It doesn't have to be if the ground on the power supply is connected to the ground on the board, which it should be. You can connect it to the source pin on the mosfet if you want.

To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

Patryk Bonzanini

unread,
May 28, 2015, 11:22:33 AM5/28/15
to smoothiewa...@googlegroups.com
great answer! now i have to wait the part to come :( but only one day of free time of work

any idea of household electronics where i can steal one? :D
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

Patryk Bonzanini

unread,
May 28, 2015, 11:34:12 AM5/28/15
to smoothiewa...@googlegroups.com
found this in my lab....can be used instead of 2N7000 mosfet ?
IMG_20150528_173117.jpg

Edward Boston

unread,
May 28, 2015, 1:09:19 PM5/28/15
to smoothiewa...@googlegroups.com

I have no idea. Not sure if those are power transistors, mosfets, or voltage regulators.

On May 28, 2015 8:34 AM, "Patryk Bonzanini" <patryk.b...@gmail.com> wrote:
found this in my lab....can be used instead of 2N7000 mosfet ?

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

Patryk Bonzanini

unread,
Jun 1, 2015, 8:52:32 AM6/1/15
to smoothiewa...@googlegroups.com
Hi Edward
today i tried soldering mosfet as my previous diagram but it not work.
can you help me to troubleshoot the problem?
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.
mosfet_troubleshooting.jpg

Patryk Bonzanini

unread,
Jun 1, 2015, 9:55:38 AM6/1/15
to smoothiewa...@googlegroups.com
the mosfet is working, testing for continuity drain and source are connected when sensor is triggered.
but
as soon as i connect the drain to z min the smoothie reads probe:1 (activated) if i invert the pins in the conf file then it reports inverted value but still doesn't change on sensor triggering
tried with also with source and gnd connected 

please help

Edward Boston

unread,
Jun 1, 2015, 10:06:32 AM6/1/15
to smoothiewa...@googlegroups.com

Make sure you have the correct pins on the mosfet. What device are you using?

To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

Edward Boston

unread,
Jun 1, 2015, 10:08:55 AM6/1/15
to smoothiewa...@googlegroups.com

Looking at your picture, if you used a 2N7000, you have source and drain reversed.

patryk Gmail

unread,
Jun 1, 2015, 10:10:32 AM6/1/15
to smoothiewa...@googlegroups.com
yes, its a 2N7000.
try to reverse right now
thank you!!!


Il 01/06/2015 16:08, Edward Boston ha scritto:

Looking at your picture, if you used a 2N7000, you have source and drain reversed.

--
You received this message because you are subscribed to a topic in the Google Groups "Smoothieware Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/smoothieware-support/Tce58r_zfTw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to smoothieware-sup...@googlegroups.com.

Patryk Bonzanini

unread,
Jun 1, 2015, 10:15:50 AM6/1/15
to smoothiewa...@googlegroups.com
You are right! now IT WORKS !!!!
thank you so much

regards
Patryk

Edward Boston

unread,
Jun 1, 2015, 10:17:45 AM6/1/15
to smoothiewa...@googlegroups.com

Glad I could help.

--

Patryk Bonzanini

unread,
Jun 22, 2015, 11:49:39 AM6/22/15
to smoothiewa...@googlegroups.com
Ciao Edward,
the probe is somehow broken, yesterday the led on the probe started blinking irregular. little bit after stopped working.
i upgraded my system from 12 to 24v but the mosfet and the probe can handle this.

1.the mosfet smell like fried electronics 
2. connecting directly the probe to the supply dont work.

probably the probe is gone but before ordering new one i want to understand if somewhere was my fault. as said before it worked very well for the last 3 weeks then...caput.


any opinion?
thank you
PB


Il giorno lunedì 1 giugno 2015 16:17:45 UTC+2, Edward Boston ha scritto:

Glad I could help.

On Jun 1, 2015 7:15 AM, "Patryk Bonzanini" <patryk.b...@gmail.com> wrote:
You are right! now IT WORKS !!!!
thank you so much

regards
Patryk





Il giorno lunedì 1 giugno 2015 16:08:55 UTC+2, Edward Boston ha scritto:

Looking at your picture, if you used a 2N7000, you have source and drain reversed.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

Ed Boston

unread,
Jun 23, 2015, 8:50:43 AM6/23/15
to smoothiewa...@googlegroups.com
Not really sure what would have happened since it was working for a while.  Sounds like too much voltage/current somewhere.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-sup...@googlegroups.com.

anselmo dominguez

unread,
Jun 26, 2015, 9:09:40 PM6/26/15
to smoothiewa...@googlegroups.com
For smoothieboard you need a npn sensor 

Mert G

unread,
Oct 27, 2015, 9:53:08 AM10/27/15
to Smoothieware Support
can anyone explain how to hook pnp or npn to smoothie? 

Mert G

unread,
Nov 1, 2015, 10:09:50 AM11/1/15
to Smoothieware Support
Is there anyone who knows how to hook a proximity sensor to smoothie!

Mark Cooper

unread,
Nov 1, 2015, 12:35:26 PM11/1/15
to smoothiewa...@googlegroups.com

The simplest way to wire a pnp sensor is to not use the endstops which have pull-up resistors on the pcb. Any of the free gpio pins with no built in function would work.

On Nov 1, 2015 7:09 AM, "Mert G" <mertgu...@gmail.com> wrote:
Is there anyone who knows how to hook a proximity sensor to smoothie!

Mert G

unread,
Nov 27, 2015, 2:56:41 PM11/27/15
to Smoothieware Support
What about non? Do anyone know how to wire it I tried to wire it directly to Z min signal nothing happened. Probably I have to add something additionally

Mert G

unread,
Nov 30, 2015, 1:06:43 PM11/30/15
to Smoothieware Support
Ok guys
I've attached Npn sensor Normally open version to smoothieboard. Simply I attached brown and blue to 12v power and Black cable to Zmin signal. Than edit config with changing Z min end stop to NO and reversing pin with ! (1.28^!) That's all. No additional components. And its working!!!!
As I don't know electronics that much I'm afraid if to blow off something on the board. Saying that regarding to several webpages NPN is safe to use as it is not managing power,it is just sending a signal to the controller. Do anyone know if this setup is OK to go? If you can give an answer it will be a good relief for me.

Triffid Hunter

unread,
Nov 30, 2015, 1:09:32 PM11/30/15
to smoothiewa...@googlegroups.com

Sounds fine to me.. NPN sensors connect signal to ground which is fine, PNP sensors connect signal to 12v which will blow up your endstop input

Mert G

unread,
Dec 1, 2015, 3:37:30 AM12/1/15
to Smoothieware Support
Thank you Trif! Top man!
I'm relieved. Everybody is scared of using proximity sensors but it seems that it is hell a lot easier than working a Standard endstop.

wolfmanjm

unread,
Dec 1, 2015, 4:35:49 AM12/1/15
to Smoothieware Support
except they are far less accurate than a microswitch. The repeatability sucks and they give different readings depending on where on the bed you probe. So using them as a zprobe to do autolevelling gives less than perfect results. They will work but not very well for that purpose.

Mert G

unread,
Dec 2, 2015, 3:26:31 AM12/2/15
to Smoothieware Support
Really? I didn't know that! Arghhh!
I was trying to get rid of going near to machine for each Zheight calibrating. That's why I thought proximity sensor would be ideal. And after seeing loads of people using them i was confident to use them :( anyway there has to be a better way
as we can't control a servo without having a complicated setup via smoothieboard I had to choose this way. I've seen a guy who uses a servo motor for Z min micro switch activation. But I think he used kind of additional controller. I'm curious if we can attach a small servo and command it to turn 90+/- with just sending a signal. If this is possible it would be the ideal way.

David Crocker

unread,
Dec 2, 2015, 4:11:47 AM12/2/15
to Smoothieware Support
Depending on what bed surface you use, my IR sensor may be a good alternative to your inductive sensor. I think you will also find that it's smaller and lighter.

wolfmanjm

unread,
Dec 2, 2015, 4:25:10 AM12/2/15
to Smoothieware Support
Why do you need a servo or even a permanent probe? Smoothie was designed to use a temporary probe, usually a simple microswitch clamped to the hotend, you probe then save thge results thn remove the probe. You don't have to do it again unless you change the bed or mess up something.

Mert G

unread,
Dec 3, 2015, 5:11:37 AM12/3/15
to Smoothieware Support
yeah i`m already doing like that. but i would like to give it a go. and i thought it was much better than removable one. 

Sean Gibney

unread,
Oct 22, 2016, 7:11:31 PM10/22/16
to Smoothieware Support
How would this diagram change if I had a NPN sensor instead of a PNP?


On Thursday, May 28, 2015 at 8:52:39 AM UTC-5, Patryk Bonzanini wrote:
the sensor output is near 5v when triggered, measured with tester.
please take a look at my diagram, thats how Loxgen proposed (or how i understood) before trying and frying my smoothie i want to be sure im doing it right.:)


Il giorno giovedì 28 maggio 2015 15:31:14 UTC+2, Edward Boston ha scritto:

If the output of your sensor is 12v, you cannot hook it directly to a pin. I don't have the smoothieboard schematics in front of me to know for sure though.

On May 28, 2015 6:28 AM, "Patryk Bonzanini" <patryk.b...@gmail.com> wrote:
So i can connect the SIG cable from the sensor to pin 1.22 then change the config and it should work? 
what about the GND that is also connected to the 12V?


Il giorno giovedì 28 maggio 2015 15:12:20 UTC+2, Logxen ha scritto:
your PNP sensor is not compatible with an endstop port because Smoothieboard's endstop ports have a built in pull-up. you will need to use a different gpio pin than the endstops. Extra gpio pins such as p1.22, p1.23, p1.30, or p1.31 should work.


On Thu, May 28, 2015 at 5:57 AM, Patryk Bonzanini <patryk.b...@gmail.com> wrote:
thank you for fast answer!
im a beginner in electronics, can you explain me better how to made this pullup resistor to make the sensor working on zmin?
rgds

Il giorno giovedì 28 maggio 2015 14:44:15 UTC+2, Edward Boston ha scritto:
You can run the sensor on the 12v and then feed the output line of the sensor into a mosfet.  For an example, look at the Z-Stop on the Printrboard (http://reprap.org/mediawiki/images/5/5d/F4_Schematic.png).  You need to enable the internal pull-up or install and external one.  Using this circuit, the output goes low when the sensor is triggered.

On 5/28/2015 5:29 AM, Patryk Bonzanini wrote:
hello,
I have recently tested fsr sensor that worked great but now i need to implement an inductive z probe as i'm printing on aluminium.

im having problems as the probe state remains O (if i invert the pin with ! symbol then the state change to 1 and nevere change on sensor triggering)
  • the sensor is connected to the main 12v
  • the sensor led lights up when triggered
  • i managed with two resistor to get out 5V of the signal cable when triggered (source of schematics https://www.youtube.com/watch?v=EcGFLwj0pnA )
  • no matter how i connect the GND and SIG of the sensor to the Z MIN the state does not change (with M119)
  • testet sensor output (NOT TROGGERED 0v / TRIGGERED 5v)
can someone please help me on this? im sure is something very small that i'm missing
many thanks!
PB
--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Smoothieware Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smoothieware-support+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages