Machsupport Forum

Third party software and hardware support forums. => SmoothStepper USB => Topic started by: SScnc on March 10, 2010, 11:12:11 AM

Title: Smooth Stepper Port2
Post by: SScnc on March 10, 2010, 11:12:11 AM
Hello, I'm using the SS and the C25 from cnc4pc.com

I can't seem to get any I/O's on port2. Is there somewhere you have to enable it?

Port1 works great. Port 2 is dead.

Thanks
Title: Re: Smooth Stepper Port2
Post by: Jeff_Birt on March 10, 2010, 04:34:48 PM
You have to set the direction of the Port2 pins in the SmoothStepper configuration window. Some BOBs will also not work with Pins 2-9 set as outputs.
Title: Re: Smooth Stepper Port2
Post by: SScnc on March 10, 2010, 05:30:58 PM
I do have them set 2-9 as inputs. Do i need pull up resistors?
Title: Re: Smooth Stepper Port2
Post by: Hood on March 10, 2010, 05:55:41 PM
Your BOB may not support that, think Jeff maybe got it mixed up as some BOBs wont support 2-9 as Inputs.
Hood

Edit, my mistake, just read another post by woffler and seems its the opposite way for the BOB he had, C25, same as you, seems port 2 on them are hard wired for inputs only..

Title: Re: Smooth Stepper Port2
Post by: SScnc on March 10, 2010, 07:07:16 PM
any ideas?
Title: Re: Smooth Stepper Port2
Post by: Hood on March 10, 2010, 07:24:45 PM
Should work fine as long as you have them enabled and assigned correctly in ports and pins.
If you want to attach your xml I will have a look and see if I can find a problem with it.
Hood
Title: Re: Smooth Stepper Port2
Post by: SScnc on March 10, 2010, 07:27:18 PM
Its on my laptop at work. I will post it tomorrow.
Title: Re: Smooth Stepper Port2
Post by: Hood on March 10, 2010, 07:29:01 PM
ok, no probs :)

Hood
Title: Re: Smooth Stepper Port2
Post by: SScnc on March 12, 2010, 09:28:19 AM
Ok sorry for the delay. I hooked up my switches to port 3 on the SS board and they work fine. Still nothing on the second port though.

XML is posted.

I have a new issue regarding my MPG.

My original setup was to run my A/B signals from the second port on the cnc4pc C25 BOB. Well as stated above I can't get any signals on port two. So I went to port one, which I know works, because this is where I have my servos connected and everything works fine. With the MPG hooked up on port one pins 11 and 12, all I get is a flicker every so often on the diagnostics page on the MPG1 DRO.

I'm using an external 5VDC power supply to power the MPG. So I thought maybe that was the issue. I then tried using 5V from the BOB to the + side on the MPG and ground terminal to the - side. Well this was even worse, no response at all.

I took my multimeter and checked the voltage at the back of the MPG and at the BOB and both read just over .8V

Something is screwy here and I can't seem to figure it out. Is it possible my MPG has gone bad?

~Scott
Title: Re: Smooth Stepper Port2
Post by: Hood on March 12, 2010, 05:51:07 PM
Dont see anything wrong in your xml, you have the ports enabled on Ports and Pins page which you dont need to do but it wont harm either way.
What I would do is try putting 5v from pin 26 on port 2 directly into pin 2 on the SS itself and see if the state changes on the SS Data monitoring page. You will have to make sure that you have the jumper set so pin 26 is 5v or you could just take the 5v from port 3.
 If it changes state direct on the SS then try again with the BOB connected and see.

Hood
Title: Re: Smooth Stepper Port2
Post by: SScnc on March 13, 2010, 01:29:25 PM
Before I decided I was going to disconnect the BOB, and try your idea, I hooked everything up on port3, and sure enough everything works flawlessly. I really think it's the BOB causing the issue. Everything that I need is working now, SO if the time comes where I need more inputs I will bite the bullet and try again.

I'm having some issues with noise on my MPG and switches causing false triggers, axis selecting/deselecting etc. The noise filter under the SS plugin has boxes to fill in values. I'm assuming this will solve my problem but I'm unsure what to put in the box as a value.

Can you dawn some light on this? The Smooth Stepper manual needs some serious revisions and more information.

~Scott
Title: Re: Smooth Stepper Port2
Post by: Jeff_Birt on March 13, 2010, 02:17:49 PM
Without an oscilloscope to 'see' the noise you have to guess and plug some filtering values in and then see what happens. The noise filter values are in microseconds so start with a value of 1000 and see how much that helps.
Title: Re: Smooth Stepper Port2
Post by: Hood on March 13, 2010, 06:14:51 PM
1.43 is the minimum in the SS filtering and you may well find that is enough for the MPG, it was for me so give it a go and see if not just keep increasing until you cure it but I would say if you have to go much over 30 or 40 you would be better finding the source of the noise and curing it rather than trying to mask it with filtering. Thats just my opinion though, others may think differently.
Hood