Spin Module
The Fable Spin Module enables the system to drive around on wheels. This is accomplished with the help of two motors: A
and B. It also uses 10 sensors: three light sensors, three color sensors, three proximity sensors, and an infrared sensor with a
transmitter and receiver.
Wireless communication: Spin modules are controlled wirelessly using the hub.
DC motors: The two motors are identified as A and B, and their position can be set from -32,768 to 32,767 degrees, marking
a complete revolution every 360 degrees in each direction. The direction of the two motors is mirrored, which means that
to move in the same direction, one of the motors has to be set to an angle opposite of the other. The speed of movement
can be controlled, and the angle can be measured at any time.
Headlights: The spin module has two headlights on the front (the side with the glass protector on it). The user can turn
these on or off.
Light sensors: The spin module contains three light sensors that detect light sources in the surrounding area (for example,
sunlight or room lights) or directed light (for example, a camera flash). The intensity of these light sources can be measured
as a percentage, from 0 (no light) to 100 (strong light). The intensity can be measured at any time.
Color sensors: The spin module contains three color sensors that detect a color that is positioned up to three centimeters
away. The color will have a red-green-blue (RGB) value. The observed color is strongly sensitive to light. The headlights
should be on before you try to detect a color. The color detected can be measured at any time.
Proximity sensors: The spin module contains three proximity sensors that can detect objects in front of the module. The
sensors work similar to a parking assistance system in a vehicle, which alerts drivers to obstacles in the way. The proximity
of an obstacle can range from 0 (no obstacles detected) to 100 (obstacle detected very close to the module). The proximity
to a detected obstacle can be measured at any time.
8
CHAPTER 1: FABLE AT A GLANCE