The pinhole camera is a type of Camera Obscura, the first camera invented in the 1850's. Before it was used as a camera with film, it was a tool to help artists learn to paint and draw with more detail, a tool devised to help tell time and a tool used by scientists for observing a solar eclipse. The first recorded mention of pinhole dates back to China in the 5th century BC.
My pinhole camera is lensless, uses medium format (120) film, has infinite depth of field and produces square images. The exposures are longer to compensate for the pinhole, which is why you often see subtle blur and motion in pinhole photographs.