Need some guidance on custom toolboard
-
I have a custom PCB modeled after the Toolboard 1LC that is meant to replace it. I still have this connected to a Mainboard 6HC and all running the original Duet3d cpp code. I want to modify the cpp code that runs on the original Toolboard 1LC so that it works with my custom board. Side note: I am new to cpp, so the raw duet code is a bit complicated for me to dig at it alone. I would like help knowing what to write and where to write it.
One thing I added is the MAX31865 RTD-to-digital converter onto my board. The way I would like to tackle this code wise is to use the existing code for the PT100 daughterboards duet uses and add that functionality to the Toolboard 1LC code. My question is this: How do I add functionality to retrieve the PT100 temperature onboard my custom board? I have a custom heating function (which is set up as a GCodeResult function) that will control an external heater, but needs to retrieve the temperature from the MAX31865 continuously. I also do not see anywhere in the code where I can define the input pins of the RTD converter, where is this definition on the PT100 daughterboards? The current files I have been looking at are 'TemperatureSensor.cpp' and 'RtdSensor31865.cpp' which are both in RepRapFirmware/src/Heating/sensors . There are also copies of the same two files in Duet3Expansion/src/heating/sensors , but are slightly different. Am I in the right place here?
Any recommendations on how to proceed or a pointer in the right direction would be awesome. Thanks!
-
@RonanLoberg you may want to look at the 3.5 branch. MAX31865 support has already been added in for toolboards so it may just be as easy as defining the pins correctly.