A method and device for an automatic analyzer, in particular for blood analysis sampling consists in displacing a sampling needle rotatable around an axis which forms an angle with the sampling needle. A cam is connected to the post and has a guide slot which is cooperated with a piston rod of a cylinder. The use of bio-compatible imaging materials and solvents allows conventional lithographic patterning methods to be applied to patterning biomolecules.