Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Stepper motor driver

Status
Not open for further replies.
bananasiong said:
here is the circuit that i just tried! it works with very high torque. i can drive the stepper in 12V with 5V signal.

any npn can be used in this circuit, as long as they can drive up to 800mA.

make sure that this circuit and the microcontroller have the common ground, i mean the -ve port of microcontroller should be connected to the -ve terminal of the supply.


if u want to drive the stepper motor higher than 5V, don't connect the D5, D6, D7 and D8 to the +ve port of the microcontroller, connect them to the Vcc.


it really works!!

Just to confirm what stepper motor is this for?It looks like a unipolar one.
 
Hello every1..
This is my first post in this forum..I am so glad i have found u guys..

I am Doing this project and trying to drive a Stepper Motor (Sanyo Denki ) which has DC 1.2 A , 1.8 DEG..

Since its a group project, and i have decided to do the Stepper motor.. we will all connect our module to the I2C bus... and the micrcontroller im using is the P89LPC938.

I just dont know how to start this project!...What driver to use, what I2C buffers to use and its all so bad :(

Can some one please Tell me at least how to begin this project !! :(

Thnx
 
the stepper chips generally use SPI or a two wire step/direction control system. Unless you *want* unnecessary complexity, get one of the 2A chips from Allegro. If you insist on using I2C get an I/O chip to drive one of them.

Dan
 
Thnx

Does anyone know what frequency the I2C needs to be intefracing? I want to add an external crystal for the interface of I2C and the microcontroller.. i jus dono wat frequency the I2c intefraces at..

I have already read the data sheet for the I2C... Though there might be some1 here who knows it already..

thnx
 
No. I2C is a communications bus that clocks data around. I2C can generally be run from DC to 100kHz for almost all I2C devices. It's an 8bit data stream with address / data. Google Philips & I2C.
 
No. I2C is a communications bus that clocks data around. I2C can generally be run from DC to 100kHz for almost all I2C devices. It's an 8bit data stream with address / data. Google Philips & I2C.

Yea well..

I m using a microcontroller and a steper motor.. and am trying to run the steper motor using the driver and stuff..

But the I2c is used as communication bus to send the data around ( to both PC and the other parts ), as this is a group project, every one is using this I2c bus and i need to know the speed at which this I2C is interfacing..!!

:( i dono how else to explain it.
 
Well if you read through it then you should understand I2C. Your MCU may or may not have I2C hardware built in. Easy if it's built in, else you simply have to toggle the bits out. Consider the 100kHz the maximum speed...
 
In the most simple terms.

The I2C master drives the SCL line high and low as needed to generate clock pulses. This alone determines the frequency of the data transfer.

The I2C slave watches the SCL and SDA lines but does not expect any specific frequency. It just watches for bits as determined by SCL and SDA.

Multi-master have a synchronization procedure but so long as you stay away from such setup you can ignore. it.
 
Right ok..

U know about the pull up resistors Rp from the SDA lines to the Power Supply, VDD, What are the common values of Rp Resistors?

And do they only need to be placed from SDA lines or do they also need to be put on the SCL lines?
thnx
 
10K will work at normal speeds, else 4.7K

You can place a 10K at the beginning and another at the end of the data lines. That works quite well.
 
Last edited:
10K will work at normal speeds, else 4.7K

You can place a 10K at the beginning and another at the end of the data lines. That works quite well.

u mean placing 2 10K on the Data lines?

I had a look at the data sheet and some of the websites.. most of them put the one of the Data line.. but not all put one on the S clock line.

Thnx
 
here is the schematic..

If u could have a look at it quickly so that i can remove it, becauase ppl from my course might visit the same forum and copy it.. so cuz of the plagirizm thing i will take it off as soon as u guys inform me ..

Thnx
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top