Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? November 24, 2015 02:50PM |
Registered: 8 years ago Posts: 24 |
I understand, but I'd think to run the board at 3.3v, I'd need to generate a new lookup table to account for any introduced nonlinearity. However, I don't believe I possess the appropriate hardware to take measurements accurate enough to make a new table.Quote
dc42
Quote
Crispy001
Unfortunately I doubt this relationship is linear, so I'll be hooking this up to a stable 5v supply and plan on keeping my heaters below 600C!
Bad idea. If you do that, then the reading you get will vary with the ratio between the actual voltage on the 5V supply and the actual voltage on the 3.3V supply. If you power the amplifier from 3.3V instead, then it will not be sensitive to the exact supply voltage, because both the amplifier and the ADC are ratiometric and will be using the 3.3V supply as the reference.
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? November 24, 2015 04:08PM |
Registered: 10 years ago Posts: 14,672 |
Quote
Crispy001
What would you do?
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? November 24, 2015 05:13PM |
Registered: 8 years ago Posts: 24 |
Quote
dc42
then the output voltages will be 3.3/5 times the values they give in the table.Quote
Crispy001
What would you do?
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? November 24, 2015 09:37PM |
Registered: 10 years ago Posts: 14,672 |
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? November 26, 2015 04:28AM |
Registered: 8 years ago Posts: 24 |
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? November 27, 2015 09:43PM |
Registered: 8 years ago Posts: 24 |
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? November 27, 2015 10:33PM |
Registered: 10 years ago Posts: 14,672 |
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? November 28, 2015 06:55PM |
Registered: 8 years ago Posts: 24 |
../Platform.cpp: In member function 'void Platform::Init()': ../Platform.cpp:184:2: error: 'maxStepperDACVoltage' was not declared in this scope maxStepperDACVoltage = MAX_STEPPER_DAC_VOLTAGE; ^ ../Platform.cpp: In member function 'void Platform::UpdateMotorCurrent(size_t)': ../Platform.cpp:1388:76: error: 'maxStepperDACVoltage' was not declared in this scope unsigned short dac = (unsigned short)((0.256*current*8.0*senseResistor + maxStepperDACVoltage/2)/maxStepperDACVoltage); ^ ../Platform.cpp: In member function 'void Line::Write(char, bool)': ../Platform.cpp:2511:37: error: 'class Stream' has no member named 'canWrite' if (outputNumChars == 0 && iface.canWrite() != 0) ^ ../Platform.cpp: In member function 'void Line::TryFlushOutput()': ../Platform.cpp:2565:38: error: 'class Stream' has no member named 'canWrite' while (outputNumChars != 0 && iface.canWrite() != 0) ^ subdir.mk:130: recipe for target 'Platform.cpp.o' failed make: *** [Platform.cpp.o] Error 1
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? November 29, 2015 02:28AM |
Registered: 10 years ago Posts: 14,672 |
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? November 29, 2015 06:07AM |
Registered: 8 years ago Posts: 24 |
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? November 29, 2015 04:11PM |
Registered: 8 years ago Posts: 24 |
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? November 29, 2015 05:29PM |
Registered: 8 years ago Posts: 24 |
In file included from ../RepRapFirmware.h:118:0, from ../DDA.cpp:8: ../Platform.h:674:3: error: 'OutputPin' does not name a type OutputPin stepPinDescriptors[DRIVES]; // output pin descriptors for faster access, with the driver number mapping already done
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? November 29, 2015 06:45PM |
Registered: 10 years ago Posts: 14,672 |
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? November 29, 2015 08:49PM |
Registered: 8 years ago Posts: 24 |
float ad4985calculatedtemp = ((reading-1.25)/0.005); // Calibration curve provided by Adafruit (volts->deg C) float pt100calculatedtemp = ((21.069*(reading*reading))+(177.95*reading)-220.37); // Polynomial curve generated from E3D lookup table (volts->deg C)
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? December 07, 2015 12:36AM |
Registered: 8 years ago Posts: 24 |
C:\arduino-1.6.0\hardware\arduino\sam\cores\arduino/USARTClass.h:112:49: error: 'UARTModes' does not name a type void begin(const uint32_t dwBaudRate, const UARTModes config); ^ C:\arduino-1.6.0\hardware\arduino\sam\cores\arduino/USARTClass.h:112:59: error: ISO C++ forbids declaration of 'config' with no type [-fpermissive] void begin(const uint32_t dwBaudRate, const UARTModes config); ^ subdir.mk:132: recipe for target 'Line.cpp.o' failed make: *** [Line.cpp.o] Error 1
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? December 07, 2015 03:58AM |
Registered: 10 years ago Posts: 14,672 |
'Building file: ../RepRapFirmware.cpp' 'Starting C++ compile' "C:/Arduino-1.5.8/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -std=gnu++11 -O2 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=158 -DARDUINO_SAM_DUE -DARDUINO_ARCH_ -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-IC:/Arduino-1.5.8/hardware/arduino/sam/system/libsam" "-IC:/Arduino-1.5.8/hardware/arduino/sam/system/CMSIS/CMSIS/Include/" "-IC:/Arduino-1.5.8/hardware/arduino/sam/system/CMSIS/Device/ATMEL/" -I"C:\Arduino-1.5.8\hardware\arduino\sam\cores\arduino" -IC:/arduino-1.5.8/hardware/arduino/sam/system/libsam/include -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\EMAC" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\Lwip" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\MCP4461" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\SamNonDuePin" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\SD_HSMCI" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\SD_HSMCI\utility" -I"C:\Arduino-1.5.8\hardware\arduino\sam\libraries\Wire" -I"C:\Arduino-1.5.8\hardware\arduino\sam\variants\arduino_due_x" -I"C:\Arduino-1.5.8\hardware\tools\gcc-arm-none-eabi-4.8.3-2014q1\lib\gcc\arm-none-eabi\4.8.3\include" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\Flash" -MMD -MP -MF"RepRapFirmware.cpp.d" -MT"RepRapFirmware.cpp.d" -x c++ "../RepRapFirmware.cpp" -o "RepRapFirmware.cpp.o" -Wall -O2 -std=gnu++11 'Finished building: ../RepRapFirmware.cpp'
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? December 07, 2015 10:12PM |
Registered: 8 years ago Posts: 24 |
Quote
dc42
Currently I use Arduino 1.5.8 with the patches from my RepRapFirmware repo applied. I haven't tried a more recent version. I intent to rewrite the hardware layer to avoid the Arduino core completely and use the underlying ARM libraries instead.
Use a file compare tool to compare your binary and mine. There are some strings in the binary that depend on the path to the build area, which may account for some of the difference in size.
Here is a typical command line showing the C++ compiler options.
'Building file: ../RepRapFirmware.cpp' 'Starting C++ compile' "C:/Arduino-1.5.8/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/arm-none-eabi-g++" -c -g -std=gnu++11 -O2 -ffunction-sections -fdata-sections -nostdlib -fno-threadsafe-statics --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=158 -DARDUINO_SAM_DUE -DARDUINO_ARCH_ -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSBCON "-IC:/Arduino-1.5.8/hardware/arduino/sam/system/libsam" "-IC:/Arduino-1.5.8/hardware/arduino/sam/system/CMSIS/CMSIS/Include/" "-IC:/Arduino-1.5.8/hardware/arduino/sam/system/CMSIS/Device/ATMEL/" -I"C:\Arduino-1.5.8\hardware\arduino\sam\cores\arduino" -IC:/arduino-1.5.8/hardware/arduino/sam/system/libsam/include -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\EMAC" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\Lwip" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\MCP4461" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\SamNonDuePin" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\SD_HSMCI" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\SD_HSMCI\utility" -I"C:\Arduino-1.5.8\hardware\arduino\sam\libraries\Wire" -I"C:\Arduino-1.5.8\hardware\arduino\sam\variants\arduino_due_x" -I"C:\Arduino-1.5.8\hardware\tools\gcc-arm-none-eabi-4.8.3-2014q1\lib\gcc\arm-none-eabi\4.8.3\include" -I"C:\Users\David\Eclipse\RepRapFirmware\Libraries\Flash" -MMD -MP -MF"RepRapFirmware.cpp.d" -MT"RepRapFirmware.cpp.d" -x c++ "../RepRapFirmware.cpp" -o "RepRapFirmware.cpp.o" -Wall -O2 -std=gnu++11 'Finished building: ../RepRapFirmware.cpp'
"C:/arduino-1.5.8/hardware/tools/gcc-arm-none-eabi-4.8.3-2014q1/bin/arm-none-eabi-gcc" -c -g -Os -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -Dprintf=iprintf -mcpu=cortex-m3 -DF_CPU=84000000L -DARDUINO=158 -DARDUINO_SAM_DUE -DARDUINO_ARCH_SAM -D__SAM3X8E__ -mthumb -DUSB_VID=0x2341 -DUSB_PID=0x003e -DUSB_MANUFACTURER=\""Unknown"\" -DUSB_PRODUCT=\""Arduino Due"\" "-IC:/arduino-1.5.8/hardware/arduino/sam/system/libsam" "-IC:/arduino-1.5.8/hardware/arduino/sam/system/CMSIS/CMSIS/Include/" "-IC:/arduino-1.5.8/hardware/arduino/sam/system/CMSIS/Device/ATMEL/" -I"C:\arduino-1.5.8\hardware\arduino\sam\cores\arduino" -IC:/arduino-1.5.8/hardware/arduino/sam/system/libsam/include -I"C:\Users\Crispy\workspace\RepRapFirmware\Libraries\EMAC" -I"C:\Users\Crispy\workspace\RepRapFirmware\Libraries\Lwip" -I"C:\Users\Crispy\workspace\RepRapFirmware\Libraries\MCP4461" -I"C:\Users\Crispy\workspace\RepRapFirmware\Libraries\SamNonDuePin" -I"C:\Users\Crispy\workspace\RepRapFirmware\Libraries\SD_HSMCI" -I"C:\Users\Crispy\workspace\RepRapFirmware\Libraries\SD_HSMCI\utility" -I"C:\arduino-1.5.8\hardware\arduino\sam\libraries\Wire" -I"C:\arduino-1.5.8\hardware\arduino\sam\variants\arduino_due_x" -I"C:\Arduino-1.5.8\hardware\tools\gcc-arm-none-eabi-4.8.3-2014q1\arm-none-eabi\include" -I"C:\Users\Crispy\workspace\RepRapFirmware\Libraries\Flash" -MMD -MP -MF"Libraries/SD_HSMCI/utility/hsmci.c.d" -MT"Libraries/SD_HSMCI/utility/hsmci.c.o" -D__IN_ECLIPSE__=1 "C:/Users/Crispy/workspace/RepRapFirmware/Libraries/SD_HSMCI/utility/hsmci.c" -o "Libraries/SD_HSMCI/utility/hsmci.c.o" -Wall -O2 C:/Users/Crispy/workspace/RepRapFirmware/Libraries/SD_HSMCI/utility/hsmci.c: In function 'hsmci_get_response_128': C:/Users/Crispy/workspace/RepRapFirmware/Libraries/SD_HSMCI/utility/hsmci.c:427:2: error: 'for' loop initial declarations are only allowed in C99 mode for (uint8_t i = 0; i < 4; i++) { ^ C:/Users/Crispy/workspace/RepRapFirmware/Libraries/SD_HSMCI/utility/hsmci.c:427:2: note: use option -std=c99 or -std=gnu99 to compile your code Libraries/SD_HSMCI/utility/subdir.mk:87: recipe for target 'Libraries/SD_HSMCI/utility/hsmci.c.o' failed make: *** [Libraries/SD_HSMCI/utility/hsmci.c.o] Error 1
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? December 08, 2015 03:52AM |
Registered: 10 years ago Posts: 14,672 |
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? December 08, 2015 10:38AM |
Registered: 8 years ago Posts: 24 |
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? December 09, 2015 12:07AM |
Registered: 8 years ago Posts: 24 |
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? December 10, 2015 10:44AM |
Registered: 8 years ago Posts: 24 |
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? December 10, 2015 05:12PM |
Registered: 8 years ago Posts: 185 |
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? December 10, 2015 06:49PM |
Registered: 8 years ago Posts: 24 |
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? December 13, 2015 10:50PM |
Registered: 8 years ago Posts: 24 |
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? December 13, 2015 10:57PM |
Registered: 8 years ago Posts: 185 |
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? December 13, 2015 11:46PM |
Registered: 8 years ago Posts: 24 |
Quote
dnewman
Personally, I never use auto leveling on my CoreXY bots. Rather, I build them such that they maintain level over many months and many removal and replacements of the build plate. The same should be achievable on an H-gantry setup.
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? December 14, 2015 05:41AM |
Registered: 10 years ago Posts: 14,672 |
Quote
Crispy001
Printer is running and working quite well for a new build, thanks folks. What should my start gcode look like to run leveling? Should I just execute a G32 every print? Do I need a bed.g file for an H-gantry setup?
Re: Duet 0.8.5 with E3D PT100 sensor+amplifier ? February 06, 2016 11:50AM |
Registered: 9 years ago Posts: 27 |