Can not talk to grbl firmware

692 views
Skip to first unread message

Jungle

unread,
Dec 11, 2015, 4:30:19 AM12/11/15
to Cyclone PCB Factory
Hi everyone,
I use recommended firmware GRBL for Mega2560 with RAMPS 1.4, I used both of bCNC and Universal Gcode sender, I send some control signal on axis and used oscilloscope to monitor but I cannot see anything. I doubt about pinout config on GRBL firmware. (I used firmware from here https://github.com/carlosgs/grblForCyclone without changing anything).
Please help to solve my problem.
Thank you!

Carlos García

unread,
Dec 11, 2015, 5:43:55 AM12/11/15
to cyclone-p...@googlegroups.com
Hi Jungle, can you flash the pre-compiled .hex file (find it attached) and see if it works?

Cheers,
Carlos

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.
To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at http://groups.google.com/group/cyclone-pcb-factory.
To view this discussion on the web, visit https://groups.google.com/d/msgid/cyclone-pcb-factory/5f79e632-dc2b-41d3-b603-3c54db0ce966%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

grblForCyclone.cpp.hex

Alex

unread,
Dec 11, 2015, 7:32:57 AM12/11/15
to cyclone-p...@googlegroups.com

Hello,
Have you done the homing ? Grbl is locked and will refuse to move axis before homing.

--
Alex

Jungle

unread,
Dec 11, 2015, 11:30:06 PM12/11/15
to Cyclone PCB Factory
Dear Carlos, Alex
Thanks for your answers.
Sorry for my delayed responded
.
First, I upload the .hex file, I got a result same as before
Secondly, I unlocked by the button as attached file to make $H $X command. After that I used control tab, try to control X, Y axis. I used oscilloscope to monitor but no pulses in STEP pin.

Before, I had used Marlin for MEGA2560 with RAMPS1.4 I can see the pulses in STEP pin ( measured on a PIN of RAMPS1.4), with grbl4cyclone I cannot.

My steps I done with GRBL4Cyclone as below:

1. I download firmware GRBL4Cyclone
2. Compile and flash to Mega2560
3. Open bCNC
4. type $X and $H to unlock
5. Use control tab to move X, Y axis

No pulses was found on STEP PIN of X,Y axis.



Please help to solve my problem.
Thanks a lot!!
home.JPG
ter.JPG

Samuel Kranz

unread,
Dec 12, 2015, 4:13:38 AM12/12/15
to Cyclone PCB Factory
Ive never worked with bcnc, but it seems to show the replies of grbl in the command log (due to the "ok"s). 
But then grbl reports an error (the <alarm> part). The following gcode lines seem to be not acknowledged by grbl (no "ok"s shown - probably bcnc dont show them).
So probably you dont unlock grbl properly..
Can you also post your grbl settings (reply of "$$" command). And why is your machine unconnected?
Message has been deleted
Message has been deleted

Jungle

unread,
Dec 12, 2015, 4:26:45 AM12/12/15
to Cyclone PCB Factory
Dear Samuel,
1.I do not see any response by "$$" command.
2. I have same question with you, I opened COM port but status is "not connected", but I right click to show info and it noticed that "Connection is established with Grbl"
Message has been deleted

Samuel Kranz

unread,
Dec 12, 2015, 5:10:31 AM12/12/15
to Cyclone PCB Factory
try to use a different gcodesender like ugs https://github.com/winder/Universal-G-Code-Sender
and check if you selected the right com port also check if the driver is working.

Alex

unread,
Dec 12, 2015, 5:56:42 AM12/12/15
to cyclone-p...@googlegroups.com
Hi Jungle,
I suspect an issue with your endstops config that raise an alarm and
prevent any stepper move.

Can you close all your gcode senders, bCNC, etc... and connect to the
serial port with Arduino IDE ?
Be sure to be connected at the correct speed (115200).

At connection, you should see the line :
['$H'|'$X' to unlock]

Then, press $$ to list the parameter.

If it is working, enter $H to ask for homing.
Your X and Y steppers should move to endstops. This command will hang
grbl until endstops are pressed. If you want to do further tests,
reset grbl.

--
Alex
> --
> You received this message because you are subscribed to the Google Groups
> "Cyclone PCB Factory" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cyclone-pcb-fac...@googlegroups.com.
> To post to this group, send email to cyclone-p...@googlegroups.com.
> Visit this group at https://groups.google.com/group/cyclone-pcb-factory.
> To view this discussion on the web, visit
> https://groups.google.com/d/msgid/cyclone-pcb-factory/38f5f837-0ac3-4c51-957a-67bb37914c0d%40googlegroups.com.

Jungle

unread,
Dec 12, 2015, 8:23:30 AM12/12/15
to Cyclone PCB Factory
Hi Alex,

"At connection, you should see the line :
['$H'|'$X' to unlock] "
Yes, I seen this, and I typed:
'$$'
But I cannot see any response later.
Can you/everyone inspect my situation ?

Carlos García

unread,
Dec 13, 2015, 7:05:37 AM12/13/15
to cyclone-p...@googlegroups.com
Hi Jungle, does bCNC still show the "Not connected" message? If that is the case, you should fix that first.

Let's try the following:
- Close any instances of bCNC/Arduino. Power up the machine, connect to the USB port.
- Then open the Arduino IDE, select the port in "Tools->Serial port"
- Open the serial monitor "Tools->Serial monitor" and select the baud rate 115200 and NL:
Inline image 1

- You should see the following:

Inline image 2

- Then type "$H" as shown above, and click "Send". The machine should home to the origin

Please let us know the result.



--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

Jungle

unread,
Dec 15, 2015, 11:01:55 PM12/15/15
to Cyclone PCB Factory
Dear Carlos,
Below is my step:
1. Flash GRBL for Cyclone to Mega2560.
2. Connect to PC, open bCNC, click open port with baud-rate 115200 (without motors, endstops)
3. I received below line:
------------
Grbl 0.9g ['$' for help]
['$H'|'$X' to unlock]
ok
ok
ok
ok
<Alarm,MPos:214748.3648,214748.3648,-0Grbl 0.9g ['$' for help]
['$H'|'$X' to unlock]
<Alarm,MPos:214748.3648,-214748.3648,0.0000,WPos:-214748.3648,-214748.3648,-214748.3648,Buf:0,RX:0
----------------
I guessed that GRBL was connected to bCNC, it's was talked together (LED on MEGA blink continuously)
But my status still RED, and dislay: "Not connected". I right click to show info and result is "Connection is established with GRBL"
I also did instructions from you and everyone here to unlock home or show info by "$$", but I cannot receive any response on terminal.
Please help to led me solve this problem.
Thank you so much!

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

Carlos García

unread,
Dec 16, 2015, 4:18:58 AM12/16/15
to cyclone-p...@googlegroups.com

Ok, but do you mind trying the instructions I sent you with the Arduino IDE? Thanks! :)

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

Jungle

unread,
Dec 16, 2015, 8:22:34 PM12/16/15
to Cyclone PCB Factory
Dear Carlos,
No luck, before type $H, state of X-STEP and X-DIR at high voltage (5V), after that It's is low, no pulse.
I try to type "G91G0X200" to move X axis nothing happen on oscilloscope.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

Carlos García

unread,
Dec 16, 2015, 8:27:55 PM12/16/15
to cyclone-p...@googlegroups.com
Can you see anything like this in the Arduino IDE console? Or is there no text?

Inline image 2

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.
Message has been deleted

Jungle

unread,
Dec 16, 2015, 8:35:18 PM12/16/15
to Cyclone PCB Factory
Yes, I seen it,
X-STEP A0, X-DIR A1, It's just change from High to Low (5V to 0V)

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

Carlos García

unread,
Dec 16, 2015, 8:45:29 PM12/16/15
to cyclone-p...@googlegroups.com
That is odd. Sorry my experience with this sort of debugging is limited. But don't worry we'll find the cause, it is just a matter of time.
Can you please try the RAMPS test code? http://reprap.org/wiki/RAMPS_1.4#RAMPS_1.4_test_code
Either that or try the Marlin firmware to make sure there are no problems with your electronics.

Also, maybe there is an issue with garbage values in the EEPROM, which are *not* overwritten with each flashing of the firwmare. Try cleaning the EEPROM with the following code: https://www.arduino.cc/en/Tutorial/EEPROMClear
And then run GRBL+bCNC and see if it works.

Cheers!

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

Jungle

unread,
Dec 16, 2015, 8:52:59 PM12/16/15
to Cyclone PCB Factory
Dear Carlos,
First, I made it work (controlled X,Y axis) with marlin, but this is not recommended firmware for cyclone, I really that bCNC have a good interface for control and manage machine.
When I worked with Marlin, I can control X, Y axis load a file to test but the motion so strange, I dont whether it right or wrong.
I have switched to GRBL with nice controller software like bCNC.
I think I understand and sure that my board RAMPS and wiring is good.
The problem about EEPROM is my doubt now. I will test and feedback.
Thank you so much for your help! Hope you/everyone can help to solve my problem.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

Jungle

unread,
Dec 17, 2015, 3:47:10 AM12/17/15
to Cyclone PCB Factory
Dear Carlos,
This problem was solved, T
Thank you and everyone!

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

Alex

unread,
Dec 17, 2015, 3:54:45 AM12/17/15
to cyclone-p...@googlegroups.com
Hi Jungle,
Can you share with us how you fixed this, so other can learn from your experience?

Regards,
--
Alex


--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

Jungle

unread,
Dec 17, 2015, 3:57:40 AM12/17/15
to Cyclone PCB Factory

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-factory+unsub...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

Carlos García

unread,
Dec 17, 2015, 4:38:15 AM12/17/15
to cyclone-p...@googlegroups.com

Awesome! I'm so happy to hear that, I could cry :-D

Will add it to the grbl4cyclone "troubleshooting"  documentation soon.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

--
You received this message because you are subscribed to the Google Groups "Cyclone PCB Factory" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cyclone-pcb-fac...@googlegroups.com.

To post to this group, send email to cyclone-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/cyclone-pcb-factory.

Alex

unread,
Dec 17, 2015, 4:46:57 AM12/17/15
to cyclone-p...@googlegroups.com
Thank you Jungle.
Happy milling !

Also, tell me if the auto-level feature is working fine. In my case (last bCNC with last Grbl), the last points are probed, but the result is not collected by bCNC.

--
Alex


Jungle

unread,
Dec 17, 2015, 4:52:57 AM12/17/15
to Cyclone PCB Factory
Hi Carlos,
Named me on that document :D
Hi Alex, I made movement by Marlin, Now the connection of GRBL was solved, Perhaps many problems will come, keep your enthusiasm as ever :D
Thank so much!
Reply all
Reply to author
Forward
0 new messages