To write a new program is not a trivial task. Here's what you need to determine:
▪︎What each peripheral pin of the PIC connected to (e.g., switch, LED, relay[via a transistor], sensor)
▪︎ What is the normal state of each pin? An LED can be on when the PIC port pin is high or low depending on how it's connected. A switch can be high or low when pressed depending on the circuit.
▪︎Details about sensor outputs - what voltage corresponds to when temperature for example.
Once you know all of these things, the work begins. You need to figure out the logic of making it work. I believe pipe size is one of the parameters entered. Why do you need to know this? What functions of the freezing unit does it impact?
Does it freeze using a peltier junction? What's important to know about using it? Can be be on continuously? Is the temperature of the "hot side" monitored and what are the limits?
Figuring out this logic will be difficult, but maybe it's not necessary. Maybe you can get by with an on/off switch. Turn the switch on to power the fans and peltier junction and it's going to get cold. Maybe the rest doesn't matter for your application.
▪︎What each peripheral pin of the PIC connected to (e.g., switch, LED, relay[via a transistor], sensor)
▪︎ What is the normal state of each pin? An LED can be on when the PIC port pin is high or low depending on how it's connected. A switch can be high or low when pressed depending on the circuit.
▪︎Details about sensor outputs - what voltage corresponds to when temperature for example.
Once you know all of these things, the work begins. You need to figure out the logic of making it work. I believe pipe size is one of the parameters entered. Why do you need to know this? What functions of the freezing unit does it impact?
Does it freeze using a peltier junction? What's important to know about using it? Can be be on continuously? Is the temperature of the "hot side" monitored and what are the limits?
Figuring out this logic will be difficult, but maybe it's not necessary. Maybe you can get by with an on/off switch. Turn the switch on to power the fans and peltier junction and it's going to get cold. Maybe the rest doesn't matter for your application.