I recently purchased a unipolar stepper motor kit from elexp.com, part number 32STPKIT
Its driver is a UCN5804b and has a NE555.
I am trying to figure out how I can connect this to an Arduino Uno R3, any suggestions?
The datasheet to the 5804 driver translator
http://www.allegromicro.com/~/media/Files/Datasheets/UCN5804-Datasheet.ashx?la=en
Please post a link to the datasheet for your kit - especially for the stepper driver.
...R
Stepper Motor Basics
no true data sheet came with the kit. it came with a few sheets explaining what a stepper motor was and a brief explanation fr the wave, half step and full step. not much else. I assembled the kit according to the drawing. The motor spins and by adjusting the pot i can increase or decrease speed.
I would like to connect this to my controller and try to write the program so the motor moves specific degrees.
RBeersJr:
no true data sheet came with the kit. it came with a few sheets explaining what a stepper motor was and a brief explanation fr the wave, half step and full step. not much else. I assembled the kit according to the drawing. The motor spins and by adjusting the pot i can increase or decrease speed.
I would like to connect this to my controller and try to write the program so the motor moves specific degrees.
If you can't share the details with us we will remain in the situation where you know stuff and we don't.
I'm not sure what the answer is. Get a different kit ?
Have you used Google to try to find more information - try entering the part numbers printed on the pieces you have.
...R
Well okay, I scanned the instructions that came with the "kit", this is all I have had to go on, I did download a PDF on the 5804b http://www.datasheetarchive.com/dlmain/Datasheets-20/DSA-385061.pdf and the NE555 http://www.ti.com/lit/ds/symlink/ne555.pdf
I have been looking at other Drivers the Arduino uno connects to such as the 2003, and have come up with some guess of how to connect it for complete control. Ill try and draw it out and scan it post it a bit later.
alright I don't seem to be able to include the scan, ill try back in 10 minutes .
5804b stepper motor diver.pdf (627 KB)
Assuming you have a 6-wire stepper motor ...
There is a wiring diagram on page 5 of the UCN5804 datasheet. That's where I would start. The Arduino can provide the direction signal on Pin 14 and the step signal on Pin 11 of the UCN5804.
You also need to connect the Arduino 5v and GND.
This Simple Stepper Program should be suitable for testing.
...R
Robin2
Yes your are correct as the Drawing indicates a 6 wire unipolar motor PM version, 5804B pin 14 is direction with reference to ground, and pin 11 is the step in-put, from the NE555 pin 3.
The sketch you have written, it requires a push button connection to arduino pins 9, 10, 11 are the pushbuttons N.O. and connected from the Arduino GND to pin 10 for CW and pin 11 for CCW. and Pin 9 connects to 5804B pin 11
The Step in-put signal on 5804B Pin 11 from NE555 out-put pin3 is replace with arduino Pin 8 via the sketch:
void singleStep() {
if (curMillis - prevStepMillis >= millisBetweenSteps) {
prevStepMillis += millisBetweenSteps;
digitalWrite(stepPin, HIGH);
digitalWrite(stepPin, LOW);
this in would remove the NE555 circuit entirely?
RBeersJr:
this in would remove the NE555 circuit entirely?
Yes.
The sketch you have written, it requires a push button connection
I am not aware of any buttons in my Simple Stepper Program
If you are referring to some other code that I wrote please post a link to it.
If you are referring to your own code please post the latest version of it.
It would help if you make a pencil drawing showing the connections you are using (or plan to use) and post a photo of the drawing.
...R