Some plastics are easier to recycle than others. Turning an old plastic bottle is easy. Turning old synthetic clothing into new synthetic clothing, not so much.
For plastic which cannot be easily recycled, our least bad choice is pyrolysis, where we take plastic, heat it in a low-O2 environment,
and it turns into hydrocarbon gasses, hydrocarbon liquids, and ashes.
Both the gasses and liquids have more value than the (waste) plastic which we started with, and the amount of ash produced is relatively small. The only reason pyrolysis isn't more popular is due to the not-insignificant amount of heat required. This heat is typically produced through either combustion or resistive heating, both of which have their downsides.
This idea is to pyrolyze plastic a different heat source, namely an air source heat pump.
Our working fluid (refrigerant!) begins at a low temperature and low pressure, and might be a gas, a liquid, or a mix of the two.
Our refrigerant first passes through a heat exchanger warmed by the atmosphere, which heats it to a tepid 20C. If some or all of the refrigerant was liquid, some or all of it may evaporate.
Our refrigerant then goes through a heat/mass exchanger, where hot but low temperature pyrolysis oil give some of it's heat and some of it's substance to the refrigerant.
The now warmish refrigerant is then compressed, using power
from an electric motor. This compression causes it to experience adiabatic heating, which raises it's temperature to about 500C.
The 500C refrigerant passes through the pressurized reaction chamber, where it comes into direct contact with the plastic.
The hot refrigerant heats the plastic by contact, causing it to pyrolyze.
Still inside the pressurized vessel, the gasses, liquids, and ash are separated.
The liquid passes through a hydraulic motor. This motor's speed is controlled to get liquids out of the reactor as quickly as they are created, without letting gasses enter the motor's intake.
The gases pass through a pneumatic motor. This motor's speed is controlled to ensure that neither the pressure nor temperature inside of the reactor become excessive. If either gets too high, the motor is allowed to spin faster, consuming more gas, and lowering both the pressure and temperature in the reactor.
The electricity produced by the hydraulic and pneumatic motors reduces how much mains electricity the electric motor needs.
The (hot!) liquid which had passed through the hydraulic motor passes through the heat/mass exchanger, which cools it down. The less-hot liquid which reaches the bottom of the exchanger becomes "product."
The gas which passed through the pneumatic motor will be low pressure and low temperature, and some of it may have condensed to a liquid. Separate the cold gas from any cold liquid.
If we have enough cold liquid, then 100% of the refrigerant is this liquid, the remainder of the liquid becomes "product," and all of the cold gas also becomes "product."
Otherwise, 100% of the cold liquid becomes some of the refrigerant, some of the cold gas becomes the rest of the refrigerant, and the remainder of the cold gas becomes "product."
During system startup, almost any low-O2 inert gas could be used as the refrigerant, as long as we don't mind it's presence in the system's output.
I picked 500C for two reasons -- first, some of the web sites talking about plastic pyrolysis say it takes place between 400C and 600C, and second, the air temp inside of a diesel engine before fuel is injected is between 500C and 600C.
However, that range of temps for pyrolysis is assuming atmospheric pressure, and some of what I've read suggests that at higher pressure, less heat is needed.
If you make this machine, be careful and stay safe; don't forget that the running reactor will be full of hot high pressure flammable hydrocarbons.