I've designed a daughter board for MegaSquirt Version 2.2 hardware. It provides IO expansion by adding two more ADC inputs, two binary inputs/interrupts and two high-current FET outputs.
The board's H1 and H2 headers plug right into MS V2.2 boards when the appropriate header pins are added to the MS board's already existing holes. I think it will fit in the MS case on top, and may even fit in below it if you're careful.
It only requires two surgical implants on the MS board, one to grab Vref for the ADC circuits, and another to get +12 power for the FET driver. All other connections are through the headers.
It uses a copy of MS V2.2's injector driver circuit and connects it to PTA2 (pin 35/X5) and PTA3 (pin 36/X4). Each FET can be used to drive an idle air controller, a boost control solenoid, high-impedance injectors, air conditioning relays, or whatever you like.
It adds another pair of thermistor input circuits to AD6 and AD7. Stick another couple MAT sensors on either side of your intercooler or turbo and then calculate efficiencies. I might put another MAP sensor circuit as a jumpered option, then you could do either continuous barometric correction or measure exhaust back pressure or you dream up something.
It also adds a pair of input interrupt lines to KBD6 and KBD7. They could be used for VSS or ABS sensors or something. Applications might include traction control or a turbo tachometer. These inputs can also be configured as simple binary inputs, polled whenever you like rather than interrupt drivers (that's all software).
|
| |
|
Connections on MegaSquirt. Note two things: 1) the components around the clock circuit are all layed out flat on the board for clearance; 2) the 2-pin and 6-pin connectors just to the left of the MCU that accept the pins from the bottom view, at left. | |
|
|