GenBoard/UnderDevelopment/AnalogInputs

See [VemsTune Help] on how to test analog inputs (or find/determine which is which, in case paper was lost).

Besides the 2 knock signals: max 16 analog inputs available in original v3.x design (v3.0 .. v3.9)

With the [analog input multiplexer] adds +6 (2+22 analog signals total)


Analog inputs with pullup, or without

Note: mcp3208/ch 2,5,6,7 has pullup by default


'''Protection added on mainboard v3.6 ; Originally some had no internal protection and relied on 0-5V signal, or external protection)

The rest is Historical:

proposal for extra ADC input channels

EC18 beware that these inputs are unbuffered and unfiltered, care must be taken to avoid damage to the MCP3208.

DSUB9 male on endplate.

Unfortunately both genders are used: DSUB9 female used for RS232 and DSUB9 male used for LCD. When an ECM has DSUB9 male for both LCD and extra inputs, care is needed at hookup.

The internal HW

The midopa provides 3 nice features:

Values for different amplification:


MCP3208 input load

When using v3.x in an industrial application ( stimulator and tester for a manufactured circuit), we applied external 10k and BAV99 diode protection (quite standard values) to protect the mcp3208 from voltages higher than 5V (or lower than 0). This is not needed when it can be guaranteed by other means that input will only get 0..5V: not an issue when used for pushbutton / switch, we use without extra protection than.

We found that 10nF caps are needed on the mcp3208 inputs for exact measurement when 10 kOhm protection is used: without cap, the internal sampling cap loads the input (likely towards GND) too heavily (impossible to measure with DVM as sampling takes _very_ short time !). With 2MHz SPI clock 4V input could only charge the sampling to 3.3V (this we measured; 500ns time constant is appr 50pF * 10kOhm; not sure if the mcp3208 datasheet specifies so high sampling cap, but PIC microcontrolles taught us in the the past that with microchip we must be careful with datasheet anyway). This could be handled in software with lower SPI clock, but the cap is a good idea in this case (makes the protection circuit 3 components, not 2).