Ardiuno UNO and a4983 with regulator and stepper motor

Support for Pololu motor controllers/drivers and our motors and gearmotors.

Re: Ardiuno UNO and a4983 with regulator and stepper motor

Postby graphections » Wed Oct 05, 2011 1:32 pm

Thanks Ben - why do I feel like I am missing parts on my circut here, when I look at those examples?

I cant rewire based on those specs, as from what I read this should all work with what I have... ideas?
graphections
 
Posts: 44
Joined: Wed Sep 28, 2011 7:41 pm

Re: Ardiuno UNO and a4983 with regulator and stepper motor

Postby ryantm » Wed Oct 05, 2011 2:09 pm

I think Ben was mainly pointing you at the code that is attached to the first post of that thread. If you've soldered those header pins to the carrier, your connections should all be fine. The reason the wiring is different is because most people are using the version of the board without regulators on it.

Were you asking for an example of the code or of the soldering?

- Ryan
User avatar
ryantm
Pololu Employee
 
Posts: 1267
Joined: Mon May 19, 2008 1:00 pm
Location: Las Vegas, NV

Re: Ardiuno UNO and a4983 with regulator and stepper motor

Postby graphections » Wed Oct 05, 2011 3:05 pm

Hi again Ryan, I was asking for a sample of code to get the thing going so that I can make sure its all wired correctly.

A simple stepper sketch would be amazing please.
graphections
 
Posts: 44
Joined: Wed Sep 28, 2011 7:41 pm

Re: Ardiuno UNO and a4983 with regulator and stepper motor

Postby ryantm » Wed Oct 05, 2011 4:20 pm

The forum thread Ben linked to has an attachment called StepperTester.pdf that is a simple stepper sketch. You can modify it to work for you by removing the lines that refer to the enablePin and setting dirPin and stepPin to the pins that match your wiring.

- Ryan
User avatar
ryantm
Pololu Employee
 
Posts: 1267
Joined: Mon May 19, 2008 1:00 pm
Location: Las Vegas, NV

Re: Ardiuno UNO and a4983 with regulator and stepper motor

Postby graphections » Thu Oct 06, 2011 9:04 am

Ok Tried this - nothing...

Code: Select all Expand



Are we positive my connections on the board are correct?
Last edited by ryantm on Thu Oct 06, 2011 5:21 pm, edited 1 time in total.
Reason: added code tags around code for readability
graphections
 
Posts: 44
Joined: Wed Sep 28, 2011 7:41 pm

Re: Ardiuno UNO and a4983 with regulator and stepper motor

Postby Ben » Thu Oct 06, 2011 10:58 am

Have you soldered your the header pins to the stepper driver board yet? There is no reason to expect anything to work with unsoldered pins, so it's not worth trying to help you debug your system while there is still such a glaring problem. By the way, there really isn't any down side to soldering first (soldering header pins does not commit you to any particular connections).

- Ben
User avatar
Ben
Pololu Employee
 
Posts: 3442
Joined: Mon Aug 28, 2006 1:05 pm
Location: Las Vegas, NV

Re: Ardiuno UNO and a4983 with regulator and stepper motor

Postby graphections » Thu Oct 06, 2011 11:05 am

Point well taken Ben.

So please excuse my lack of knowledge here

The header pins are the strips of pins encased in plastic correct?
And do I only use/solder the amount of header pins that are being used on the chip?
2 on the bottom left and 8 on the right?

Or shold I just solder them all, incase I need to use more pins later?

Please advise, thanks.
graphections
 
Posts: 44
Joined: Wed Sep 28, 2011 7:41 pm

Re: Ardiuno UNO and a4983 with regulator and stepper motor

Postby Ben » Thu Oct 06, 2011 11:26 am

Yes, the header pins look like this:

Image

The short sides of the pins protrude through the through-holes on the board (like in the picture you posted earlier) and should be soldered to the surrounding pads on the top side of the PCB if you want to be able to plug it into a breadboard. If you do not have much soldering experience, I strongly suggest you find a tutorial on soldering and familiarize yourself with it before you start so you know how to apply the solder, how much solder to add, what a good solder joint looks like, etc. Otherwise, you might damage the board or create bad solder joints that don't make adequate electrical connections.

Specifically, you should at least solder the places circled in the picture below:

graphections.jpg
graphections.jpg (70.11 KiB) Viewed 8051 times


I recommend you solder header pins in all the holes while you're at it, but this isn't absolutely necessary. The crucial part is soldering the pins you are using to the board. If you solder all the pins, it makes it easier to make alternate connections later (i.e. you won't have to go looking for soldering iron again).

Also, this might sound obvious, but just in case it isn't: you should not solder the board while power is being applied. In general, make sure you are really paranoid about applying power with incorrect connections as putting the wrong voltages on pins or shorting outputs together can permanently destroy electronics.

- Ben
User avatar
Ben
Pololu Employee
 
Posts: 3442
Joined: Mon Aug 28, 2006 1:05 pm
Location: Las Vegas, NV

Re: Ardiuno UNO and a4983 with regulator and stepper motor

Postby graphections » Thu Oct 06, 2011 11:57 am

Ben this is exactly the information i was looking for - thanks so much!

I'll get soldering tonight after ive had a bunch of beer and put my tinfoil gloves on ;) Jokes

I am super paranoid about messing this up, hence all my questions.

Thanks again.
Ill get on this either tonight or tomorrow and get back to you.
graphections
 
Posts: 44
Joined: Wed Sep 28, 2011 7:41 pm

Re: Ardiuno UNO and a4983 with regulator and stepper motor

Postby graphections » Mon Oct 17, 2011 1:19 pm

Ok guys, working so-so here

The Stepper Motor, rotates about a1/4 the way around > pauses for 1 second > repeats

Variation i just did was to comment out the delay, and set the speed to (1)

Next step (no pun) How would I wire and code the Potentiometer?

With following Sketch

Code: Select all Expand
Last edited by ryantm on Mon Oct 17, 2011 1:35 pm, edited 1 time in total.
Reason: added code tags for readability
graphections
 
Posts: 44
Joined: Wed Sep 28, 2011 7:41 pm

Re: Ardiuno UNO and a4983 with regulator and stepper motor

Postby ryantm » Mon Oct 17, 2011 1:51 pm

It looks like you are still using the stepper library that I mentioned has little chance of working. Can you confirm that this is the stepper library you are using? http://www.arduino.cc/en/Tutorial/Stepper I looked at the code for this stepper library and confirmed that it will not work with our driver.

For the potentiometer, you would connect two ends of the pot between 5V and GND of your Arduino and then connect the wiper to one of the Arduino's analog inputs. Then you can use analogRead to read the wiper voltage. Feel free to post your circuit before you power it.

- Ryan
User avatar
ryantm
Pololu Employee
 
Posts: 1267
Joined: Mon May 19, 2008 1:00 pm
Location: Las Vegas, NV

Re: Ardiuno UNO and a4983 with regulator and stepper motor

Postby graphections » Mon Oct 17, 2011 1:57 pm

Hi there, yes that is the Stepper Library I am using.

So are you saying that, with that library, the POT wont work? Currently with that library installed I am able to control the Steps and RPM of the motor.
Should I comment that include line out?
graphections
 
Posts: 44
Joined: Wed Sep 28, 2011 7:41 pm

Re: Ardiuno UNO and a4983 with regulator and stepper motor

Postby graphections » Mon Oct 17, 2011 2:07 pm

Here is my illustration for the POT wiring - will it be ok to run the wire from the POT to the same 5V pin on the Arduino as the Driver board?
I dont see anywhere else to ruin it too
graphections
 
Posts: 44
Joined: Wed Sep 28, 2011 7:41 pm

Re: Ardiuno UNO and a4983 with regulator and stepper motor

Postby graphections » Mon Oct 17, 2011 2:34 pm

I just noticed that my Stepper Motor was extremely HOT to the touch

I am using a 12v 3.6Ah/C20 Lead Acid battery

I then plugged in a regular off the shelf 9v battery, ran the sketch and the Motor gave off a high pitched squeal - but still ran fine.

Should I be concerned with this?

The motor I am using is
Stepper Motor: Unipolar/Bipolar, 200 Steps/Rev, 42x48mm, 4V, 1200mA
graphections
 
Posts: 44
Joined: Wed Sep 28, 2011 7:41 pm

Re: Ardiuno UNO and a4983 with regulator and stepper motor

Postby graphections » Mon Oct 17, 2011 3:12 pm

Here is a zoomed area of the POT wired to the Breadboard for your review.
graphections
 
Posts: 44
Joined: Wed Sep 28, 2011 7:41 pm

PreviousNext

Return to Pololu Motor Controllers/Drivers and Motors

Who is online

Users browsing this forum: Bing [Bot] and 6 guests