Color Sensor
Color Sensor
Back sensor
Electronic wiring
1
White object
The value of RGB
Yellow object
The value of RGB
4. Connection of hardware
Since the port of the Color Sensor module is blue-white, when we use a RJ25 port,
it needs to be connected to the port with a blue-white mark on the main board. Taking
the main board of mBot as an example, all RJ25 ports on mCore have blue and white
color marks. All the ports can be connected to a color sensor, as shown in Figure 3.
Figure 6: mBot starts to move when LED module displays the color collected
by the Color Sensor
3
6. Matters need attention
(1) Each team should install the color sensor to the appropriate height according to the
situation of the arena (the recommended height range is 1.5 ~ 3cm).
(2) Due to the influence of the external environment, each team member should develop
the ability of using programming to improve the sensor recognition.
(3) One motherboard can only support one color sensor running.