Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Robotics Chat


Robotics Chat Specific to discussions about robots and the making of.

Reply
 
Thread Tools Display Modes
Old 16th September 2007, 12:03 PM   (permalink)
Red face Driving a stepper motor with LB1656m

Hi every one, has anyone tried to drive a stepper motor from a old 5.25" floppy disk drive? The reason why I chose this was because it has a stepper motor already wired up to the driver IC, which is LB1656M. Trouble is the data sheet for the IC from Sanyo hasn't got enough information. All I got is the timing diagram. I can only make the IC to drive the motor continuously or not rotating at all. I can't stop the motor once it's in motion, and I can't make it move to the number of steps I want. Has anyone tried this IC before? Please help.
Wingmax is offline   Reply With Quote
Old 16th September 2007, 01:04 PM   (permalink)
Default

Quote:
Originally Posted by Wingmax
Hi every one, has anyone tried to drive a stepper motor from a old 5.25" floppy disk drive? The reason why I chose this was because it has a stepper motor already wired up to the driver IC, which is LB1656M. Trouble is the data sheet for the IC from Sanyo hasn't got enough information. All I got is the timing diagram. I can only make the IC to drive the motor continuously or not rotating at all. I can't stop the motor once it's in motion, and I can't make it move to the number of steps I want. Has anyone tried this IC before? Please help.
Hi,
Can you post a diagram showing how you have connected and how you are driving the LB?
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now   Reply With Quote
Old 17th September 2007, 12:54 PM   (permalink)
Default Driving stepper motor with LB1656M

Hi Eric,
Thanks for replying. Please refer to attached pdf file for diagram for LB1656m.
The whole assembly is from an old 5.25" floppy disk drive. The motor, PCB with driver IC etc. I disconnected it's micro controller and connect a PIC16f84 in it.
I connected RB1 (from PIC) to D1, RB2 to D2 and RB3 to PS. The rest of wiring was untouched.
With reference to the timing chart, the programming code I wrote was:

RB3 = 0;
RB1 = 1;
RB2 = 0; delayMs(2); //Delay 2 mS

RB1 = 1;
RB2 = 1; delayMS(2);

RB1 = 0;
RB2 = 1; delayMs(2);

//Up to this point, I can hear the motor tries to spin and I
//can feel the shaft is vibrating, but nothing happens. If I continue

RB1 = 0;
RB2 = 0;

//Now the motor will continuously spinning. I can't stop it.


The delay time has to be more than 1 mS otherwise motor just won't turn.

Thanks for listening and please advise what I did wrong.

Attached Files
File Type: pdf LB1656M.pdf (53.2 KB, 7 views)
Wingmax is offline   Reply With Quote
Old 17th September 2007, 01:34 PM   (permalink)
Default

I would suggest throwing the controller chip away, and use four transistors to drive it - it's simple then to do what you want with it!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk

Last edited by Nigel Goodwin; 17th September 2007 at 01:38 PM.
Nigel Goodwin is offline   Reply With Quote
Old 17th September 2007, 01:45 PM   (permalink)
Default

hi,
I have looked thru the datasheet, from the simple description of the PORT signals I can see that you appear to be sending 2millsec signals in quadrature.

The data sheet says they should be 10KHz, but you say the motor will not run if you send faster than 2mSec.

I would use a scope and make sure that the drive signals are in quadrature and are of the form you are expecting.

Are you sure the old FDD is OK and not an earlier scrapped drive.

There are so many better ways to drive the motor,eg: H Bridge with possibly PWM from your PIC.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now   Reply With Quote
Old 17th September 2007, 01:49 PM   (permalink)
Default

Quote:
Originally Posted by ericgibbs
There are so many better ways to drive the motor,eg: H Bridge with possibly PWM from your PIC.
You don't need an H-Bridge for a uni-polar stepper, like I mentioned above you just need four transistors. Here's a board I built for my tutorials (haven't got round to writing it yet though!), I used it to feed old 5.25 inch floppy steppers.

http://www.winpicprog.co.uk/pic_tuto...pper_board.htm
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 17th September 2007, 02:03 PM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
You don't need an H-Bridge for a uni-polar stepper, like I mentioned above you just need four transistors. Here's a board I built for my tutorials (haven't got round to writing it yet though!), I used it to feed old 5.25 inch floppy steppers.

http://www.winpicprog.co.uk/pic_tuto...pper_board.htm
hi Nigel,
Thank you for the info, but I know, I am just trying convince the OP, as you are, there are better ways to get the job done..

I have got 1 or 2 old drives lying around, but I dont have much use for them, I don't do robots, thats where I see most of the members are using the old motors..I think?

I will look at your motor tutorial and perhaps write a driver, just for interest.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now   Reply With Quote
Old 17th September 2007, 03:14 PM   (permalink)
Default

Quote:
Originally Posted by ericgibbs
I will look at your motor tutorial and perhaps write a driver, just for interest.
There isn't a motor tutorial, I did the board, but never got round to writing the tutorial - the code I wrote towards it though used timer interrupts and two tables (one for forwards, one for reverse) to generate the steps. You simply set the direction and number of steps in registers, and the interrupt routine did the rest. It also implemented full or half stepping (using four tables).
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 17th September 2007, 04:30 PM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
There isn't a motor tutorial, I did the board, but never got round to writing the tutorial - the code I wrote towards it though used timer interrupts and two tables (one for forwards, one for reverse) to generate the steps. You simply set the direction and number of steps in registers, and the interrupt routine did the rest. It also implemented full or half stepping (using four tables).
hi,
Looked at the motor circuit drawing, as you say its just 4 transistors, very basic, BUT it gets the job done!

The program is straight forward, if I do knock up a program to suit, would you prefer the table/interrupt approach? ...... to keep it line with the rest of the tutorials.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now   Reply With Quote
Old 17th September 2007, 09:13 PM   (permalink)
Default

Quote:
Originally Posted by ericgibbs
hi,
Looked at the motor circuit drawing, as you say its just 4 transistors, very basic, BUT it gets the job done!
It's all that's needed, driving steppers is really VERY easy

Quote:

The program is straight forward, if I do knock up a program to suit, would you prefer the table/interrupt approach? ...... to keep it line with the rest of the tutorials.
My plans for the tutorial was to start with a simple 'MOVLW, MOVWF, Call Delay' program loop, with each MOVLW being a different step. Next I was going to move to a program loop and table for the steps, then an interrupt driven table method.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline   Reply With Quote
Old 18th September 2007, 04:27 AM   (permalink)
Default Stepper motor driver

Quote:
Originally Posted by Nigel Goodwin
You don't need an H-Bridge for a uni-polar stepper, like I mentioned above you just need four transistors. Here's a board I built for my tutorials (haven't got round to writing it yet though!), I used it to feed old 5.25 inch floppy steppers.

http://www.winpicprog.co.uk/pic_tuto...pper_board.htm

Hi Nigel,
Thanks for the suggestion. I've seen your motor driver circuit. It is very simple and effective. . The reason I used that old board was because everything is there. the motor, deck, PCB etc, but without enough information would make it 3 times harder. I will try your method. But with a known controller it's just as easy. At lease all the suppresion diodes are in place, and quite often you only need 3 control line to drive the motor, backward, forward, positions, speed.

Thanks for the advice anyway.

Regards,
Wingmax is offline   Reply With Quote
Old 18th September 2007, 04:38 AM   (permalink)
Thumbs up stepper motor driver

Hi Eric,
thanks for the suggestion.
I think I might forget this LB1656m and try Nigel's suggestion and a different controller, e.g L293D. This is a inexpensive IC and very easy to use.

Regards,

Wingmax is offline   Reply With Quote
Old 18th September 2007, 04:42 AM   (permalink)
Default stepper motor driver

Thanks Nigel for the circuit. It's very simple and effective. But with a known controller it should be just as easy. All the suppression diodes are there already, and quite often you only need about 3 control lines to drive the motor.

Wingmax is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Stepper Motor Driving Using PIC16F74 t_anjan Electronic Projects Design/Ideas/Reviews 0 31st January 2006 06:13 PM
EQ Driven Stepper Motors Q__Hybrid Electronic Projects Design/Ideas/Reviews 0 1st June 2005 02:00 AM
Stepper code for PIC raitl Micro Controllers 6 15th February 2005 01:44 PM
Need Help Driving Stepper Motor using MC3479p Driver Freak-A-Nature Electronic Projects Design/Ideas/Reviews 1 10th December 2004 01:44 AM
stepper motor jim bro Electronic Projects Design/Ideas/Reviews 0 26th May 2003 08:54 PM



All times are GMT. The time now is 08:52 AM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.