The "Petoi Digital PIR" is a "Passive InfraRed" sensor that detects things that move and radiate heat energy. Like humans or animals. PIR sensors are commonly used in burglar alarms to detect people.
The sensor has a digital output. If motion is sensed the output changes to 1.
Note that it takes a few seconds for the sensor to reset to no motion.
Connect a motion sensor to your Bittle using a Grove cable.
(Caution: When removing a Grove connector, be sure to press the latch on the connector before disconnecting the cable!)
Details: [https://docs.petoi.com/extensible-modules/pir-motion-sensor]
Build the following program, run it and test. How sensitive is the sensor to the motion of your hand? body? other people in the space?
Details: https://docs.petoi.com/extensible-modules/touch-sensor
"The sensor contains two touch parts (left and right) and can detect changes in capacitance when a finger approaches. This means the touch sensor will output a high level whether your finger touches lightly or presses hard. You can realize the function you want by judging the detected value (1 for high level, 0 for low level). "
Here's a Mind+ program to get tyou started:
Design a Bittle watchdog!
Use the motion sensor to cause Bittle to react in some way when motion is detected. Make a sound, turn the head, stand up, ...
When, there is no motion, resume the "rest" position (skill).
Use the touch sensor (left and right sensors) to initiate some behavior when touched.
Your ideas?