CNC Router- PWM Servo not working with polarity change

Hi,

I have CNC Router with Sparkfun stepoko board and I have connected Servo motor(5v) with PWM pin and works fine. But yesterday I installed the limit switchs and enabled Homing too.

Initially not responded for homing But after changed polarity switch, works fine.

But unfortunately, my servo not responding now.

If I change the polarity, PWM Servo works fine but not Homing.

What to do...Reply from experts..

Are you using N/C or N/O connections as there is a difference and GRBL need to know about it.

Also HOMING needs to be ENABLED inside the GRBL firmware.

That can often be changed with the software you are using to control the CNC along with a couple more parameters.

Bob.
(not an exspurt)

Dear Friend,

Thanks for your reply. Yes, you are right I am using N/C or N/O limit switch ==> How to config in GRBL?

Yes, I enabled Homing inside GRBL firmware ($20=1, $21=1 and $22=1).

Please guide me to solve.

Sure, You are an expert for me.

Hi,

I have connected my all limit switches with NO

Dear Friend,

The problem got solved just changed the value of $5==1. Now both PWM and Homing working fine.

''Are you using N/C or N/O connections as there is a difference and GRBL need to know about it
'' ==> Helped me to solve it.

Thanks, Expert.

Glad you worked it out.
I am not an expert just another CNC user like yourself.

Bob.