> >what's the purpose of the resistor from optocoupler to basis > of the two transistors? > > To limit the current reaching the bases of the transistors. Current doesn't reach, it flows. You use the transistors as emitter-followers, so you don't need a base current limiting resistor. Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products docent Hogeschool van Utrecht: www.voti.nl/hvu -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist