I've been dying to kill off my stock ECU- but keep all the emissions stuff. I need A/C, purge, EGR, and fans. I'm pretty sure that purge is open anytime the engine is on, A/C is a pressure sensor that, for some crazy reason, runs through the ecu to the A/C clutch (a relay would have sufficed, mazda). Fans should be easy. That leaves EGR- it has a position sensor and two valves (vent and vacuum). I would like to make a simple PIC microcontroller thingy to drive it- but how? It should it be inversely propo to throttle, come on above 2000 at operating temp, and close at idle, right? So, I assume that I could make a vacuum based controller, with a PIC and MPX pressure thing, that also gets a "go!" signal from megasquirt at the right RPM and temp. I'll call it MegaTree

.
Any other thoughts? Maybe I should just open it all the way above 2,000?
Also, I presume the engine should be lean whilst EGR is open- right?