there is this idea i got about building a fan regulator(automatic).i want to use a comparator lm339 to get four different output then use a decoder whose output will be connected to a relay thru a transistor(c1815) the problem now is i want the output from the comparator to come in this sequence 0000,0001,0010,0011 but what ia can get now is 1000,1100,1110,1111,can anyone help ablemicky out.love u all.