ADEEPT RaspRover User Manual

ADEEPT RaspRover User Manual

Smart car robot kit for raspberry pi

Advertisement

www.adeept.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RaspRover and is the answer not in the manual?

Questions and answers

Summary of Contents for ADEEPT RaspRover

  • Page 1 www.adeept.com...
  • Page 2 Please place and put the product gently. Do not smash or shock it. About Adeept is a technical service team of open source software and hardware. Dedicated to applying the Internet and the latest industrial technology in open source area, we strive to provide the best hardware support and software service for general makers and electronic enthusiasts around the world.
  • Page 3 This user manual and code can be used for learning, DIY, refitting, etc., except for commercial purpose. The Adeept Company owns all rights of contents in the manual, including but not limited to texts, images, data, etc. Any distribution or printing should be implemented with the...
  • Page 4: Table Of Contents

    1.Components List..........................2 1.1.Acrylic Plates......................... 2 1.2.Machinery Parts......................... 3 1.3.Transmission Part........................3 1.4.Electronic Parts........................4 1.5.Tools.............................5 1.6.Self-prepared Parts......................5 2.Assembly............................6 2.1.Preparations before Assembly..................6 2.2. Servo debugging......................9 2.3. body parts.......................... 14 2.4.install wheels........................34 3. Software & Hardware........................35 3.1.
  • Page 5: Components List

    1.Component List 1.1.Acrylic Plates The acrylic plates are fragile, so please be careful when assembling them in case of breaking. The acrylic plate is covered with a layer of protective film. You need to remove it first. Some holes in the acrylic may have residues, so you need to clean them before the use.
  • Page 6: Machinery Parts

    1.2.Machinery Parts M1.4*6 M3*12 M2*10 Countersunk Self-tapping Screw Head Screw www.adeept.com www.adeept.com www.adeept.com www.adeept.com www.adeept.com M2.5*4 M2.5*8 M3*8 M3*12 M2.5*10+6 Copper Screw Screw Screw Screw Standoff www.adeept.com www.adeept.com www.adeept.com www.adeept.com www.adeept.com M3*20 M3*35 M2.5*14 M3*60 Copper Screw Copper Copper...
  • Page 7: Electronic Parts

    1.4.Electronic Parts Adeept Motor HAT X1 Raspberry Pi Camera X1 18650 Battery Holder Set X1 Adeept Ultrasonic Module X1 Car Light X2 3 Tracking Module X1 Raspberry P1 Camera Ribbon X1 5-Pin Wire 3-Pin Wire...
  • Page 8: Tools

    4-Pin Wire 1.5.Tools Hex Wrench-2.0mm X1 Cross Screwdriver X1 Cross Socket Wrench X1 Large Cross-head Screwdriver X1 Winding Pipe X1 Ribbon X1 1.6.Self-prepared Parts 18650 Battery X2 Raspberry Pi X1...
  • Page 9: Assembly

    Assemble the following components Raspberry Pi Camera x1 Raspberry Pi Camera Ribbon x1 Effect diagram after assembling 2.Connect the Adeept Ultrasonic Module with 4-Pin wire. Assemble the following components Adeept Ultrasonic Module x1 4-Pin wire x1 Effect diagram after assembling...
  • Page 10 3.Connect the Raspberry Pi Camera and the Raspberry Pi.
  • Page 11 The connection diagrams of the remaining modules and wires are as follows: 3 Tracking Module+5-Pin wire 1 set The two plugs of 3-Pin Wire are small plugs Wires are connected to the input of Car Light (the end marked with a white...
  • Page 12: Servo Debugging

    2.2. Servo debugging. Fix four M2.5x10+6 Copper Standoffs on Raspberry Pi. insert the Adeept Motor HAT into Raspberry Pi. Assemble the following components M2.5x10+6 Copper Raspberry Pi x1 Standoff x4 M2.5x48 Screw x4 Adeept Motor HAT x1 Effect diagram after assembling...
  • Page 13 4. Connect the 18650 Battery Holder Set to the Adeept Motor HAT. Note that the switch is "OFF".
  • Page 14 5. Put two 18650 batteries in 18650 Battery Holder Set according to the following method. Take out 1 ribbons and 1 batteries. Roll one end of the ribbon to let through a battery and fix. Insert the batteries into the rings - ribbon closer to the anode.
  • Page 15 6. Connect servos to Adeept Motor HAT. The color of the servo wire corresponds to the color of the port. Connect the servo to pwm0 on the Motor HAT.
  • Page 16 7.Before switching on, you need to insert the configured SD card into the Raspberry Pi. For details, please refer to the third chapter of the document. Otherwise, the servo will not rotate to the middle position after booting. If SD card is not inserted, the servo needs to be rotated to the middle position manually.
  • Page 17: Body Parts

    2.3. body parts Raspberry Pi Camera on Acrylic Plates Assemble the following components Raspberry Pi M1.4*6 Camera Self-tapping scre ws X4 Effect diagram after assembling...
  • Page 18 Fix a rocker arm to the acrylic plate. Assemble the following components M2.5*4 screw package with serov x2 Self-tapping screw Rocker arm package with serov Effect diagram after assembling...
  • Page 19 Assemble Assemble the following components M3 Nut M3*12 Screw Effect diagram after assembling...
  • Page 20 Fix a debugged servo to the acrylic plate. Assemble the following components Servo x1 M2 Nut M2*10 Screw Effect diagram after assembling...
  • Page 21 Fix the rocker arm on acrylic to the servo on acrylic. Assemble the following components Effect diagram after assembling...
  • Page 22 Fix motors to the acrylic Assemble the following components M2.5*8 Screw x1 Effect diagram after assembling...
  • Page 23 Fix one section of the 18650 Battery Holder Set to acrylic Assemble the following components 18650 Battery Holder M3*12 Countersunk Head Screw x1 M3*35 Screw x4 M3 Nut Pay attention todistinguishing the placement direction of the motor Effect diagram after assembling...
  • Page 24 Assemble pi and connected motor acrylic Assemble the following components M2.5*8 Screw Effect diagram after assembling...
  • Page 25 Fix 3 Tracking Module on acrylic Assemble the following components M3*8 Nut x1 3 Tracking Module X1 M3*8 Screw X1 Effect diagram after assembling...
  • Page 26 Fix two Car Lights on the acrylic plate. Assemble the following components M1.4*6 Self-tapping Car Light X2 Effect diagram after assembling...
  • Page 27 Fix Adeept Ultrasonic Module on the acrylic plate. Assemble the following components Adeept Ultrasonic M1.4*6 Self-tapping Module X1 Effect diagram after assembling...
  • Page 28 Pay attention to the distinction between motor A and B, and pay attention to the direction of the motor placement. Motor A The motor on this side should be connected to Motor-B on Adeept Motor Hat...
  • Page 29 Connect the Adeept Ultrasonic Module, Car Light, 3 Tracking Module and 18650 Battery Holder Set and motor as shown below before assembling the body part.
  • Page 30 Assemble the body part. Assemble the following components Effect diagram after assembling...
  • Page 31 Connect the front part and the body part. Assemble the following components M3 Nut x2 M3*12 Screw Effect diagram after assembling...
  • Page 32 Assemble the following components M3*8 Screw x4 M3*20Copper Standoff Nut X4 Effect diagram after assembling...
  • Page 33 Assemble the expansion board on top. Assemble the following components Effect diagram after assembling...
  • Page 34 Strengthen the body part. Assemble the following components M3*8 Screw M3*60 Copper Standoff Effect diagram after assembling...
  • Page 35 M3*60 Copper M3*8 Screw Standoff Effect diagram after assembling...
  • Page 36 M3*8 Screw M3*60 Copper Standoff Effect diagram after assembling...
  • Page 37: Install Wheels

    2.4. Install wheels Install the wheels on the car. Assemble the following components Effect diagram after assembling...
  • Page 38: Software & Hardware

    3. Software & Hardware 3.1. Software Installation Install the Raspbian Operating System First, install the operating system for the Raspberry Pi. The official system, Raspbian, is recommended. If you've finished the installation and the system works well, you may skip this step.
  • Page 39 After it's downloaded, unzip it for later SD card system creation. Write Raspberry Pi Operating System to SD Card First, insert the SD card into the card reader and connect it to the USB port of the computer. Click open the Win32 Disk Imager and choose the path of the SD card (here it's Disk G).
  • Page 40 In the code above, replace WIFI with your own WiFi SSID name and PASSWORD with your password for the WiFi network. Save the file and change the name of the file wpa_supplicant.txt into wpa_supplicant.conf.
  • Page 41 Acquire Raspberry Pi’s IP Address Install the 18650 batteries and switch on the car. Method A: Log in to the router management page on the computer to check the address of the Raspberry Pi. Method B: Download the Network Scanner App to check the address.
  • Page 42: Download Program

    Set Up a Raspberry Download the program of the PiCar-B. Input the code below to download: git clone https://github.com/adeept/adeept_awr.git Then setup: sudo python3 adeept_awr/setup.py It may take some time to finish. Now you can skip the next chapter and Install Python3.7 in the PC...
  • Page 43 The te st program runs as follows: sudo pip3 install adafruit_pca9685 sudo pip3 install rpi_ws281x Enable i2c (you can refer to the documentation on 3.3.5 to know how to enable i2c) sudo cp -f //home/pi/adeept_awr/server/config.txt //home/pi/config.txt...
  • Page 44: Set Up A Raspberry Pi

    3.3. Set Up a Raspberry Pi NOTE: You should skip this chapter if you finished the last one and Install Python3.7 in the PC directly. Unrestricted Access to Raspberry Pi The Linux operating system is a multi-user operating system which allows multiple users to log in and use the computer.
  • Page 45 Enable I2C and Camera After the Raspberry Pi is updated, you may continue operations on it. The Adeept Motor HAT V1.0 communicates with the Raspberry Pi via the I2C port but the I2C port is disabled by default. You need to enable it: sudo raspi-config A window will pop up.
  • Page 46 Now you’ve already enabled I2C, move on to enable Camera. sudo raspi-config Click through: 5 Interfacing Options ->P1 Camera ->Yes ->OK ->Finish ->Yes Reboot the Raspberry Pi. If it does not reboot automatically, type in the following command: reboot Then the I2C and Camera module are both enabled.
  • Page 47 If the following contents are shown, it indicates the module is enabled successfully. Install I2C-Tools Install I2C-Tools to check whether the external devices are connected successfully as well as the address of the devices. Type in the command to install:...
  • Page 48 Raspberry Pi library for controlling WS281X LEDs. Download Program for the AWR git clone https://github.com/adeept/adeept_awr.git Set AP-Hotspot Configure the Raspberry Pi as the Wi-Fi hotspot mode to build up a direct communication between the PC and the car.
  • Page 49 Comment=Car Exec=sudo python3 /home/adeept_awr/server/server.py Icon=false Terminal=false MutipleArgs=false Type=Application Catagories=Application;Development; StartupNotify=true Then press Ctrl + X to exit editing Input to save and press Enter to confirm. Then you need to copy the set.txt /home/pi/ so that the program could find it and load settings.
  • Page 50 3.4. Install Python3.7 in the PC Install Python3.7 So far there are two versions of Python: 2.X and 3.X. The graphical UI of the terminal control is written in Python 3.7 and it supports multiple platforms. Here we'll focus on the installation of Python 3.7 under Windows.
  • Page 51 Type in: pip3 install numpy to Install numpy. NOTE: If Python3.7 is the only version in your PC, you can use both pip3 to install software, but when you also have Python2.x installed, you must use pip3 to install it in your Python3.7 library.
  • Page 52 3.5. Run the AWR Start Switch on the car. After a while, if the LEDs turn red, it means the car’s server is connected to a Wi-Fi waiting for the PC client to join. If there is no Wi-Fi for the car to connect with, the LEDs turn blue, it means the car has set up an AP-Hotspot, you can use your PC to search it, the RPi Car’s AP-Hotspot’s SSID name is...
  • Page 53 After the connection is made successfully, the Video window shows up. OpenCV Color Recognition By default, the Robot finds the biggest yellow object in its view and follows it. When it gets close enough, it would stop, and if it gets too close to the yellow object, it would go back.
  • Page 54 Add More Functions Function 5 and Function 6 buttons are placeholders for other functions you want to add. This robot is based on raspberry pi so there are a lot more functions you can play with, but some other libraries are required.
  • Page 55: Afterword

    After completing all projects in the guide, you should have some knowledge of the Raspberry Pi and Robot, thus you can try to change the robot into other projects by adding more Adeept modules or changing the code for extended functions.
  • Page 56 www.adeept.com...

Table of Contents