Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.





Pages: [1]
Author Topic: Firmware uploaded ok, controller conected, no motor or servo movement
parshulea
Newbie
Posts: 4
Permalink
Post Firmware uploaded ok, controller conected, no motor or servo movement
on: November 11, 2017, 08:16
Quote

Hi there,
This is my configuration:
Arduino UNO, 2xA4988 drivers, 2xNEMA 17 200 st/rev, external power source for motors, SG90 servo.

I installed arduino code from here: https://github.com/euphy/polargraph_server_a1

I set #define SERIAL_STEPPER_DRIVERS in polargraph_server_a1 (and I commented the other options)
the motor pins are:
#define MOTOR_A_ENABLE_PIN 3
#define MOTOR_A_STEP_PIN 4
#define MOTOR_A_DIR_PIN 5
#define MOTOR_B_ENABLE_PIN 6
#define MOTOR_B_STEP_PIN 7
#define MOTOR_B_DIR_PIN 8

When I upload the code or I reset the uno board there is a short sound of steppers and a little move on servo. Also I verified steppers with a short arduino code to be sure that they are properly wired.

I cannot run the last version of the controller, it doesn't start, but I manage to run the polagraphcontroller from 1.7.25-1.7. The Uno is conected, and it seems receive comands from queue (the RX led is blinking).

The problem: the motors and servo not moving - I tried to move the pen, to lift it or todrop , etc. PLEASE, give me a hint!
Image

kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Re: Firmware uploaded ok, controller conected, no motor or servo movement
on: November 11, 2017, 22:06
Quote

Some things you didn't mention:

    - Editing the default.txt and uploading the machine spec
    - Clicking the HOME button
    - Clicking cntrl-c to open the console and seeing what's being communicated, including error messages (I'm bad with version numbers, but some versions of the controller have messages top right)
parshulea
Newbie
Posts: 4
Permalink
Post Re: Firmware uploaded ok, controller conected, no motor or servo movement
on: November 13, 2017, 16:50
Quote

When sending from queue, the java console look like:
Dispatching command: C31,600.0,END
Last command:C31,600.0,END:3221029769
regenerating preview queue.
incoming: READY
Dispatching command: C32,400.0,END
Last command:C32,400.0,END:149507342
regenerating preview queue.
incoming: READY
Dispatching command: C14,180,END
Last command:C14,180,END:3137006284
regenerating preview queue.
incoming: READY
Dispatching command: C13,90,END
Last command:C13,90,END:2914537854
regenerating preview queue.
incoming: READY
Dispatching command: C14,180,END
Last command:C14,180,END:3137006284
regenerating preview queue.
incoming: READY
Dispatching command: C13,90,END
Last command:C13,90,END:2914537854
regenerating preview queue.
incoming: READY
Dispatching command: C14,180,END
Last command:C14,180,END:3137006284
regenerating preview queue.
incoming: READY
...and so on,

I don't edit the default.txt (in my version default.properties.txt).
I thought there are the information sor calibration, for now I just wanna see some movements.

kongorilla
Pro
Posts: 362
Permalink
kongorilla
Post Re: Firmware uploaded ok, controller conected, no motor or servo movement
on: November 13, 2017, 19:10
Quote

What does it say when you send a new pen position? (not a lift or drop)

SomePolish-
Guy
Newbie
Posts: 9
Permalink
Post Re: Firmware uploaded ok, controller conected, no motor or servo movement
on: November 25, 2017, 20:15
Quote

what voltage and amperage are you providing?
Id suggest first checking your que is enabled and not paused, it is actually sending the commands from the list.

You could also try unplugging your enable/disable wires plugged into the motor drivers.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Firmware uploaded ok, controller conected, no motor or servo movement
on: November 26, 2017, 12:43
Quote

It looks from the log that the commands are being sent, and the lack of a meaningful response isn't unusual (when DEBUG_COMMS is enabled then commands cause a verbose reply, but otherwise you just get a "READY" when it's finished.).

So that _looks_ like it's going ok. Troubleshoot this by closing down the controller, and opening the serial monitor (57600 baud) in the Arduino IDE, and enter "C26,END" with line-endings checked. That is one of the few commands that expects a response, and you should see a report of the machine size back. If that doesn't happen, then your comms isn't working.

sn

parshulea
Newbie
Posts: 4
Permalink
Post Re: Firmware uploaded ok, controller conected, no motor or servo movement
on: November 28, 2017, 17:47
Quote

sorry for delayed answer...

Quote from kongorilla on November 13, 2017, 19:10
What does it say when you send a new pen position? (not a lift or drop)

the serial console looks like (move pen commands):
incoming: READY
Dispatching command: C01,3703,3123,END
Last command:C01,3703,3123,END:2551472703
regenerating preview queue.
incoming: READY
Dispatching command: C01,3174,2897,END
Last command:C01,3174,2897,END:2059131499
regenerating preview queue.
incoming: READY
Dispatching command: C01,2453,3475,END
Last command:C01,2453,3475,END:3472789180
regenerating preview queue.
incoming: READY

I guess the server receive the comands but do not convert the command in movements. I manage to use penlift_penUp and penlift_penDown in setup loop (, but pen up/down commands sent from polargraphcontr have no effect.

I can't test the stepper movement directly from server code - I don't know what commands do that (but i'm digging).

parshulea
Newbie
Posts: 4
Permalink
Post Re: Firmware uploaded ok, controller conected, no motor or servo movement
on: November 28, 2017, 17:52
Quote

Quote from SomePolishGuy on November 25, 2017, 20:15
what voltage and amperage are you providing?
Id suggest first checking your que is enabled and not paused, it is actually sending the commands from the list.

You could also try unplugging your enable/disable wires plugged into the motor drivers.

Of course queue is enabled, the commands are executed but no results
I don't think here is the problem. If I put signal on stepper step pin (hi/lo with some delay between) stepper is spinning.

sandy
Administrator
Posts: 1317
Permalink
sandy
Post Re: Firmware uploaded ok, controller conected, no motor or servo movement
on: November 28, 2017, 20:53
Quote

Did you try "C26,END" in the serial monitor in Arduino IDE?

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