Re: Project: FiveD on Arduino June 29, 2010 05:51PM |
Re: Project: FiveD on Arduino June 29, 2010 05:52PM |
Re: Project: FiveD on Arduino June 30, 2010 04:49AM |
Registered: 14 years ago Posts: 7,616 |
N0 T1
, as the firmware in it's current state doesn't send back an OK in this case. But see next post ...Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino June 30, 2010 05:23AM |
Registered: 14 years ago Posts: 7,616 |
N1 T1
was interpreted as N11
. The confirming OK was sent on G
and M
commands only, resulting in a hanging host software on other commands. Also, M
and G
commands weren't reset, so once a M105
was done, the firmware would send back temperatures on every following command. Last not least, I refined line number counting a bit.Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino June 30, 2010 05:39PM |
Registered: 14 years ago Posts: 7,616 |
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino July 02, 2010 08:29PM |
Re: Project: FiveD on Arduino July 03, 2010 06:37AM |
Registered: 14 years ago Posts: 7,616 |
Quote
the chance for great speed improvement using only 1 arduino.
Quote
Sending back multiple acknowledges [...]
Quote
i increased the serial buffer in arduino code from 128 to 800
Quote
G1 x2 y7 f1000;
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino July 03, 2010 08:50AM |
Registered: 14 years ago Posts: 7,616 |
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino July 03, 2010 06:20PM |
Registered: 14 years ago Posts: 7,616 |
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino July 06, 2010 09:18PM |
Registered: 14 years ago Posts: 7,616 |
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino July 07, 2010 12:27AM |
Registered: 17 years ago Posts: 1,094 |
Re: Project: FiveD on Arduino July 07, 2010 12:30PM |
Registered: 14 years ago Posts: 7,616 |
Quote
As for the M/G code thing, I've read that commands can be split over multiple lines, so while it looks like it's not resetting the M/G code field, it should only do one- note the "else if (gcmd->seen_M) {" on gcode.c line 506. Perhaps we can just forbid multi-line commands?
Quote
as for digit processing, could probably make it so any non-digit character ended digit processing, so if the host starts using other letters we'll still be ok
Quote
I'm currently investigating how to allow you to post all your patches to git so we can all enjoy your insights and work
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino July 07, 2010 06:11PM |
Registered: 17 years ago Posts: 622 |
Re: Project: FiveD on Arduino July 07, 2010 11:48PM |
Registered: 14 years ago Posts: 278 |
Re: Project: FiveD on Arduino July 08, 2010 01:52AM |
Re: Project: FiveD on Arduino July 08, 2010 05:14AM |
Registered: 14 years ago Posts: 7,616 |
Quote
Demented Chihuahua
My question is, is there a certain way I should be going about adding support for an alternate temp sensor? My initial strategy was to have the user choose which one they want through a #define and use a couple #ifdef's to select which functions to compile. Is this a good strategy?
Quote
james d villeneuve
The code changes were to trick the reprap host into sending multiple lines of data at a time, not to process them as one line. hopefully the /n indicates the end of a line, and the command is processed or it is stored in the buffer.
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino July 08, 2010 05:55PM |
Registered: 14 years ago Posts: 278 |
Re: Project: FiveD on Arduino July 09, 2010 12:54AM |
Registered: 17 years ago Posts: 1,094 |
Re: Project: FiveD on Arduino July 09, 2010 12:59AM |
Registered: 17 years ago Posts: 1,094 |
Re: Project: FiveD on Arduino July 09, 2010 01:11AM |
Registered: 17 years ago Posts: 1,094 |
Re: Project: FiveD on Arduino July 09, 2010 03:28AM |
Registered: 14 years ago Posts: 7,616 |
Quote
hell, put them both in! just reset current speed to some close-to-zero speed if/when the last move finishes, so new moves will ramp from a slow speed to the saved target speed. This way we re-use the existing code and keep alterations to a minimum.
Quote
Stop ramping will be tricky, because you can never tell if a new move will come through while the last one in the queue is running. I suppose we could set a low but non-zero stop speed if it's the last move in the queue, so if the host is having trouble keeping up, the printing just slows down a bit while keeping everything synchronised thanks to the algorithm
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino July 09, 2010 04:54AM |
Admin Registered: 17 years ago Posts: 13,986 |
Re: Project: FiveD on Arduino July 09, 2010 11:10AM |
Registered: 17 years ago Posts: 622 |
Re: Project: FiveD on Arduino July 09, 2010 03:53PM |
Registered: 14 years ago Posts: 7,616 |
Quote
Triffid_Hunter
I've added you as a collaborator through git's web interface, not sure whether that's all it takes.
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino July 10, 2010 08:05PM |
Registered: 16 years ago Posts: 438 |
Re: Project: FiveD on Arduino July 10, 2010 09:54PM |
Registered: 17 years ago Posts: 622 |
// enable MAX6675 WRITE(SS, 0); // ensure 100ns delay - a bit extra is fine delay(1); // read MSB SPDR = 0;
Re: Project: FiveD on Arduino July 11, 2010 01:46AM |
Registered: 17 years ago Posts: 1,094 |
Re: Project: FiveD on Arduino July 12, 2010 12:35AM |
Registered: 16 years ago Posts: 438 |
Re: Project: FiveD on Arduino July 12, 2010 11:58AM |
Registered: 17 years ago Posts: 622 |
if (bit_is_set(ADCSRA, ADSC)){ raw.bytes.low = ADCL; raw.bytes.high = ADCH; old_low = ADCL; old_high = ADCH; } else { raw.bytes.low = old_low; raw.bytes.high = old_high; }
while (bit_is_set(ADCSRA, ADSC)); raw.bytes.low = ADCL; raw.bytes.high = ADCH;
Re: Project: FiveD on Arduino July 12, 2010 12:16PM |
Registered: 17 years ago Posts: 467 |