ACTIVITY DESCRIPTION
This activity is a playground to explore both colour recognition techniques and servo motors controls. Both the direct use of a newly released colour sensor and light reflection measurements are discussed. In the former case the traffic light is realized with a led shield, while in the latter one mBot, equipped with servo control, stands still and acts as the traffic lights by rotating a coloured disk. The main robot, instead, reads the traffic light colour and move forward or stop accordingly.
Some students do not know the composition of the colors, which with the primary and secondary colors.
A robot runs along any given path, reads the traffic light colour and move forward or stop accordingly. In one setup (configuration a) the traffic light is a Arduino led shield and the colours are detected through a colour sensor. In configuration b, instead, one mBot, equipped with servo control, stands still and acts as the traffic light (by rotating a coloured disk) and the colour detection is performed through optical measurements in reflective geometry.