Case 12: The Forklift
Purpose
To make a forklift.
Link
micro:bit Wonder Building Kit Joystick bit
Materials Required
Video link: https://youtu.be/PIhMVJYBMhM
Bricks build-up
Hardware Connection
Connect two motors to M1 and M2, the servo to S0 ports on Wukong breakout board.
Software Platform
Coding
Add extensions
Click "Advanced" in the MakeCode to see more choices.
Search with Wukong in the dialogue box to download it.
Search with https://github.com/elecfreaks/pxt-sonarbit in the dialogue box to add the sonar:bit extension.
Program
For Joystick:bit:
Link:https://makecode.microbit.org/_f5DVqMKrtgYA For the forklift:
Link:https://makecode.microbit.org/_UoAP69ArTfyT
Result
Use the handle to control the forklift, the up and down, left and right directions of the handle rocker are to control the forward and backward, the left and right movement of the forklift, D button to control the raisin of the forklift, C button to control the lowering of it.