Table of Contents

Pick and Place Mobile Robot

Pick and Place Robot
Project Description

Introduction

When your mom asks you to bring something for her, such as a pen or her mobile, you must have dreamt of making a robot or a gadget to do it. Use the components provided, and of course our dear old mBlock, et voila! You have a Pick and Place Robot which will do your work for you.

The Pick and Place Robot picks up an object from a particular location. It then places it wherever we want as it will follow the directions given by us. Given below is the final assembly of it.PickAndPlaceRobot

Assembly

The annotated base is shown on right. This is the bottom side. There is evive logo on the top side for your reference. So be careful while using the base.chassis_base

  • Fix the motor mounting brackets to the chassis using M3 bolts of 8mm length and M3 nuts.motor mounting brackets
evive Alert
The motor wires should be inside, otherwise, they will collide with the wheel. Also, while assembling the robot, be careful about the holes you are using. Also, fasten all the nuts and bolts tightly for smooth functionality.
  1. Attach the two motors, one to each bracket, side by side and fasten using M3 bolts of 25mm length and M3 nuts.attaching_motor
  2. Now, fit the wheels into the protruding motor shafts.attaching_wheels
  3. We’ll attach the Castor wheel now. First, we will mount the M3 standoffs (20 mm) on which the Castor will be attached. Fasten the standoffs to the chassis using M3 bolts of 8mm length.
  4. Place the Castor on top of the standoffs in the configuration shown and fasten using M3 bolts of 12 mm length.attaching_castor
evive Notes Icon
Keep in mind, that what we have assembled so far (motors and castor) will be pointing downwards.
  1. 5Flip the assembly and place evive on the top of the chassis.placing_evive
  2. Using the holes on the back of evive fasten it to the chassis using M3 bolts of 12mm length.Fastening evive
  3. Flip the assembly.Joystick Controlled robot
  4. First, we will assemble the gripper. For that, insert the servo motor into the rectangular slot of the Gripper Base Plate.assemble_gripper1
  5. Fasten the servo motor to the Gripper Base Plate using M2 bolts of length 12mm.assemble_gripper
  6. Using evive controls menu, set the servo angle to 45° (approx) and then disconnect the servo.
    evive Alert
    Make sure that you set the servo angle to 45o (approx). If you don’t, your robot, will not work properly.
  7. Take the Gripper Link and attach a micro servo single-sided horn to it using self-threading screws. Keep it loose enough so that they can rotate freely.
  8. Mount this assembly to the Gripper Claw 1 using an M3 bolt of 12mm length and M3 nut.
  9. Fasten this assembly to the Gripper Base Plate – Servo assembly such that the free Servo head locks into the motor in similar orientation as shown. Arrange both the gripper claws such that the gears mate properly. Fasten both the claws to the Gripper Base Plate with M4 bolts of 16mm length and M4 nuts.
  10. Lock the horn to the servo head using the M2 screw provided with the servo accessories.
  11. Attach 15mm standoffs to the threaded end of the M3 bolts placed on the Gripper Base Plate as shown.
  12. Now attach the servo horn to the Gripper Plate 2 using the self-threading M2 screw provided with servo accessories as shown.
  13. Insert the assembly made in step 9 into the notches in the Gripper Base Plate and Gripper Plate 1 as shown in the corresponding image.
  14. Fasten M3 nuts at the threaded end of the standoffs.
  15. Now, we will assemble the second part of our gripper. Insert the servo motor holder into the servo mounting plate and glue it using superglue.
  16. Attach 30mm F-F standoffs as shown above using M3 bolts of 8mm length.
  17. Push the servo into the slot of servo motor holder and fasten it using M2 bolts of 12mm length and M2 nuts.
  18. Set the servo angle to 0° using evive controls menu as we had done earlier.
  19. There is a free servo horn in the assembly made in step 10 and a free servo head in the assembly made in step 14. Gently push the servo head into the servo horn in the horizontal orientation as shown and lock them together using the M2 screw available with servo accessories. Pick and place robot gripper
  20. Fasten the completed gripper assembly to the front of the base plate through the threaded ends of standoffs using M3 bolts of 8mm length.Pick and Place Robot

Your Pick and Place Mobile Robot is now ready. You can also decorate your robot using the cut-outs given in the kit.

Making the Connections

Make the connections as given below:MobileRobotGripper_bb

Logic

The Pick and Place robot will be controlled using the evive smartphone app via Bluetooth. The robot can perform the following actions:

  • Go Straight
  • Go Backward
  • Turn Right
  • Turn Left
  • Brake
  • Gripper Up
  • Gripper Down
  • Gripper Open
  • Gripper Close

Programming the Pick and Place Robot

Now, we are going to write the scripts for the pick and place robot.

  1. Open a new program. Select the board from the Menubar as evive.
    Pictoblox Board SelectionThis will automatically add the evive, evive display, Actuators, and Sensors extension in the block palette.
  2. Drag and drop the when evive starts up hat block from evive extension into the scripting area.
  3. Set the TFT background to black with fill screen with () color from evive display extension.
  4. Whatever comes after the fill screen with () color block must repeat forever. Hence, sanp a forever block from control palette below fill screen with () color.
  5. To add Dabble extension click on add extension from the bottom left and select the Dabble app from the extension library.
  6. Drag and drop the if-else block. Next, drag and drop the Is () pressed on gamepad? block inside the diamond-shaped space in the if arm of the if-else block.
  7. Then, drag and drop the write () block below the if arm to display the result. Write UP in its space. If the button is not pressed, then the screen should remain blank. Below is the test script.
  8. We will now test our code. Connect your evive to the computer using USB cable, and click on connect in the Menubar. It will show the boards connected to the computer. Select the appropriate port.
  9. Upload the script to your evive.
    Upload Robot Code
  10. The HC-05/HM10 Bluetooth module is used to connect our robot to Dabble.

  11. Install the app from the Play Store or App Store and open it.Dabble Home Disconnected

  12. Click on the connect icon.

  13. A dialogue box will appear on the screen asking for permission to turn on Bluetooth. Click on ‘Allow’.

  14. Once you do so, a list of nearby devices will appear. Select your device’s name. Passwords for pairing with the device in your Smartphone’s Bluetooth setting:
    For HC-05: 000 0 or 1234 & for HM-10: 000000 or 123456Dabble Home Connected

  15. Open the Gamepad module. You can now control your robot using the keys of the gamepad.Game Pad_Connected

  16. Touch the buttons, and you will observe the corresponding values printed on the TFT Screen. This means your communication is working and we are good to go.
  17. Now, we have to assign action according to the button pressed.
  18. To make the robot move, create blocks Go StraightGo BackwardTurn Right, Turn Left and Brake.Go StraightGo BackwardTurn LeftTrun RightBrake
  19. Create the Initialisation block to set the servo angle to 0° and 45°.Initialization
  20. Create blocks for moving the gripper up and down. Remember that for the up position, the servo angle is 180° and for the down position, it is 0°. Add some delay for smooth functioning.GRipper Up GRipper Down
  21. Similarly, create blocks for opening and closing the gripper. For opening the gripper, the servo angle is 45° and for closing the gripper it is 90°.Gripper Open Gripper Close
  22. The complete script is shown here.Pick and Place Robot

After completing the main script, upload it to evive and run the robot. 

Conclusion

With this your Smartphone Controlled Pick and Place Robot! Now you can command your robot to lift different objects for you.

Project Downloads - Code and Files

Code LabelCode File
PictoBlox Code for Pick and Place Robothttps://ai.thestempedia.com/wp-content/uploads/2023/05/Pick-Place-Robot-2.sb3

Circuit Diagram

Circuit Diagram DescriptionCircuit Diagram Fritzing Diagram

Do the following connections: 

  1. Left motor to M1 Channel
  2. Right motor to M2 Channel
  3. Base servo signal pin to digital pin 2
  4. Gripper servo signal pin to digital pin 3
  5. Bluetooth to the Bluetooth hub of evive

Explore Related Projects by STEMpedia

Level up your robot control skills by learning how to control a 2-Wheel Drive Robot with hand gestures using PictoBlox AI's Machine Learning extension. Get ready to channel your inner Jean Grey!
Learn how to make a two-wheel-drive robot and code on the go with PictoBlox's mobile app. Control your robot in real-time with your smartphone!
Learn how to make an automatic chocolate dispenser to delight Santa this Christmas. All components can be found in the evive Starter Kit. Let's begin!

Explore Community Projects