Case 14: Do not touch "me"
Introduction
To create a TPBot smart car that alarms if we take it up.
Purchase link
TPBot micro:bit v2
Software
Programming
Click "Advanced" in the MakeCode drawer to see more choices.
We need to add a package for programming. Click "Extensions" in the bottom of the drawer and search with "tpbot" to download it.
Sample
Link
Link: https://makecode.microbit.org/_VcfdkRUW6TUs
You may also download it directly below:
Conclusion
Detect the status of the TPBot via the accelerometer sensor, the light flashes and the buzzer makes a sound when the car is picked up; and it stops flashing and shows an icon when it is put down.