Re: Project: FiveD on Arduino February 06, 2011 07:11PM |
Registered: 14 years ago Posts: 155 |
Re: Project: FiveD on Arduino February 06, 2011 09:21PM |
Admin Registered: 17 years ago Posts: 183 |
Re: Project: FiveD on Arduino February 07, 2011 07:36AM |
Registered: 14 years ago Posts: 83 |
Re: Project: FiveD on Arduino February 07, 2011 12:20PM |
Registered: 14 years ago Posts: 155 |
Re: Project: FiveD on Arduino February 07, 2011 05:54PM |
Registered: 17 years ago Posts: 1,094 |
Re: Project: FiveD on Arduino February 07, 2011 07:06PM |
Registered: 14 years ago Posts: 83 |
Re: Project: FiveD on Arduino February 07, 2011 08:53PM |
Registered: 17 years ago Posts: 1,094 |
Re: Project: FiveD on Arduino February 07, 2011 09:42PM |
Registered: 14 years ago Posts: 71 |
heater.c: In function ‘heater_tick’: heater.c:181: error: ‘t_error’ undeclared (first use in this function) heater.c:181: error: (Each undeclared identifier is reported only once heater.c:181: error: for each function it appears in.) heater.c:181: error: ‘heater_p’ undeclared (first use in this function) heater.c:181: error: ‘heater_d’ undeclared (first use in this function) heater.c:181: error: ‘pid_output_intermed’ undeclared (first use in this function) make: *** [heater.o] Error 1
Re: Project: FiveD on Arduino February 07, 2011 10:55PM |
Registered: 17 years ago Posts: 1,094 |
Re: Project: FiveD on Arduino February 08, 2011 02:13AM |
Registered: 14 years ago Posts: 71 |
Re: Project: FiveD on Arduino February 08, 2011 02:27AM |
Registered: 17 years ago Posts: 1,094 |
Re: Project: FiveD on Arduino February 08, 2011 05:28AM |
Registered: 14 years ago Posts: 83 |
Re: Project: FiveD on Arduino February 08, 2011 06:12AM |
Registered: 17 years ago Posts: 1,094 |
Re: Project: FiveD on Arduino February 08, 2011 12:28PM |
Registered: 14 years ago Posts: 161 |
Re: Project: FiveD on Arduino February 08, 2011 02:33PM |
Registered: 14 years ago Posts: 83 |
Re: Project: FiveD on Arduino February 08, 2011 04:20PM |
Registered: 17 years ago Posts: 1,094 |
Re: Project: FiveD on Arduino February 08, 2011 09:51PM |
Registered: 16 years ago Posts: 438 |
Re: Project: FiveD on Arduino February 08, 2011 10:01PM |
Registered: 17 years ago Posts: 1,094 |
Re: Project: FiveD on Arduino February 09, 2011 07:02AM |
Registered: 14 years ago Posts: 161 |
Re: Project: FiveD on Arduino February 09, 2011 06:19PM |
Registered: 14 years ago Posts: 71 |
Re: Project: FiveD on Arduino February 09, 2011 06:46PM |
Registered: 14 years ago Posts: 71 |
Re: Project: FiveD on Arduino February 09, 2011 10:37PM |
Registered: 14 years ago Posts: 83 |
Re: Project: FiveD on Arduino February 09, 2011 11:45PM |
Registered: 14 years ago Posts: 16 |
Re: Project: FiveD on Arduino February 10, 2011 04:08AM |
Registered: 17 years ago Posts: 1,094 |
Re: Project: FiveD on Arduino February 10, 2011 05:03AM |
Registered: 14 years ago Posts: 7,616 |
Quote
Hopefully this is the last timer patch.
Quote
with 2 comparators the implementation is more straightforward.
Quote
Currently all steps are a bit too long. That's because the time from step interrupt, to the next call of setTimer is not subtracted from the delay.
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino February 10, 2011 06:50AM |
Registered: 14 years ago Posts: 83 |
13 $0018 TIMER1_CAPT Timer/Counter1 Capture Event 14 $001A TIMER1_COMPA Timer/Counter1 Compare Match 15 $001C TIMER1_COMPB Timer/Counter1 Compare Match 16 $001E TIMER1_OVF Timer/Counter1 OverflowWith their priority in this order. The old used TIMER_COMPA for stepping, TIMER_OVF for 10ms clock. The stepper interrupt actually could have interrupted the clock, but you would have to mess around with nested interrupts (not sure if that's possible at all).
<?php for ($i=100; $i<=10000; $i*=1.01){ echo "G1 F" . round($i) ."\n"; echo "G1 Y" . round($i/1000, 2) . "\n"; echo "G1 Y0 X0\n"; } ?>I have choosen the parameters, so that it doesn't run for hours and covers a wide range of speeds. But you can adjust them, to simulate an accelerating turtle.
Re: Project: FiveD on Arduino February 10, 2011 11:32AM |
Registered: 14 years ago Posts: 28 |
Re: Project: FiveD on Arduino February 10, 2011 11:29PM |
Registered: 14 years ago Posts: 71 |
g1 y10 G1Y3200 ok {DDA_CREATE: [0,3200,0,0] [ts:3200,ds:9834] } g1 x10 G1X3200 ok {DDA_CREATE: [3200,0,0,0] [ts:3200,ds:9834] } g1 e10 G1E3200 ok {DDA_CREATE: [0,0,0,3200] [ts:3200,ds:10000] } g1 x0 G1X0 ok {DDA_CREATE: [-3200,0,0,3200] [ts:3200,ds:9834] } g1 y0 G1Y0 ok {DDA_CREATE: [0,-3200,0,3200] [ts:3200,ds:9834] } g1 z10 G1Z3200 ok {DDA_CREATE: [0,0,3200,3200] [ts:3200,ds:10000] } g1 f1500 G1F1500 ok {DDA_CREATE: [0,0,0,3200] [ts:3200,ds:10000] } g1 e0 G1E0 ok {DDA_CREATE: [0,0,0,0] [ts:0] } g1 z0 G1Z0 ok {DDA_CREATE: [0,0,-3200,0] [ts:3200,ds:10000] } g1 f1500 G1F1500 ok {DDA_CREATE: [0,0,0,0] [ts:0] }
Re: Project: FiveD on Arduino February 11, 2011 04:23AM |
Registered: 14 years ago Posts: 7,616 |
Quote
g1 x0
G1X0
ok
{DDA_CREATE: [-3200,0,0,3200] [ts:3200,ds:9834] }
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino February 11, 2011 08:24AM |
Registered: 14 years ago Posts: 83 |
Byte Bit Description 0 0 Digital output 0 on/off 1 Digital output 1 on/off 2 Digital output 2 on/off 3 Digital output 3 on/off 4 Digital output 4 on/off 5 Digital output 5 on/off 6 Digital output 6 on/off 7 always set, to mark start of packet 1 0-2 controller number (up to 8 exturder controllers) 3-6 unused 7 0 2 0-6 Temp 1 bits 7-13 7 0 3 0-6 Temp 1 bits 0-6 7 0 4 0-6 Temp 2 bits 7-13 7 0 5 0-6 Temp 2 bits 0-6 7 0 6 0-6 Temp 3 bits 7-13 7 0 7 0-6 Temp 3 bits 0-6 7 0 8 0-6 Error/status code 7 0 9 0-6 Checksum Sum(Byte0-Byte9) modulo 128 = 0 7 0The temperatur is 12.2 fixed point. The error codes need to be defined.