FreeEMS is an open source Engine Management System. Examples of other DIY engine management systems are MegaSquirt and VEMS.