Code Monkey home page Code Monkey logo

grbl-servo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grbl-servo's Issues

Servo rotates randomly after first m03 command

Hello,

I very much likes this repo. because in my project I need 3 stepper motors (X/Y/Z) and 1 servo (I use an original MG90S).

It works very good, except 1 thing. After sending the first M03 command, the servo gets randomly a pulse (for some time) resulting in an up and down movement.

Why is this? and can I avoid this random pulse (after the first M03 command)

Thanks,
Roy

i cant use grbl controller

everytime i try to connect the grbl controller to my pc, there is a problem.This is the code:
Screenshot (31)
When i connect it, there is following message in the grbl controller commands:
Screenshot (32)
what should i do?

Servo motor Arduino

Hello every one I am new to Arduino and I am facing the following problem,
I have a problem with one of my servo motor (mg996R) it has the following Problems :
1- It is very shaky when I fix it to a certain angle for example if i tell it to go to angle 110 it will go there but it cant stand still
2- After a certain time around 10 to 20 second (not always fixed time it can be below or above) it neglects all orders and starts moving on its own trying to break it is limited movement . meaning that if the motor is set on 110 angle suddenly it will start spinning to reach 0 angle and keeps the spinning although it cant go beyond that ( even manually ) . Uploading a new Arduino code will not fix it nor cutting the power supply for the servos (it will start spinning once the power is back), it can only be fixed by cutting the supply for the servos then upload a new code to the Arduino.
I wish to know what is the cause if this issue because I cant find a solution to it any where ( and I did glue it to my intended part so simply changing it is quiet hard)

Laser diode instead of servo motor

I use the GRBL for unipolar stepper motors GRBL-28byj-48-Servo library, which uses your library (grbl-servo).

I replaced the servo motor with a laser diode, 5mW, this one.
But when the diode lights on (with M03 S255, or any number) it does not come off with M03 S1.
Or M05. It only dims.
With M03 S255 is bright and with M03 S1 it 's a little less bright. (not great difference but noticable)

So I have to modify the code to switch the diode on and off.
How can I do this?
As a switch I use a 2N2222A transistor.

Drawing 48 Degree Angle

Hi

I make AxiDraw clone, and using this grbl, everything is fine

I am using Grbl Controller 3.6.1, When i draw anything its drawing 48 degrees angel, in inkspace i have to rotate -48 degree

Can any one help me regarding this,

Thanks

Change state on M8/M9

I want to change the state on pin coolant.M8 low level, M9 high level.
Is it possible ?
Thanks..

Loss of stepper position

Hi.
I have mounted my drawing machine vertically on the wall. That means my Y-axis works against gravity. It works fine when drawing continously, but when the servo is used to change pen position, the Y-axis drifts downwards, as if the stepper motor looses its holding force. Can this be caused by your code somehow?

A simple g-code example would be great

So I figured the servo control
go to 0 degree >> M5
go to 30 degree >> M3 S30
go to 0 degree >> M5
go to 30 degree >> M3 S30

Now I've a very simple gcode I wanted to test.
What it is supposed to do is basically go to a point location,
drop the pen(servo to 0 degree) and lift up again (servo to 30 degree)
and go to another location and do the same.

so my gcode is ::

$X // unlock
$H // do a homing
G10 P0 L20 X0 Y0 Z0 // reset to zero

G21 G90 G40 // set some parameters
M3 S35 //lift up
T0 M6
G17 
G0 X-315.5683 Y-181.7437 // go to a location
M5 // drop down
M3 S35 // lift up 
G0 X-296.3772 Y-184.0367
M5
M3 S35
G0 X-283.3244 Y-186.2592
M5
M3 S35
G0 X-278.1033 Y-178.6392
M5
M3 S35
G0 X-268.1902 Y-176.9459
M5
M3 S35

But it just keep going to the locations
doesn't do anything with the servo except
the first time when it starts. It doesn't do the lift up and down actions ..
If I send it commands from terminal , it does so ..
What is the problem, were these commands sent to fast ?

update grbl-servo to v1.1

Hi robottini,
grbl has updated to v1.1
I am developing a subject using grbl and I need servo support, however some new features in grbl v1.1 are also necessary.
So do you have a plan to add servo support to grbl v1.1 or not?
If so, please notice me, maybe I can help you.

Problems with Servo

I connect the servo at D11 pin and I send the M05 and M03 Sxx command but the servo not rotate in the right degrees... And the servo gets very warm! I think I think this is a alimentation problem, can you give me some advice? Thanks Francesco. Sorry for my englis but im italian ^_^

Can not invert servo direction

Hi,
I need to invert servo direction but just uncomment #define RC_SERVO_INVERT makes no change. I also tried to modify spindle_control.c to invert direction by some another way but nothing works. Does anybody know what can be wrong?

Thanks.

Motor never stop

Hi, many thnx for your work, but i've got a problem... Motor start with M03 S128, but never stop... Any idea?

Best Regards,

Guillaume

Change from a Servo to a Induction coil.

Hi there, I have decided to change from a Servo to a Relay induction coil trough a driver i made with a transistor that just gets a signal and allows the current to pass to the coil. My issue now is that i am not very good with programming and i am having trouble changing the grbl code to make the PenZup and PenZdown activate the inductor.. Is the a way i can change the code to use a different pin that is not PWM
so i can just send a High and Low signal to the coil to be activated when needed? Thanks

PWM for servo too weak

Hi,
Controlling the stepper motors works fine but Im having troubles controlling the servo, so I decided to measure The PWM on D11 and it is too weak. Peak to peak value is only 0,2 volts and V max is only 0,4 volts(I attached the print screen). any Idea what might be wrong?
Thank you
image

hank you

servo motor move only once

It's been more than a month since this problem occurred. But I still haven't found a solution, so I'm asking for help here.
I purchased the xy-plotter from the aliexpress site.
When the command is given to the servo (m3 S40, m3 S90, etc.), it operates to the maximum angle and then there is no response. On YouTube, actions such as m3 S1000 and m5 work well, but my xy-plotter does not work with commands such as m3 S1000 and m5. However, arduino does not know what the problem is because the OK-sign appears every time you give a command.
I've seen some people who have problems like me while looking for solutions on Google or YouTube, but there's no solution to their posts, so I'm writing this myself. If you are aware of this problem or have solved it, please leave a comment. I will check the community whenever I have time.

If you have any other questions, I will answer them.

Below is the setting that I am using on YouTube.
$0=10 Step pulse, microseconds
$1=25 Step idle delay, milliseconds
$2=0 Step port invert, mask
$3=0 Direction port invert, mask
$4=0 Step enable invert, boolean
$5=0 Limit pins invert, boolean
$6=0 Probe pin invert, boolean
$10=3 Status report, mask
$11=0.010 Junction deviation, mm
$12=0.010 Arc tolerance, mm
$13=0 Report inches, boolean
$20=0 Soft limits, boolean
$21=0 Hard limits, boolean
$22=0 Homing cycle, boolean
$23=0 Homing dir invert, mask
$24=25.000 Homing feed, mm/min
$25=500.000 Homing seek, mm/min
$26=250 Homing debounce, milliseconds
$27=1.000 Homing pull-off, mm
$30=1000 Max spindle speed, RPM
$31=0 Min spindle speed, RPM
$32=0 Laser mode, boolean
$100=80.000 X steps/mm
$101=80.000 Y steps/mm
$102=80.000 Z steps/mm
$110=3000.000 X Max rate, mm/min
$111=3000.000 Y Max rate, mm/min
$112=3000.000 Z Max rate, mm/min
$120=3000.000 X Acceleration, mm/sec^2
$121=3000.000 Y Acceleration, mm/sec^2
$122=1000.000 Z Acceleration, mm/sec^2
$130=310.000 X Max travel, mm
$131=450.000 Y Max travel, mm
$132=200.000 Z Max travel, mm

Board and comands

Hello
1st congratulations for the project. I can see it will work very well for everything that I plan.
I have some questions about how to wire a servo motor to the board. I read a lot of articles but I not security in which pins I should plug. Can you send a picture or a map of how to do it?
Another question is how to change, in case, inkscape, to work z axis with M03 and M05 comands.
Sorry if the questions are kind obvious but is realy hard for me to understand this! haha
Thanks

Is G02 and G03 support ?

Hello All
my router ready and I use but G02 and G03 command not work no any move
I give invalid gcode ID:33 I use 3dpburner sender also picsender same error
best regards
Ahmet

Found issue between different servos

I noticed that using a 20kg servo would make the board disconnect from the gcode sender. I switched it to a sg90 toy servo(one of those typical plastic small ones) and it now will operate commands and gcode without turning off when shifting positions.

Cant get the servo to rotate on Ramps 1.4

Hello,

I have a RAMPS board which has the jumper on the 5V and VCC. I also plugged in the servo the right way.
I have a microservo from conrad and I cant get it to work on the controller.
It is plugged in on D11

Configuration on MEGA 2560

Hello!
I have an arduino Mega 2560, I would like to know the correct pin to control the servo. I am already able to control my machine´s stepper motors for X and Y axis but not my servo. I changed the CPU map to #define CPU_MAP_ATMEGA2560 in the config.h file and connected my steppers to pins 25,26,30 and 31, and the steppers worked fine, then, I tried to connect my servo to all the PWM pins in my Arduno but it doen't work. I will apreciate any help, Thank you!

Problema com servo CNC shield

bom dia, eu estou a utilizar o CNC shield para controlar um braço XYZ e queria adicionar um servo para garra do robô. Alguém sabe como e possível fazer?

Pc with 2 grbl versions

Hello, I'm trying to make needle cutter with special 0.9i grbl version work
when opening grbl controller, however, a 1.1 version appears
What could be the cause of this?
wr , Henk

Servo problem

Hello
Im havin a problem with the servo I connect the servo corectly (5v gnd and Z+ (D11)) but when i try to use it or when its used( M03 Sxx) the servo moves a little bit and then everything stops similiar to what happens when the limits are used
I have to disconnect the arduino and plug it in again to work.
It`s like the Z limit is triggered
Please help
I am using cnc shield v3.

Homing on corexy machines

I have made a drawing machine which is a corexy machine wih 2 axis and servo support
Having grbl 0.9i

I have setup limit switches and am pretty sure the hardware is perfect as hard limits are triggered on both x and y successfully

BUT when i run a homing cycle, both x and y start to move good, but then when one of the switches is triggered, the second axis doesn't move (or moves vert very slow) and does not home and makes a strong humming sound and homing fails

Note: if i deliberately press the switch while humming, there is no homing fail.
In short only one axis gets homed properly

Please can you provide me help with this matter as I've searched all over the internet but nothing worked

I can not use the grbl controller

I upload the codes correctly. But I can not send the G code because there is no connection the grbl controller (3.5.1) and arduino. How I can fix it. If I use another software to connect arduino for sending G code. Please help me Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.