file Frage SC420 mit GRBL (OpenSource)

Mehr
26 Mär 2014 20:39 - 26 Mär 2014 20:45 #3947 von Bluematrix
Bluematrix antwortete auf SC420 mit GRBL (OpenSource)
Abend euch allen,
wie schon oben geschrieben habe, betreiber ich meine Stepcraft mit der TinyG Steuerung und 4 kompletten Achsen. Ein kurzes Video dazu findet ihr in den zwei folgenden Videos auf youtube:

Die Videos zeigen die ersten Schritte bei der Entwicklung meiner eigenen Pick und Place Maschine. Bei dem einen teste ich die Mechanik mit der ersten Version des Bestcükungskopfs und dem Vakuumsauger. Das andere zeigt den aktuellen Stand, bei welchem ich den Bestückungskopf, also die 4. Achse überarbeitet und das ganze mit einem einfachen Werkzeugwechsler ausgestattet habe.

Das TinyG Board sitzt bei mir im Rumpf der Stepcraft, das ursprüngliche Board hatte ich ja gleich zu Beginn auf ebay verkauft, wie einige gleich festgestellt hatten ;-) An dem Board muss man nichts mehr ändern oder im Quellcode bearbeiten. TinyG ist wesentlich komplexer und umfangreicher als GRBL und erfüllt eigentlich alle Anforderungen. Selbst den Werkzeugswechsel, die Referenzfahrt oder auch der Längensensor lässt sich damit problemlos realisiernen, wenn es die PC Software unterstützt.

An der entsprechenden PC Software arbeite ich ja grad. Die Funktion für den Werkzeuglängensensor und weiteres kommt in der nächsten Version. So lange sollte das auch nicht mehr dauern, aber momentan überarbeite ich grad noch die Platinen. ALs erstes hab ich auch den Optokopler integriert und arbeite grad noch an einem USB Handrad (das muss dann erst noch getestet werden). Die Anschlüsse von TinyG habe ich auf der Rückseite der Stepcraft heraus gelegt, so dass man beliebig eine 4. Achse, ein weiteres Werkzeug oder auch einen Längensensor anschließen kann.

Wer also interesse an solch einer Platine, sei es TinyG oder GRBL hat, der kann sich ja melden.
Die Bestellung geht nächste Woche raus.

Grüße Martin

Dieser Beitrag enthält Bilddateien.
Bitte anmelden (oder registrieren) um sie zu sehen.

Letzte Änderung: 26 Mär 2014 20:45 von Bluematrix.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
27 Mär 2014 10:05 #3960 von Thomas
Thomas antwortete auf SC420 mit GRBL (OpenSource)
Hallo,

Nicht schlecht, macht was her!
Ich finde die Idee mit dem Ersatz der vorhandenen Treiber richtig gut. Wenn ich die Schaltung richtig verstehe, kann der Xmega neben Takt und Daten an die einzelnen SM's auch noch die ganzen speziellen Dinge des SM-Treiberchips (Decay, Schrittweite, Enable..) steuern. Also ein klarer Vorteil dafür, den vorhandenen mitgelieferten Treiber rauszukomplimentieren. Und man hat dann auch keine 'Blackbox' wo die kleine GRBL Platine dranhängt und wo man alle anzuschließenden Leitungen 'durchklingeln' muss.
Was ich auch sehr gut finde, ist die Möglichkeit der zeitgesteuerten Abschaltung bzw. des Verringern des SM-Stromes. Das kann man bisher nicht (oder hab ich da was an den Zuleitungen zum 26-pol. Stecker übersehen?)

Also, spätestens wenn meine vorhandene Platine den Geist aufgibt, werde ich mir sicher keinen Ersatz mehr kaufen, und dann gehe ich diesen Schritt.

Was vielleicht noch einer Überlegung wert ist: Eine Platine, die alle Stecker schon beinhaltet und man sie nicht an eine extra Frontblend verdrahten muss. Die hat dann auch alle Befestigungslöcher an der richtigen Stelle...

Grüsse,
Thomas

______________________________________
AutoCAD, FilouNC-12 und EstlCAM, SC420 mit
GRBL Eigenbau-Platine,

Für: Schiffs- und Flugzeugmodellbau sowie allgemeine Basteleien

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
27 Apr 2014 13:45 #4799 von HH
HH antwortete auf SC420 mit GRBL (OpenSource)
Hallo Thomas, welche Pins willst Du für ISP verwenden? wenn ich das Bild vom IC sehe gibt es die 2 mal. Ich habe keine Stepcraft und bin beim Eigenbau aus Drucker- und Scannerteilen die ich noch hatte. Das soll als erster Start sein weil die Stepcraft ja nicht eben günstig ist wie ich auf der Modellbau gesehen habe. Das ganze soll auch eine lange Z-Achse erhalten um evtl. noch zum 3 D Drucker weitergebaut zuwerden. Mal sehen wie ich das hinbekomme, X und Y sind schon fast fertig an der Z bin ich dran. Für die Endlagen möchte ich Gabellichtschranken einsetzen da ich die rumliegen habe. Schade das es nicht geht die einzeln abzufragen, da muss dann halt noch ein Oder-TTL drauf zum verschalten. So gedacht aus meiner Hardwarezeit. Ich bleibe aber noch beim Mega32 wegen der Größe. Bis dann Harry

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
27 Apr 2014 13:58 #4801 von Jörg
Jörg antwortete auf SC420 mit GRBL (OpenSource)
Hallo Harry,

wenn Du sowieso einen Eigenbau planst, dann wäre die original Tiny G Platine doch die richtige Wahl, oder? Da sind dann schon Endstufen mit drauf und und und. Schau mal hier:

Syntheos TinyG Controller

Oder die Version von Martin ( www.jtronics.de ).

Viele Grüße,

Jörg

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
04 Aug 2014 10:55 - 04 Aug 2014 10:56 #6910 von Miller
Miller antwortete auf SC420 mit GRBL (OpenSource)
Hallo Hans,

kannst du deinen Code und die Schaltung für den Teensy online stellen? Ich plane auch unsere Fräse entsprechend zu erweitern.

Beste Grüße
Horst
Letzte Änderung: 04 Aug 2014 10:56 von Miller.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
10 Aug 2014 19:28 - 10 Aug 2014 19:30 #7158 von kpykcb
kpykcb antwortete auf SC420 mit GRBL (OpenSource)
Hello Thomas,

i don't speak german, but with help of gogle-translate somehow managed to understand how to connect arduino/etc to Stepcraft420 main board. I have only few question about schematic: WZ-LEN(19), NO-AUS(21), ENDL-XYZ(23).

WZ-LEN(19), NO-AUS(21) those lines are used for what?

As i understood from message above, due to the fact that SC420 end switches are connected serially, one can't directly figure out which one touched. But i did't get how you overcome this in Grbl. Also which version of Grbl should be used? Stock build or master branch integrates your changes, or i should use version from Jörg archive?

Actually I have few spare Arduino Nano v3, so i think to use them. Optocouplers are optional or you just would encourage use them for additional safety?

In advance, thank you for answer.
Letzte Änderung: 10 Aug 2014 19:30 von kpykcb.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
11 Aug 2014 08:38 - 11 Aug 2014 08:40 #7163 von Thomas
Thomas antwortete auf SC420 mit GRBL (OpenSource)
Hallo kpykcb

Perhaps its me You ask to (too many Thomas here) ..

The WZ-LEN ist the digital input to determine if the tool length sensor (a simple switch) is activated. The software can use this to calculate the Z axis offset. With this You will get the Z-Zero at the surface from the workpiece.
In GRBL, this is not supported yet (Its on my list..)

The 'NOT-AUS' is the Input from the Emergency-Stop switch. By now, GRBL software does not recognize it - when you push the button and SC immediately stops (steppers are disabled), GRBL does not know and continues.
This is another issue do be done when I have more time..

ENDL-XYZ are the reference switches.
Due to the fact they are wired together, You will not know which axis is switched.
Thats why, first Z-axis is referenced, then X, then Y. But always one each other, You can not run it together.
In the GRBL source they dont care about this. We (Jörg and me) had to change it.

Here my code-snippet in limits.c, func 'limits_go_home()':

// Home Z-axis
homing_cycle ((1 << Z_AXIS), true, true, settings.homing_seek_rate);// Search Z-axis reference switch
delay_ms (10); // Delay to debounce signal
homing_cycle ((1 << Z_AXIS), false, false, settings.homing_feed_rate);// leave Z-axis reference switch
delay_ms (10);

// Home X-axis
homing_cycle ((1 << X_AXIS), false, true, settings.homing_seek_rate);// Search X-axis reference switch
delay_ms (10);
homing_cycle ((1 << X_AXIS), true, false, settings.homing_feed_rate);// leave X-axis reference switch
delay_ms (10);

// Home Y-axis
homing_cycle ((1 << Y_AXIS), true, true, settings.homing_seek_rate);// Search Y-axis reference switch
delay_ms (10);
homing_cycle ((1 << Y_AXIS), false, false, settings.homing_feed_rate);// leave Y-axis reference switch
delay_ms (10);


Jörg did it in the original arduino software, me in the adapted part of my PCB (with ATmega32). So, when You have an arduino You better use Jörgs version.

The GRBL is based on the master branch (0.8c) - its stable and is working well. the edge branch is in development, I dont advise You to take this.

I hope it was helpful..

Thomas

______________________________________
AutoCAD, FilouNC-12 und EstlCAM, SC420 mit
GRBL Eigenbau-Platine,

Für: Schiffs- und Flugzeugmodellbau sowie allgemeine Basteleien
Letzte Änderung: 11 Aug 2014 08:40 von Thomas.
Folgende Benutzer bedankten sich: kpykcb

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
11 Aug 2014 12:59 - 11 Aug 2014 13:17 #7167 von kpykcb
kpykcb antwortete auf SC420 mit GRBL (OpenSource)

Thomas schrieb:
Perhaps its me You ask to (too many Thomas here) ..


Hello Thomas, yes I addressed this question to you :). Thank you very much for answer! You approaching my first cut on SC420 ;) . I got it just last friday, but i have no PC with Windows, so i just made "Jog" in winpc-nc few times from laptop of mine friend.

Thomas schrieb: The WZ-LEN ist the digital input to determine if the tool length sensor (a simple switch) is activated. The software can use this to calculate the Z axis offset. With this You will get the Z-Zero at the surface from the workpiece.
In GRBL, this is not supported yet (Its on my list..)

The 'NOT-AUS' is the Input from the Emergency-Stop switch. By now, GRBL software does not recognize it - when you push the button and SC immediately stops (steppers are disabled), GRBL does not know and continues.
This is another issue do be done when I have more time..

ENDL-XYZ are the reference switches.


I got this yesterday late evening while tried to compare Grbl pin assignment for Arduino Uno.

I connected some Arduino pins to SC, but didn't get any movement out of it :(.
SC420*Arduino Nano V3 (Atmega328p)/Grbl
3 (DIR-X)5 (Direction X-axis)
7 (DIR-Y)6 (Direction X-axis)
11 (DIR-Z)7 (Direction X-axis)
5 (CLK-X)2 (Step Pulse X-axis)
9 (CLK-Y)3 (Step Pulse Y-axis)
9 (CLK-Z)4 (Step Pulse Z-axis)
22 (GND)Arduino GND Pin (do i need it?)
* (pin numbering according to your Eagle schematic)

Arduino get power form usb, so i didn't connected 5v from SC420.

I didn't connected other pins. Some because i have no 4th axis and tool length sensor.
But maybe I need to connect some other pins, and that's the reason why i can't move tool holder using Grbl?

SC420*Arduino Nano V3 (Atmega328p)/Grbl
21 (ENDL-XYZ)9,10,11 (Limit X-,Y-,Z-Axis) ?
23 (NOT-AUS)8 (Stepper Enable/Disable) or A0 (Reset/Abort) ?

I tried to flash Grbl 0.8c (hex release file):

/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avrdude \
-C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -v -v -v -v \
-patmega328p -carduino -P/dev/tty.usbserial-AH025OWS -b57600 -D \
-Uflash:w:/Users/kp/Documents/DIY/cnc/stepcraft/grbl_v0_8c_atmega328p_16mhz_9600.hex:i

and hex file from Debug folder of Jörg's GRBL_SC.zip:

-C/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/etc/avrdude.conf -v -v -v -v \
-patmega328p -carduino -P/dev/tty.usbserial-AH025OWS -b57600 -D \
-Uflash:w:/Users/kp/Documents/DIY/cnc/stepcraft/GRBL_SC.avr/GRBL_SC/Debug/GRBL_SC.hex:i




And, I still interested, does it safe enough to run arduino without optocouplers, as you use them in your own board?

Thomas schrieb: Due to the fact they are wired together, You will not know which axis is switched.
Thats why, first Z-axis is referenced, then X, then Y. But always one each other, You can not run it together.
In the GRBL source they dont care about this. We (Jörg and me) had to change it.

Here my code-snippet in limits.c, func 'limits_go_home()':


Ok, thanks, i'll try to package this code to my brain line by line. I probably need to get familiar with Grbl code organisation.

Thomas schrieb: Jörg did it in the original arduino software, me in the adapted part of my PCB (with ATmega32). So, when You have an arduino You better use Jörgs version.

The GRBL is based on the master branch (0.8c) - its stable and is working well. the edge branch is in development, I dont advise You to take this.

I hope it was helpful..

Thomas


Yes this was quite helpful, thanks. Sorry for a big amount questions :).

WBR, Alex
Letzte Änderung: 11 Aug 2014 13:17 von kpykcb.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
12 Aug 2014 21:05 #7243 von kpykcb
kpykcb antwortete auf SC420 mit GRBL (OpenSource)
Hello,

i mostly solved my problem. Because I finally scrolled down to the end pin_map.h and found actual pin assignment used by Jörg, which by the way quite different from default :).

Now i can communicate with Grbl and move toolholder by all 3 axises. What still do not work for me is returning to home location and endswitches, SC don't try to stop when reach one of them, and sounds produced are scaring me :unsure:, so I'm switching off machine immediately. I configured Grbl with settings for SC420 provided by Jörg. But maybe issues that I'm facing are due to the fact that I'm a new to CNC and missing obvious things.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
13 Aug 2014 14:44 #7267 von GerryKeely
GerryKeely antwortete auf SC420 mit GRBL (OpenSource)
Hi

Have you checked that the limit switches are operating correctly.The X,Y & Z limit switches are wired in series and are normally closed. When a limit is reached the relevant limit switch opens and this is detected by GRBL.

When the homing signal is given the Z limit is checked first followed by the Y an finally X axis.
If ,for example, the Y limit switch is not functioning correctly then the Z limit will set correctly but as the Y limit is faulty the Y axis stepper motor will continue to run and this is the noise you are hearing.

This was the problem I had when setting up Jorgs version of GRBL-- my Z limit switch had jammed into the closed position.

regards

Gerry

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
14 Aug 2014 11:22 #7290 von kpykcb
kpykcb antwortete auf SC420 mit GRBL (OpenSource)
Hello Gerry,

I will check this again today, now with tester, but visually they are ok, undamaged, all are unpressed, you can click them. Wired as per instruction.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
14 Aug 2014 15:19 #7297 von GerryKeely
GerryKeely antwortete auf SC420 mit GRBL (OpenSource)
kpykcb

I presume that you have set up the limits in software as described in post no. #1898 in this thread..

Gerry

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
19 Aug 2014 09:34 #7410 von ramengo
ramengo antwortete auf SC420 mit GRBL (OpenSource)
sorry for my bad english i'm a italian user of SC.
I'm Angelo!
i like it, but i will try tu use the machine with a new software.
i need a lpt port for connect the pc with software to the SC.
i had read all the topic and in the first page i had look that if i remove the usb module i can use the lpt port simply in the same connector.
i known, there are a board extension for the lpt port, but i will do only a test, if i don't like the software i will mount again the usb controller!

it's time to my question:
everyone can look the "schematics" that i "produce" for cable the lpt port in the connection soket of usb module?
thanks a lot!

sorry again for my bad english!

Dieser Beitrag enthält einen Bildanhang.
Bitte anmelden (oder registrieren) um ihn zu sehen.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
20 Aug 2014 15:56 #7451 von GerryKeely
GerryKeely antwortete auf SC420 mit GRBL (OpenSource)
Hi Angelo

Pinout as shown on your drawing is correct.

Gerry

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
20 Aug 2014 16:02 #7452 von ramengo
ramengo antwortete auf SC420 mit GRBL (OpenSource)
good, so if i cable a lpt port with the same order i can use all the software for cmc that need a lpt port?

another questions, if i put anything wrong, i will make a danger on a control board of step craft?

thanks for the answer gerry!

A.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
20 Aug 2014 18:25 #7457 von GerryKeely
GerryKeely antwortete auf SC420 mit GRBL (OpenSource)
Hi Angelo

Printer cable has 25 pins.
On the Stepcraft pins 18-24 are ground. Pin 25 is for the cable screen which appears not to be connected to ground. Pin 26 is 5V(not required).

Common practice is to place a resistor(usually 100 ohm) on each input and output.This is to prevent excessive current flow and reduce the risk of damage just in case two outputs are connected together in error.Hope this helps.

Gerry

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
21 Aug 2014 17:32 #7477 von ramengo
ramengo antwortete auf SC420 mit GRBL (OpenSource)
good, so this is the schematic with eagle!
can you confirm this?

thanks a lot very much!

Dieser Beitrag enthält einen Anhang.
Bitte anmelden (oder registrieren) um ihn zu sehen.

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
22 Aug 2014 13:07 #7494 von GerryKeely
GerryKeely antwortete auf SC420 mit GRBL (OpenSource)
The connection between J1-24(cable screen) and X25(5V ground) is not required.

Gerry

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
18 Sep 2015 14:57 #25133 von Fate
Fate antwortete auf SC420 mit GRBL (OpenSource)
Hi Jörg,

Ich möchte deine mod. Version von grbl für die SC600-1 verwenden, auf was muss ich achten?
Bzw. was muss ich außer dem max. Verfahrweg noch ändern?
In welcher der Dateien muss ich diese Änderungen vornehmen? - config und defaults?

Welche Anschlussart für den Arduino (Pinbelegung) verwendet dein Mod?
- ab grbl 0.9 sind ja Pin 11 und 12 getauscht worden.

Vielen Dank und Grüße.
Fate

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Powered by Kunena Forum

© 2024 STEPCRAFT GmbH & Co. KG

Wir benutzen Cookies

Wir nutzen Cookies auf unserer Website. Einige von ihnen sind essenziell für den Betrieb der Seite, während andere uns helfen, diese Website und die Nutzererfahrung zu verbessern (Tracking Cookies). Sie können selbst entscheiden, ob Sie die Cookies zulassen möchten. Bitte beachten Sie, dass bei einer Ablehnung womöglich nicht mehr alle Funktionalitäten der Seite zur Verfügung stehen.