Disclaimer: This blog does not contain full documentation of the laboratory procedures, neither does it pretend to provide a complete lab instruction. Instead, it is designed to document special moments in the physics lab. Enjoy!
An electrostatic machine, or generator, works in a very similar way to the simple rubbing trick (see that post). It collects electrons in one of the cylinders, and removes them from another one; the difference in electric potential causes a spark.