I'm wondering why do planes have complex air conditioning systems with several coolers, compressors and turbines. If these devices are powered by bleed air from the engines, why isn't the bleed air simply cooled and depressurized with valves? Is it due to easier pressure regulations as the pressure of the bleed air surely changes depending on the amount of current thrust from the engines, altitude of the plane etc. or is there some other reason?
It's because for the Air Cycle process, to chill ambient air without refrigerant, to work, you have to take really hot high pressure air and and remove most of the heat while keeping the pressure up, so that when you let the pressure drop at the end of the process it ends up way below ambient temperature.
So you take air off the engine compressor at some pressure like 80 psi and, say, 400F, pass it through a radiator (precooler) to cool it down, pass it though another compressor (the Air Cycle Machine's compressor) to boost the pressure, and therefore the temperature, again, run that through more air to air radiators or heat exchangers to cool that down, then, when you have the pressure still really high but have removed most of the heat, you let it expand and drop the pressure closer to ambient. While doing that, you pass it by a turbine, which drives the compressor. (An Air Cycle Machine is more or less a big turbocharger like device, pipes, radiators, and valves).
You now end up with air that entered the engine at 70 deg F coming out the Air Cycle Machine at just above freezing when it's properly regulated. That air is mixed with raw hot bleed downstream to create the final inflow to the cabin.
An ACM can in theory put out extremely cold sub zero air if all the bleed flow available is run through it. That is to be avoided because ice formation on the expansion turbine and inlet nozzles becomes a problem and this is one of the main factors in damaging them. The other headache is dealing with all the condensate water, which causes turbine erosion problems.
Lungs need fresh air.
If you take the high pressure and temperature bleed air and only expand it, both the pressure and temperature will drop, and because it's too hot, for it too cool down sufficiently the pressure will drop by a lot.
A plane like a 747, with 400 people on board, needs to constantly refresh the air while maintaining the pressure. A 747 refreshes the air once every ~6 minutes. To do that the pressure needs to be high enough to exit the outflow valves, and high enough to maintain the cabin pressure of say 8,000 feet altitude while cruising at say 42,000 feet.
And it needs to work both on ground in a hot place, say 40°C outside, and up in the air when it's -50°C outside.
Why isn't the bleed air simply cooled and depressurized with valves?
So the whole idea of an ACM is not cooling (it's already cold outside in cruise; mixing with ram air can achieve the cooling part), it's maintaining pressure for fresh breathing, plus providing a comfortable temperature.
I.e., cooling and depressurizing with valves would work if you didn't need to replace the air at a fast rate while maintaining pressure.