Re: Project: FiveD on Arduino October 06, 2010 06:22AM |
Registered: 17 years ago Posts: 74 |
Re: Project: FiveD on Arduino October 06, 2010 09:14AM |
Registered: 14 years ago Posts: 7,616 |
triffid:master A - B \ elmom:master C - D - E
triffid:master A - B - C'- D' \ elmom:master C - D - E
triffid:master A - B - C - D \ elmom:master E
triffid:master A - B - C - D - F - G \ elmom:master E
triffid:master A - B - C - D - F - G \ elmom:master E
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino October 06, 2010 10:10AM |
Registered: 14 years ago Posts: 7,616 |
#define power_on() if (0) {} #define power_off() if (0) {}while declaring such pseudo-functions just empty, e.g.:
#define power_on() /* empty */ #define power_off() /* empty */would do just as fine. Same for
do { ... } while (0)pseudo-loops, where just
{ ... }should be equivalent.
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino October 06, 2010 10:30PM |
Registered: 14 years ago Posts: 188 |
Re: Project: FiveD on Arduino October 07, 2010 05:22AM |
Registered: 14 years ago Posts: 7,616 |
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino October 07, 2010 02:23PM |
Registered: 15 years ago Posts: 356 |
if(eTemp == Double.NEGATIVE_INFINITY) { Debug.e("GCodeReaderAndWriter.getETemp() - no value stored!"); return 0;
eTemp = parseReturnedValue(resp, " T:");
#ifdef REPRAP_HOST_COMPATIBILITY sersendf("T: %u.0\n", current_temp);
#ifdef REPRAP_HOST_COMPATIBILITY sersendf(" T: %u.0\n", current_temp);
Re: Project: FiveD on Arduino October 07, 2010 04:59PM |
Registered: 14 years ago Posts: 188 |
#if defined (__AVR_ATmega1280__) #endif /* __AVR_ATmega1280__) */ #ifndef DIO0_PIN #error pins for this chip not defined in arduino.h! If you write an appropriate pin definition and have this firmware work on your chip, please tell us via the forum thread #endif
#define AIO7_PIN PINA5 #define AIO5_RPORT PINA #define AIO5_WPORT PORTA #define AIO5_DDR DDRAfor other ardunio boards, I don't understand the magic that makes it work. Thus, I'm not sure how to reconfigure this to make a set of pin definitions for the ATmega 1280.
#define AIO0_PIN PINA0 #define AIO0_RPORT PINA #define AIO0_WPORT PORTA #define AIO0_DDR DDRA //all 0 #define AIO1_PIN PINA1 #define AIO1_RPORT PINA #define AIO1_WPORT PORTA #define AIO1_DDR DDRA //all 1
Re: Project: FiveD on Arduino October 08, 2010 12:30AM |
Registered: 17 years ago Posts: 1,094 |
do { if (1) { DIO3_WPORT |= MASK( DIO3_PIN); } else { DIO3_WPORT &= ~MASK(DIO3_PIN); }; } while (0)
do { if (1) { PORTD |= MASK( PIND3); } else { PORTD &= ~MASK(PIND3); }; } while (0)
Re: Project: FiveD on Arduino October 08, 2010 06:18AM |
Registered: 17 years ago Posts: 1,094 |
Re: Project: FiveD on Arduino October 08, 2010 07:58AM |
Registered: 14 years ago Posts: 7,616 |
Quote
Same for
do { ... } while (0)
pseudo-loops, where just
{ ... }
should be equivalent.
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino October 08, 2010 09:23AM |
Registered: 15 years ago Posts: 356 |
Re: Project: FiveD on Arduino October 08, 2010 05:46PM |
Registered: 14 years ago Posts: 188 |
Re: Project: FiveD on Arduino October 09, 2010 08:52AM |
Re: Project: FiveD on Arduino October 09, 2010 06:20PM |
Registered: 17 years ago Posts: 1,094 |
Re: Project: FiveD on Arduino October 10, 2010 09:53PM |
Registered: 14 years ago Posts: 188 |
#define DIO47_PIN PINL2 #define DIO47_RPORT PINL #define DIO47_WPORT PORTL #define DIO47_DDR DDRL
Re: Project: FiveD on Arduino October 11, 2010 02:48AM |
Registered: 17 years ago Posts: 74 |
Re: Project: FiveD on Arduino October 11, 2010 03:29AM |
Registered: 17 years ago Posts: 74 |
Re: Project: FiveD on Arduino October 11, 2010 05:02AM |
Registered: 14 years ago Posts: 7,616 |
Quote
Do the duplicates really matter?
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino October 11, 2010 06:02PM |
Registered: 14 years ago Posts: 12 |
Re: Project: FiveD on Arduino October 12, 2010 07:33PM |
Registered: 14 years ago Posts: 188 |
Quote
http://reprap.org/wiki/Arduino_Mega_Pololu_Shield
The FiveD Firmware uses Timer1, which is also used for PWM on pins 11 and 12, so we can not use those pins for the heater in FiveD Firmware. This first set of pin definitions is tested on the FiveD firmware.
Re: Project: FiveD on Arduino October 14, 2010 03:29AM |
Registered: 17 years ago Posts: 74 |
Re: Project: FiveD on Arduino October 14, 2010 04:10AM |
Registered: 17 years ago Posts: 74 |
Re: Project: FiveD on Arduino October 14, 2010 05:18AM |
Registered: 14 years ago Posts: 7,616 |
Quote
Could someone (Triffid?) make the gen3_merge branch code compilable fot gen3 (with correct defines in config) with the arduino env?
Quote
I would love to use the makefile, but can't seem to be able to upload the code. Get the usual error of board not responding and syncing error. If you could give any pointers on how upload the .hex, it would rock my world smiling smiley Are you able to upload with "make program" ?
Quote
Btw. the compiling in the Arduino env complains about the copier.* code, which should not be included. Removing them fixes that particular issue, but what would be the real fix?
Quote
Maybe a simple config file for global definitions (could be generated by the makefile) could be included in all the files which could include the defs given now in the makefile?
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino October 14, 2010 05:35AM |
Registered: 17 years ago Posts: 74 |
Re: Project: FiveD on Arduino October 14, 2010 06:20AM |
Re: Project: FiveD on Arduino October 14, 2010 11:46AM |
Registered: 14 years ago Posts: 7,616 |
Quote
Tested example config.h files for both boards would be great.
Quote
It would be good if it was documented on how to get it on the avr controller step by step.
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino October 14, 2010 01:00PM |
Registered: 17 years ago Posts: 900 |
Re: Project: FiveD on Arduino October 14, 2010 02:16PM |
Registered: 14 years ago Posts: 7,616 |
Quote
Where is your current repository so I can rummage through some code and muse a little ??
Generation 7 Electronics | Teacup Firmware | RepRap DIY |
Re: Project: FiveD on Arduino October 15, 2010 01:46AM |
Registered: 17 years ago Posts: 74 |
Re: Project: FiveD on Arduino October 19, 2010 08:53AM |