HANcoder/Training Material/SmartCar

From OpenMBD
< HANcoder‎ | Training Material
Revision as of 10:03, 11 February 2019 by Cemcomert (talk | contribs) (Third party Arduino shield support)
Jump to: navigation, search

Introduction

Smart car.jpg

The smart car developed in part by HAN-AR is an all-in-one solution for beginner automotive students. It has built-in support for an OLIMEXINO-STM32, which utilizes a 32-bit microcontroller from STMicroelectronics. additionally, the platform has support for the following modules/features:

  • Third party Arduino shields
  • Third party motor drivers
  • Inertial measurements unit (IMU)
  • It has room for implementing your own electronics with a prototyping pcb (5*7cm) & breadboard
  • Onboard speed sensor
  • LIPO battery with an XT60 connector
  • Current measurement functionality (±20A)
  • Wireless emergency stop functionality

Schematic & Board images

  • V1.1 Front render
  • V1.1 Back render


  • V1.1 schematic sheet 1
  • V1.1 schematic sheet 2
  • V1.1 schematic sheet 3

EAGLE files, parts list

Eagle files: File:Eagle Smart Car PCB.zip

Parts list: File:Parts list.zip

Assembly Instructions

How to put the thing together

Mechanical construction

The vehicle’s base frame

The vehicle consists of a basic frame that is manufactured by a company called “Reely”. This frame is pre-built and consists of the following components:

  • The chassis containing
  • Transmission
  • Drive shaft
  • Differential
  • Suspension

The frame comes without a motor and wheels. Therefore, these components must also be included in the construction of the vehicle. The wheels and the motor are thus separately ordered. The motor type is a brushed DC motor instead of the brushless alternative. This is because brushless DC motors are easier to drive, as this can be done with an H-bridge circuit. The dimensions of the vehicle are as follows:

  • Length : 365mm
  • Width : 190mm
  • Height : 122mm
  • Wheelbase : 260mm

VehicleFrame.png

Mounting frame

The mounting frame is the frame on which the electronics can be fastened to. This mounting frame can be fastened to the vehicle via four posts. Under normal circumstances, these posts are used to mount a cover in order to style the vehicle. This is now retrofitted in order to fasten a plate to the vehicle. See the figure below.

VehicleBaseFrame.png

The frame is made from 6mm thick birch plywood. Birch plywood has been chosen as the material because of the following reasons:

  • It can easily be cut by a laser cutter
  • It is cheap and widely available
  • It is not brittle compared to other materials such as acrylic

Mainboard funtionalities

Olimexino support

The OLIMEXINO-STM32 is a development board that houses a 32-bit microcontroller within. With the help of the OLIMEXINO-STM32, it is possible to control the vehicle's actions. The vehicle has a mainboard with built-in support for the OLIMEXINO-STM32. The OLIMEXINO can be fitted to a dedicated slot. See figure below.

SmartCarOlimexino.png

There are several pins the user has access to when the OLIMEXINO-STM32 is utilized. The pins that are accessible are:

Analog pins Digital pins 0 Digital pins 1 Digital pins 2 Supply
A0 D0 D10 D28 Vin
A1 D1 D11 D29 5V
A2 D2 D12 D30 3.3V
A3 D3 D13 D31 GND
A4 D4 D14 D32
A5 D5 D23 D33
D6 D24 D34
D7 D25 D35
D8 D26 D36
D9 D27 D37

SmartCarOlimexinoPinout.png

Third party Arduino shield support

The mainboard on the vehicle has support for Arduino shields. Many different Arduino compatible shields can be fitted onto the mainboard in order to expand the functionality of the vehicle. A dedicated connector has been made to fit this purpose. See figure below.

SmartCarArduino.png

For more information about third party Arduino shields, click here.

b

c

d

e

f

g