aaronw_06
Posts: 2
Joined: Wed May 27, 2020 3:09 pm

DC Motor Driving

Wed May 27, 2020 3:16 pm

Hello All!
I am working on a project to assist in driving a linear guide rail using a DC stepper motor and from the research I have done I believe using a Raspberry Pi board would be the best route.
What I am trying to do (in a nutshell) is use a DC stepper motor (low RPM and Torque) to drive a linear rail until the rail reaches a NPN proximity sensor then reverse the motor. The NPN sensors I have are a TURK 4 wire 10-30vac and I will need to program the motor to run at a certain speed..I would like to utilize a battery pack(i assume a Lipo) to keep the entire drive mechanism in a portable case.
In all honesty I have no idea where to start from the computer board side as my background is more mechanical.
Any advise would be very helpful!
Thank you.

TheFireman
Posts: 21
Joined: Wed Apr 01, 2020 12:41 am

Re: DC Motor Driving

Thu May 28, 2020 4:35 pm

Ok , some links for your studying pleasure

A little pricey, Adafruit has this hat. The page also has a link for the PDF of the article, and software
(Adafruit has several hats/controllers for stepper, servo and DC motors)

https://www.adafruit.com/product/2348


two links to the ever-popular and inexpensive 28BYJ-48 stepper motor with ULN2003A Driver board combo,

http://www.scraptopower.co.uk/Raspberry ... spberry-pi

https://medium.com/@Keithweaver_/contro ... fbd482f886

(two years ago, I was buying these for 5/$10 shipped off eBay and Banggood/AliExpress.. prices have climbed since..)


a link on using the DRV8825 style of stepper driver
(also the TMCxxxx series of drivers)

https://www.youtube.com/watch?v=LUbhPKBL_IU

lots more can be found with Google search,
, such a simple setup can also be done with (gasp) an Arduino.

PiGraham
Posts: 3929
Joined: Fri Jun 07, 2013 12:37 pm
Location: Waterlooville

Re: DC Motor Driving

Thu May 28, 2020 5:00 pm

aaronw_06 wrote:
Wed May 27, 2020 3:16 pm

I am working on a project to assist in driving a linear guide rail using a DC stepper motor
Do you mean a unipolar stepper motor (e.g. 28BYJ-48) with five wires, one being the common centre point of all coils?

Most steppers are bipolar with H-bridge drivers creating alternating current in the coils.

Or do you mean "DC brushed motor"?

aaronw_06
Posts: 2
Joined: Wed May 27, 2020 3:09 pm

Re: DC Motor Driving

Thu May 28, 2020 7:51 pm

I apologize for that I am looking towards a stepper motors you shown below.

Do you think the NPN proximity sensors will be an issues to use?
PiGraham wrote:
aaronw_06 wrote:
Wed May 27, 2020 3:16 pm

I am working on a project to assist in driving a linear guide rail using a DC stepper motor
Do you mean a unipolar stepper motor (e.g. 28BYJ-48) with five wires, one being the common centre point of all coils?

Most steppers are bipolar with H-bridge drivers creating alternating current in the coils.

Or do you mean "DC brushed motor"?

pcmanbob
Posts: 9298
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: DC Motor Driving

Fri May 29, 2020 11:22 am

aaronw_06 wrote:
Thu May 28, 2020 7:51 pm
Do you think the NPN proximity sensors will be an issues to use?
There may be issues seeing as you say they operate from 10-30vac, you will not be able to connect such an output directly to the pi gpio it is 3.3V only.
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

Return to “Beginners”