14. Case 12: The Forklift¶
14.4. Bricks build-up¶
14.5. Hardware Connection¶
Connect two motors to M1 and M2, the servo to S0 ports on Wukong breakout board.
14.7. 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.
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.