Case 08: Auto Pick-up Device
Contents
10. Case 08: Auto Pick-up Device#
10.1. Introduction#
In the normal pick-up of the nut fruits, we usually use a stick to chop the branches to get the mature fruits, which could do a bad harm to the leaves and branches,thus, we can make an auto pick-up device by shaking the trunk of the tree.
10.2. Function#
Shake the trunk of the tree to get the fruits.
10.3. Products Link#
10.4. Picture#
10.5. Hardware Connection#
Connect the servo to P1 on IoT:bit.
10.6. Software Programming#
Click “Advanced” in the MakeCode to see more choices.
For programming, we need to add a package: click “Extensions” at the bottom of the MakeCode drawer and search with “servo” in the dialogue box 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.
10.7. Program#
Set the servo to drive to 90°, pause for 200ms, then set it to drive to 0° and pause another 200ms.
10.8. Result#
Shake the trunk via the servo to pick up the fruits.