• Tags
  • Documentation
  • Order
  • Register
  • Login
Duet3D Logo Duet3D
  • Tags
  • Documentation
  • Order
  • Register
  • Login

Need some guidance on custom toolboard

Scheduled Pinned Locked Moved
Firmware developers
2
2
153
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined
    RL_berk
    last edited by 7 Apr 2023, 04:27

    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!

    undefined 1 Reply Last reply 7 Apr 2023, 06:49 Reply Quote 0
    • undefined
      jay_s_uk @RL_berk
      last edited by 7 Apr 2023, 06:49

      @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.

      Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post
      Unless otherwise noted, all forum content is licensed under CC-BY-SA