Case 64: The Intelligent Forklift
If you have visited large company warehouses or open air lumber mills, you can see a lot of industrial handling vehicles to move goods, which not only saves manpower but also greatly improves work efficiency. If you want to experience the thrill of lifting thousands of kilograms of cargo with your fingers, you can consider buying a forklift, but this is not only expensive, but also time-consuming and labor-intensive. You can use Nezha kit to create a smart forklift that can move goods according to our instructions.
Nezha expansion board × 1
micro:bit V2 × 1
Speech recognition module × 1
Motors × 2
360° Servo × 1
RJ11 cables × 1
Bricks × n
Note: If you want all of the above components, you may purchase the Nezha 48 IN 1 Inventor's Kit.
Build it as the assembly steps suggest:
Connect the motors to M1, M4 port, the speech recognition module to IIC and the servo to S1 ports as the diagram suggests:
Click “Advanced” in the MakeCode drawer to see more choices.
For programming the servos and the motors, we need to add a package. Click “Extensions” at the bottom of the drawer and search with “nezha” to download it.
For programming the speech recognition module, we need to add a package. Search with “PlanetX” in the dialogue box and click to download it.
Notice: If you met a tip indicating that some codebases would be deleted due to incompatibility, you may continue as the tips say or create a new project in the menu.
The program is shown below:
You may also download it directly:
We can see that the forklift can be controlled by voice to drive to the designated cargo, and then it can pick up the cargo and deliver it to the designated destination.