Detail for my Mk2_bothDisplays_3a.ino sketch This is an updated version of the original sketch for use with my PCB-based hardware. It supports two current sensors. CT1 is for monitoring the flow of energy at the supply point. CT2 is available for monitoring the flow of current to the dump-load. The display can be driven in either of two ways. The #define statement PIN_SAVING_HARDWARE near the top of the sketch can be either included or commented out to achieve this selection. If no display is in use, it doesn't matter which way this line is included or not. The two powerCal variables provides a convenient means of calibrating hardware for use with a Mk2 Router. CT1 and CT2 each have separate powerCal variables, with the suffices _grid and _diverted respectively. Changes for version _2: - for compatibility with other versions of the Mk2 code, the variable cycleCount has been removed. This variable would have eventually overflowed which could have caused unpredictable effects with other versions of the Mk2 code. - improved description of the display code initialisation in setup() for the pin-saving hardware option. - removal of some unhelpful comments in the IO pin declaration section. Changes for version _3: - a persistence check for the zero-crossing detection has been added. This is to remove any false detections of zero-crossings. This effect is seen more with some types of transformer than others. - a mechanism has been added to monitor and display the minimum number of sample sets that occur each mains cycle. With a 125us timebase, and three ADC samples per set, the expected number of sample sets per 20ms mains cycle is 20 / (3 * 0.125) = 53.33. Any value less than 53 would indicate a loss of data. Version _3a is for a few typographical changes only.