1

Topic: Freelss motor not enabling.

Hey guys, I built a frankenstien piclop printing up parts and using bolts and all kings of things. I got it all together and working, kinda. For some reason the motor enable is not going high.
I have been thru everything I can think of and cant get it to go. I have read up on the wiringpi pinout and how it translates to the raspberry pi pin numbers.
I have the pin number in the setup for motor enable set to 0, which is IO17 on my pi breakout board. I have tested with both my logic probe and my DSO quad scope and the pin never goes high. I click on the camera button and then click on the rotate button, the step pin pulses like it should, but since the motor is not enabled it doesnt rotate.

I also tested by running GPIO to manually set the pins and that works to at least get the pin to go high.
sudo gpio mode 0 out
sudo gpio write 0 1
pin 0/IO17 goes high.

I also tried another free pin and it didnt work either tho I was able to make it go high with GPIO
Any idea what could be going wrong?

2

Re: Freelss motor not enabling.

Most likely you still have the wiringPi pin numbers mismatched with the Broadcom pin numbers.  Also, if you're using the A4988 or the DRV8834, then setting the pin to HIGH disables the motor and setting it to LOW enables it.  Lastly, double check what you have the SLEEP pin set to.

http://wiringpi.com/wp-content/uploads/2013/03/pins.pdf
https://www.pololu.com/product/2134
https://www.pololu.com/product/1182

- Uriah

3

Re: Freelss motor not enabling.

hairu526 wrote:

Most likely you still have the wiringPi pin numbers mismatched with the Broadcom pin numbers.  Also, if you're using the A4988 or the DRV8834, then setting the pin to HIGH disables the motor and setting it to LOW enables it.  Lastly, double check what you have the SLEEP pin set to.

http://wiringpi.com/wp-content/uploads/2013/03/pins.pdf
https://www.pololu.com/product/2134
https://www.pololu.com/product/1182

- Uriah

I dont believe I have the pin numbers wrong. I can say this because I corresponded the pins for the lasers on the PDF that you linked already. I see that the wiring pi pin 0 corresponds to 17, just like 5 is to 24 and 6 is to 25. I can press the button under the camera tab in freelss to test the lasers and they both work.
If I use gpio the pin 0 - 17 goes low or high depending on how I set it.

I dont see a SLEEP pin in the settings.

I just did the installation from your github I believe and the version is FreeLSS 1.11, I click the auto update button and it says there is new versions but I cant get since I dont have a serial. Is there a newer version than the one linked from http://www.freelss.org/ ?
As a note, I switched from a A4988 to a DRV8825 and that seemed to fix it weirdly enough.
Thanks for your time smile

4

Re: Freelss motor not enabling.

I do think that the stepper is just staying on all the time now tho since like you said the 8825 is low enable. I cant turn the shaft when its sitting there doing nothing and the stepper seems extra hot even with the current set to 0.5A

5

Re: Freelss motor not enabling.

ShreddinPB wrote:

I do think that the stepper is just staying on all the time now tho since like you said the 8825 is low enable. I cant turn the shaft when its sitting there doing nothing and the stepper seems extra hot even with the current set to 0.5A

Just tested and that is whats going on.
If I manually set pin 0 with gpio I can twist it.
sudo gpio mode 0 out
sudo gpio write 0 1
so the wiring is correct