Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Trouble with new polargraph
mskogly
Beginner
Posts: 26
Permalink
Post Trouble with new polargraph
on: September 4, 2016, 01:19
Quote

I bought another pair of stepper motors/drivers, the same used before,and duplicated the firmware (From master downloaded 15082016). The old version runs fine on a mega, but there seems to be something wrong with my pinmapping on the new versions, because all I get are cute beeeeeep booop sounds when trying to use the pen move function.

I have testet the steppers with this sketch, and they both run fine
https://codebender.cc/sketch:371879 with that code.

The settings in my configuration file is as follow (I am using the #define UNL2003_DRIVER option)

#define motorPin1 4 // Blue - 28BYJ48 pin 1
#define motorPin2 5 // Pink - 28BYJ48 pin 2
#define motorPin3 6 // Yellow - 28BYJ48 pin 3
#define motorPin4 7 // Orange - 28BYJ48 pin 4
// Red - 28BYJ48 pin 5 (VCC)

#define motorPin5 8 // Blue - 28BYJ48 pin 1
#define motorPin6 9 // Pink - 28BYJ48 pin 2
#define motorPin7 10 // Yellow - 28BYJ48 pin 3
#define motorPin8 11 // Orange - 28BYJ48 pin 4
// Red - 28BYJ48 pin 5 (VCC)

AccelStepper motorB(8, motorPin5, motorPin7, motorPin6, motorPin8);
AccelStepper motorA(8, motorPin1, motorPin3, motorPin2, motorPin4);

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Trouble with new polargraph
on: September 4, 2016, 11:29
Quote

Ok, you've got the same hardware, and you've duplicated the software. What do you think you've changed between the two setups?

mskogly
Beginner
Posts: 26
Permalink
Post Re: Trouble with new polargraph
on: September 4, 2016, 11:34
Quote

I switched from mega to uno, so The pins Are different, but as I said the pin setup works fine when running the codebender sketch.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Trouble with new polargraph
on: September 4, 2016, 12:08
Quote

Right, you didn't mention the switch from mega to uno, and it's potentially an critical difference.

I'd ask you, politely, to take a bit more care about making requests for help. Describe the situation, then ask a question. There is a good guide here https://en.wikipedia.org/wiki/Wikipedia:Reference_desk/How_to_ask_a_software_question about how to ask questions about software on forums. Your post as it stands, doesn't contain an actual question or a request, or a please. It's simply a statement of an experience, and I'm left to try and figure out whether you're having a problem, or whether this is just a journal describing your process. This is frustrating and demotivating.

I've never used the ULN2003 setup, so you're really on your own for that. But it was originally written for the UNO, so I believe it can work.
Off the top of my head, I remember that pin 9 is used for the pen lift servo, so either disable that feature, or use a different pin for your motor control.

sn

mskogly
Beginner
Posts: 26
Permalink
Post Re: Trouble with new polargraph
on: September 4, 2016, 18:58
Quote

I already changed the penlift pin
const byte PEN_HEIGHT_SERVO_PIN = 13; //UNL2003 driver uses pin 9

but I'll try commenting out penlift entirely.

And yes, you are correct in that my use of this forum is an attempt at trying to figure out how to solve this problem, by trying to find others who have worked with the uln2003 option. I am sorry if you find that annoying.

Pages: [1]
Mingle Forum by cartpauj
Version: 1.0.34 ; Page loaded in: 0.034 seconds.