sending Gcode from rpi to arduino méga via USB June 12, 2019 03:24AM |
Registered: 4 years ago Posts: 10 |
Re: sending Gcode from rpi to arduino méga via USB June 12, 2019 04:52AM |
Admin Registered: 16 years ago Posts: 13,889 |
Re: sending Gcode from rpi to arduino méga via USB June 12, 2019 05:55AM |
Registered: 4 years ago Posts: 10 |
Re: sending Gcode from rpi to arduino méga via USB June 12, 2019 06:12AM |
Admin Registered: 13 years ago Posts: 7,002 |
Re: sending Gcode from rpi to arduino méga via USB June 12, 2019 06:14AM |
Admin Registered: 16 years ago Posts: 13,889 |
Private Sub WriteGCode(ByVal gcode As String) 'SerialPort1.Open() If Not SerialPort1.IsOpen Then Try SerialPort1.Open() FlushPort() Catch ex As Exception MessageBox.Show("Seriellen Port nicht gefunden!") Exit Sub End Try End If FlushPort() SerialPort1.WriteLine(gcode) ReadPortOK() ' warte auf Rückmeldung "OK" End Sub
Re: sending Gcode from rpi to arduino méga via USB June 12, 2019 06:41AM |
Registered: 4 years ago Posts: 10 |
Re: sending Gcode from rpi to arduino méga via USB June 12, 2019 06:55AM |
Registered: 4 years ago Posts: 10 |
Re: sending Gcode from rpi to arduino méga via USB June 12, 2019 08:02AM |
Admin Registered: 13 years ago Posts: 7,002 |
Re: sending Gcode from rpi to arduino méga via USB June 12, 2019 08:39AM |
Registered: 4 years ago Posts: 10 |
Re: sending Gcode from rpi to arduino méga via USB June 12, 2019 09:23AM |
Admin Registered: 13 years ago Posts: 7,002 |
const SerialPort = require('serialport') const Readline = require('@serialport/parser-readline') const port = new SerialPort('/dev/ttyACM0', { baudRate: 115200}); const sleep = require('sleep'); const parser = port.pipe(new Readline({ delimiter: '\n' })) port.on("open", function () { console.log("open"); console.log("Sleeping"); sleep.sleep(5); console.log("Woke up"); }); parser.on('data', console.log) port.write('M42 P63 S255\n');
open Sleeping Woke up start echo: External Reset Marlin 1.1.9 echo: Last Updated: 2018-08-01 | Author: ADP ....Lots of normal marlin startup stuff.... echo: M851 Z0.00 okThe last ok is the reply to the sent gcode command
Re: sending Gcode from rpi to arduino méga via USB June 12, 2019 11:15AM |
Registered: 4 years ago Posts: 10 |
Re: sending Gcode from rpi to arduino méga via USB June 12, 2019 11:21AM |
Admin Registered: 16 years ago Posts: 13,889 |
Re: sending Gcode from rpi to arduino méga via USB June 12, 2019 11:30AM |
Admin Registered: 13 years ago Posts: 7,002 |
Re: sending Gcode from rpi to arduino méga via USB June 13, 2019 03:23AM |
Registered: 4 years ago Posts: 10 |
Re: sending Gcode from rpi to arduino méga via USB June 13, 2019 03:36AM |
Admin Registered: 13 years ago Posts: 7,002 |
Re: sending Gcode from rpi to arduino méga via USB June 13, 2019 03:48AM |
Registered: 4 years ago Posts: 10 |
Re: sending Gcode from rpi to arduino méga via USB June 13, 2019 04:10AM |
Admin Registered: 13 years ago Posts: 7,002 |
Re: sending Gcode from rpi to arduino méga via USB June 13, 2019 05:06AM |
Admin Registered: 16 years ago Posts: 13,889 |
Private Sub GoToRelease() Using reader As StreamReader = New StreamReader("C:\KT12\GCode\#release.gcode") US_off() ' bei gesetztem Ultraschall-Flag alle Ultraschall-Sender ausschalten While Not reader.EndOfStream WriteGCode(reader.ReadLine) End While End Using End Sub
Re: sending Gcode from rpi to arduino méga via USB June 13, 2019 05:15AM |
Registered: 4 years ago Posts: 10 |
Re: sending Gcode from rpi to arduino méga via USB June 13, 2019 08:44AM |
Registered: 10 years ago Posts: 14,672 |
Quote
souhirferjeni
I can't use web interface because my project is 3d printer commanded with voice
so when i say,for exemple, "lion" his gcode will be selected then sent to the arduino to print it without any intervention from me
Re: sending Gcode from rpi to arduino méga via USB June 13, 2019 09:57AM |
Registered: 4 years ago Posts: 10 |