1 - 1 LED and 1 -1 Touch sensor are mounted on the visitors. When the Touch sensor on the actor is pressed, the LED that has been lit continuously until then goes out.
Mom has 3 LEDs and 3 Touch sensors.
When the LED on an actor goes out, pressing a button on the Mom will light up an LED.
LEDs of the same colour work in unison.
The little boy goes forward for 3 seconds and stops after pushing its Touch sensor.
If the IR photoreflector mounted on the front of it detects Mom, stops the robot.
After a short wait, the 3 LEDs of the 3 operators will then go out one after the other.
There is also 1 IR Photoreflector on the Mom, 1 servo motor in the neck and 3 LEDs.
When visitors are detected by the IR photoreflector, the head moves left and right in disapproval.
Then, one by one, the LEDs on the visitors go out, and one by one the LEDs on the Mom switch on, following the order of the colours. This represents the cursing.
The little boy goes ahead to his Mom and stops after pushing its Touch sensor.
The robot built according to P3 will also have 2 Touch sensors and 1 IR photoreflector.
The robot follows different paths when you press different buttons.
The robot advances to the Mom position once for one, twice for the second and three times for the third, and then returns to its starting position.
The number of LEDs that light up when the Touch sensors are pressed is the same as the number of times the robot moves backwards and forwards.
The robot's IR photoreflector detects when it touches the Mom.
It makes the round trip once, twice or three times depending on which button you press.
The LEDs will then go out.
Compared to the P3, the Mom’s structure has 1 additional Touch sensor.
The IR photoreflector counts the number of times visitors have arrived (which visitor has arrived).
A long press on the Touch sensor causes the robot to return the value stored in the variable, so that the servo motor on the Mom moves it’s head left and right and the LED on Mom lights up.
The little boy goes ahead to his Mom and stops after pushing its Touch sensor.