Mechanical

The mechanical documentation involves designing, 3D printing and assembling the PiCar chassis

Caution

The mechanical design and assembly of the PiCar will continue being modified over the course of the research. The following guide reflects the earliest version of PiCar v2.0.

Design

For the base chassis of PiCar v2, we will be using the Dromida 1/18 Scale Buggy. To retrofit it with sensors and micro-controllers, we will be adding some 3D printed parts.

CAD

The parts are designed using Autodesk Fusion 360. We will be splitting the chassis into three layers, connected with spacers for better management:

Layer Zero
  • Dromida buggy (without cover)
  • DC Motor (drive)
  • Servo (steer)
  • Encoder
  • ESC (Electronic Speed Controller)
Layer One
  • Raspberry Pi
  • Arduino
  • Lipo Battery(s)
  • Current sensors
  • IMU (Intertial Measurement Unit)
Layer Two
  • Servo (LIDAR)
  • TFMini LIDAR
  • PiCamera

Materials Required

Component Price ($) Quantity Sub-total ($) Store Link
Dromida 1/18 Buggy 4WD RTR 99.99 1 99.99 https://www.dromida.com/surface/didc0049-bx4wd/index.php
ISC25 Rotary Encoder 39.95 1 39.95 http://www.rotaryencoder-yumo.com/products/isc25-series-solid-shaft-incremental-rotary-encoder-ID84.html
20T 48P 4mm bore Pinion Gear 6.29 1 6.29 https://www.amazon.com/dp/B00A1E19VE
Arduino UNO Rev 3 24.95 1 24.95 https://www.sparkfun.com/products/11021
Raspberry Pi 3 B+ 39.95 1 39.95 https://www.sparkfun.com/products/14643
32GB MicroSD Card 12.99 1 12.99 https://www.amazon.com/dp/B06XWN9Q99
IMU 9DoF Sensor Stick 14.95 1 14.95 https://www.sparkfun.com/products/13944
Raspberry Pi Camera Module V2 29.95 1 29.95 https://www.sparkfun.com/products/14028
TrackStar 5050kv Motor + ESC 37.94 1 5.76 https://hobbyking.com/en_us/trackstar-1-18th-scale-12t-brushless-power-system-5050kv.html
TowerPro SG90 Micro Servo 3.72 1 3.72 https://www.amazon.com/dp/B01608II3Q
TFMini - Micro LiDAR Module 39.95 1 39.95 https://www.sparkfun.com/products/14588
Turnigy 1000mAh 2S 20C LiPo 14 1 14 https://www.amazon.com/Turnigy-1000mAh-Lipo-HobbyKing-Battery/dp/B0072AEHIC
M2.5 Standoffs Assortment 11.89 1 11.89 https://www.amazon.com/gp/product/B01L06CUJG/
Current Sensors (optional) 9.95 6 59.7 https://www.digikey.com/product-detail/en/adafruit-industries-llc/1164/1528-1807-ND/6565386
    Total 404.04  

Warning

The 7.4V LiPo battery must be used with care. Use a voltmeter or battery checker to ensure that the battery voltage does not drop below 30%.

Note

If the 48P 20T 4mm bore Pinion Gear cannot be found, buy a 48P 20T Pinion Gear and use a drill to create a 4mm bore (shaft diamater).

Assembly

Tools Required:

  • Dremel kit (with drill and sanding bits)
  • Screw drivers
  • Pliers
  1. Download the Fusion 360 CAD files, convert them to STL and 3D print them.
  1. For PiCar v2.0, the Dromida 1/18th Scale Buggy was used:
Dromida 1/18th Scale Buggy

Dromida 1/18th Scale Buggy

3. Remove the plastic covering and unplug the NiMh battery. We will be using a LiPo battery to power the PiCar.

PiCar (casing removed)

Buggy with plastic casing and battery removed

4. Unscrew, and remove the rear gear covering and the plastic spline that goes along the center of the car.

Rear gear covering and spine removed

Rear gear covering and spine removed

5. Unscrew the plastic cover for the ESC (Electronic Speed Controller). Unplug the motor and servo connectors from the ESC. Remove the motor from the car. Do not remove the servo.

ESC removed

ESC removed

6. Unscrew the metallic motor mount. Pull out the plastic ‘pillar’ on the left of the rear gear.

Motor removed

Motor removed

7. Since we are using a rotary encoder for the low level speed controller, we need to ensure that the encoder meshes with the rear gear. Using the dremel and a sanding tool, carefully clear away the plastic from the gear as shown.

Plastic cleared away for meshing Encoder

Plastic cleared away for meshing Encoder

Ensure that the encoder with its pinion gear meshes with the rear gear and is not blocked by the plastic casing.

8. Screw in the printed encoder mount to the encoder and place it on the chassis as shown in the figure:

Placed the encoder

Placed the encoder

Ensure that the rear gear rotates along with the encoder gear with little to no friction. Holding the encoder in place, using a long narrow tipped screwdriver or nail or drill-bit, mark where the mounting holes would go. Drill 2mm holes in those points and mount the encoder either by using screws on the bottom of the chassis (recommened), or from the top.

9. Replace the Dromida motor with the TrackStar Motor. Screw the motor mount back in.

Replaced the default motor witht he TrackStar motor.

Replaced the default motor with the TrackStar motor.

10. Now we are going to begin adding the layers that hold the electronics. Drill 2mm holes as specified in the following figure:

Drilled holes to mount the first printed layer

Drilled holes to mount the first printed layer

Note

It may be more convenient to use the corner mounting holes as a guide to mark the locations of the holes on the base.

11. Connect the TrackStar ESC to the motor using the color coded wires. Reattach the spine:

Connected the ESC

ESC connected

12. Before we mount the printed first layer to the car using spacers, it may help to mount the IMU, Raspberry Pi, and the Arduino to the first layer.

Pre-requisites for this step:
  • Create a common GND and +5V channel (we used a broken off piece from a small breadboard)
  • Wire the IMU and mount it to the first layer using a screw.
  • Mount the Arduino and Raspberry Pi in their respective positions using spacers.
First Layer Setup

First Layer Setup

Post-requisites for this step:
  • Connect the steering servo, ESC and the encoder to the Raspberry Pi using usage/electronics.html
  • Mount the printed first layer to the chassis using spacers (preferably metal ones)
  1. Mount the printed second layer to the chassis using the spacers.
Second Layer Setup

Second Layer Setup

14. Again, using usage/electronics.html as a guide, complete the electrical assembly for the second layer.

This includes:
  • Connecting a relay that acts as a kill switch
  • Connecting the SPI / I2C communication between the Raspberry Pi and the Arduino
  • Connecting the IMU to the Raspberry Pi

Now the PiCar is usable, and should look like this:

PiCar: Side View

PiCar: Side View

PiCar: Isometric View

PiCar: Isometric View

15. Once the base PiCar has been built, you can add the Lidar, PiCamera, etc. using the 3D printed mounts, and wire them accordingly.

Ending notes:
  • The LiPo battery sits in the first layer, behind the microcontrollers.
  • For the time being, we are using a compact power bank to power the Raspberry Pi, which in turn powers the Arduino via USB.