based on maker https://electronoobs.com/eng_arduino_tut174.php (really think it is not works) but have some additional features like:
- forward/reverse direction of motor
- changed PID regulator to other library
- added sensor of filament ending
- deleted PID parameters configuration (leave only temperature configuring)
- added counting length of filament maked (cm)
- forward motor steps = 1/16 and revers = 1/1
- motor activated only when temperature is >= 94% of target
- and many others improvements based on actual device usage
- speed controlling with rotary
- rotary encoder more and more stable controlling when rotating
- emergency stop motor when heater temperature more than 255c and if heater temperature more than 255 - heating is disabled
- added filter to temperature sensor - less noise in measurement
- much better PID parameters for 40W 12V heater. Setpoint = 222C and temperature bouncing in range 220...227C
- I builded second machine and mechanically some different. So have some code modifications (
#define MACHINE2
)
At now firmware works at Arduino Nano (atmega168) and takes 99% of avaliable space. Used cheap PSU 250W.