Wire according to this schematic.
Install the sketch (included in the files on this site).
Print two each of ghosts 3 through 9. Print three of ghosts 2 and 10. Arrange them in order on the wheel.
The pumpkin part of the ghost/pumpkin came from Makie's Jack-O-Lantern on thingiverse.
Plug it in (in a somewhat dark room) and watch the magic of animation.