# Case 08: Parking at A Set Point ## Purpose --- - Programme to set the TPBot parking at a set point. ## Material --- - 1 x [TPBot](https://shop.elecfreaks.com/products/elecfreaks-micro-bit-tpbot-car-kit-without-micro-bit-board?_pos=1&_sid=f32828112&_ss=r) ![](./images/TPBot_tianpeng_case_01_01.png) ## Software --- [MicroSoftmakecode](https://makecode.microbit.org/#) ## Programming --- - Click "Advanced" to see more choices in the MakeCode drawer. ![](./images/TPBot_tianpeng_case_01_02.png) - We need to add a package for programming. Click "Extensions" in the bottom of the drawer and search with "tpbot" in the dialogue box to download it. ![](./images/TPBot_tianpeng_case_01_03.png) ### Sample - Set the icon on the micro:bit display and set it moving forward at the speed of 50%. - Judge the status of the line-tracking sensors in the forever brick, if both of them detect the black line, set the car to stop immediately. ![](./images/TPBot_tianpeng_case_08_04.png) ### Link - Link: [https://makecode.microbit.org/_Jda4MkM8gCsf](https://makecode.microbit.org/_Jda4MkM8gCsf) - You may also download it directly below:
### Conclusion - Power up to show a set icon on the micro:bit and the TPBot moves forward and doesn't stop until the black line is detected by both sensors. ## Exploration --- ## FAQ --- ## Relevant File ---