So, I was thinking of adding a second extruder to the K8200, but I do not want to change the controller board too.
The task I set for myself is to create a extruder controller (motor drive + hotend control) that attaches to the extension pins on the board.
What would be needed are:
3 digital output pins for the stepper driver
1 digital output for the heater mosfet
1 analog input for the temperature reading
and of course power for everything … but since I moved the heated bed on it’s own 24V power supply, there should be some power available on the controller itself … the only problem being that only the 5V and 12V are available on the extension board and not Vin … but the Vin could be brought directly on my extension board from somewhere else … even directly from the blue power connector
Did I miss anything?
I analyzed the available pins on the extension connector and there unfortunately none of the F or K port pins go there in order to have the analog input. (which is a shame really, most of them being wasted driving steppers and stuff).
BUT, there are A/D converter chips that connect over the SPI interface and this interface is available on the extension connector. Of course that means a lot more hacking in the firmware, but although I did not analyzed the firmware too much, I do have enough experience with programming microcontrollers, so I think I can pull it off.
Before starting, I would like to know if you guys heard of a similar project that could help … or if I missed something that makes this project not possible.
What you are trying to do should be possible, but as you acknowledge, it will be a lot of work.
I think beyond the wiring and coding, you may have to map the A/D readings into something compatible with what you would get from an on-chip A/D pin, depending on bit resolution and the analog reference voltage, but this should be a linear relationship.
Another idea would be to repurpose some of the pins being used for existing stepper drivers to regain an analog input pin. You could do this by placing a header underneath one of the stepper driver cards to “steal” one of the pins, substituting one of the digital pins from the aux header. Of course you would need to re-map the pin assignments for the affected stepper, but this might be as easy as a simple change to Pins.h. A variation on this idea would be to make your daughter board plug into both the aux header and the slot for one stepper driver, then move the displaced stepper driver onto your board and re-map the pins there.
You can definitely get the Vin by tapping into the screw terminal connector. This is not as clean as getting it through the aux connector would be, but you probably wouldn’t want to be drawing all that power through traces on the controller PCB anyway. You will want to use reasonably heavy gauge wire to ensure it can carry the motor and heater current, and also make sure any traces on your board are sufficient.
At the risk of sounding discouraging, you can get an ATMEGA 2560 for about $10 and a RAMPS shield for $20, so replacing the controller is definitely something to (re)consider. You’ve probably already seen my dual extruder thread, which has more details about using the RAMPS board: