Cd rom motor not working with GRBL

Discussion about the arduino based g-code interpreter, grbl
Post Reply
3ddd
Posts: 3
Joined: Mon Jan 16, 2017 2:59 am

Cd rom motor not working with GRBL

Post by 3ddd » Mon Jan 16, 2017 8:37 pm

Hi everyone,

I have a small problem using a cd rom motor for a project and was wondering if it is something one of you guys could maybe help.

I've been trying to control the motor using Universal G-code Sender and GRBL Controller but the motor doesn't move, when I press on any of the commands I see a light blink on the Arduino but nothing else happens.

I can move the motor using the Arduino IDE.

Here is what I am using and the settings:

-flashing arduino with GRBL 0.9 at 115200 baud
-baud rate on UGS is 115200
-motor driver is a EasyDriver

Any help would be greatly appreciated.

Schruminator
Posts: 259
Joined: Wed Oct 30, 2013 1:04 pm
Location: Littleton, CO
Contact:

Re: Cd rom motor not working with GRBL

Post by Schruminator » Tue Jan 17, 2017 3:19 pm

*Deleted* I didn't see your note about the Easy Driver. My bad.
Last edited by Schruminator on Tue Jan 17, 2017 4:45 pm, edited 1 time in total.
1.8m x 1.0m SO2 #3638 / Vectric Aspire / ACME Z-axis / View my photography at http://www.mschrum.com

cozmicray
Posts: 115
Joined: Mon Feb 03, 2014 10:13 pm

Re: Cd rom motor not working with GRBL

Post by cozmicray » Tue Jan 17, 2017 4:41 pm

show us your wiring.
What flavor or arduino?

The easy driver should supply voltage to motor
What is the power supply to the easy driver.

GRBL basicly a G-code converter
but GRBL has to know how to setup and command the motor driver.

Have you set up GRBL to use Easy driver on correct pins on Arduino

:?:

3ddd
Posts: 3
Joined: Mon Jan 16, 2017 2:59 am

Re: Cd rom motor not working with GRBL

Post by 3ddd » Tue Jan 17, 2017 5:39 pm

Hi cozmicray,

Thank you for your reply. Attached are pictures of the wiring.

I am using a Arduino Uno R3. The power supplied to the Easy Driver (which is not shown in the picture) are 4 AA batteries connected in series, so the voltage going to the easy driver is 6v.

Yellow wire is connected on 8 on Arduino
Green wire is connected on 9 on Arduino

I am not sure if I have set up GRBL to use Easy Driver on the correct pins on Arduino
Attachments
IMG_9982.JPG
IMG_9982.JPG (196.08 KiB) Viewed 719 times
IMG_9983.JPG
IMG_9983.JPG (457.1 KiB) Viewed 719 times
Universal Gcode Sender.jpg
Universal Gcode Sender.jpg (244.01 KiB) Viewed 719 times

cozmicray
Posts: 115
Joined: Mon Feb 03, 2014 10:13 pm

Re: Cd rom motor not working with GRBL

Post by cozmicray » Wed Jan 18, 2017 8:09 pm

see
https://github.com/grbl/grbl/wiki/Connecting-Grbl

for wiring

Wrong pins on arduino?

X Axis pins 2, 5, gnd

:?:

3ddd
Posts: 3
Joined: Mon Jan 16, 2017 2:59 am

Re: Cd rom motor not working with GRBL

Post by 3ddd » Wed Jan 18, 2017 11:48 pm

It works ! Thank you so much. Now the steps aren't smooth at all, I can hear all the steps and feel all the steps it performs even in micro steps, what do you think might be the problem ?

It feels like it does a couple of steps instead of the value I input UGS. I tried the values of 157 steps/mm and 53.333 steps/mm and there is no difference in terms of smoothness.

cozmicray
Posts: 115
Joined: Mon Feb 03, 2014 10:13 pm

Re: Cd rom motor not working with GRBL

Post by cozmicray » Thu Jan 19, 2017 5:47 pm

You have to get some info on the stepper motor and what signals
are best.

Change the parameters

step pulse
step delay
acceleration

full, half, quarter, eighth step

take notes --- what parameters smooth out the motor

:?:

Post Reply