Kingdom: Animalia
Phylum: Arthropoda
Subphylum: Crustacea
Superclass: Multicrustacea
Class: Malacostraca
Superorder: Peracarida
Order: Isopoda
Suborder: Oniscidea
Family: Armadillida
Genus: Armadillidium
Species: about 180
Common names: Pillbugs, Slaters, Pill woodlice, Leg pebbles, Roly-poly

Armadillidium is a genus of the small terrestrial crustacean with a rigid, segmented, long exoskeleton and fourteen jointed limbs. They are known as a woodlouse (woodlice plural). Armadillidium is often confused with pill millipedes such as Glomeris marginata. They are characterised by their ability to roll into a ball when disturbed. They typically feed on moss, algae, bark and other decaying organic matter. They are usually found in moist areas such as decomposing leaf matter and soil.
Unlike other terrestrial arthropods such as insects and spiders, pill bugs do not have a waxy cuticle that would reduce evaporation from their bodies. Pill bugs also use modified lungs, called pseudotrachea, for respiration, and the lungs must remain moist to function. Individual pill bugs typically live for two or three years, and females brood eggs once or twice each summer. Several hundred eggs are brooded at a time in the marsupium, a pocket on the ventral side of the female pill bug. The marsupium must also be kept filled with water until the young hatch and crawl away.

Pill millipedes can be distinguished from woodlice on the basis of having two pairs of legs per body segment instead of one pair like all isopods. Pill millipedes have twelve to thirteen body segments, with a large shield-like posterior segment, whereas woodlice have eleven, and small posterior segments. In addition, pill millipedes are smoother and resemble normal millipedes in overall colouring and the shape of the segments.

A poster showing how this species rolls up into a ball.
[1]

A pillbug found in Bellbock, Taranaki
[2]  

The underside.
[3]

Found in the Te Henui Valley New Plymouth
 

[4] 

Thanks to Wikipedia for text and information: https://creativecommons.org/licenses/by-sa/3.0/